Failed to upgrade Pollaris from 1.1.3~ynh2 to 1.2.0~ynh1

What app is this about, and its version: Pollaris 1.1.3~ynh2
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Virtual machine

Describe your issue

Upgrading Pollaris to 1.20 via the web or command line fails, it is restored to the current version (1.1.3).

Share relevant logs or error messages

I Would love to post the full log, but it says I can’t because new user can’t post links. Here is the (hopefully) relevant part :

2026-04-27 11:43:56,584: DEBUG - Run composer recipes at any time to see the status of your Symfony recipes.
2026-04-27 11:43:56,584: DEBUG -
2026-04-27 11:43:56,796: DEBUG - Executing script cache:clear [KO]
2026-04-27 11:43:56,797: DEBUG - [KO]
2026-04-27 11:43:56,797: DEBUG - Script cache:clear returned with error code 1
2026-04-27 11:43:56,797: DEBUG - !! {“message”:“User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, …”,“context”:{“exception”:{“class”:“ErrorException”,“message”:“User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, … , package doctrine/orm)”,“code”:0,“file”:“/var/www/pollaris/vendor/doctrine/deprecations/src/Deprecation.php:208”}},“level”:200,“level_name”:“INFO”,“channel”:“deprecation”,“datetime”:“2026-04-27T09:43:56.775946+00:00”,“extra”:{}}
2026-04-27 11:43:56,798: DEBUG - !!
2026-04-27 11:43:56,798: DEBUG - !! In App_KernelProdContainer.php line 1190:
2026-04-27 11:43:56,798: DEBUG - !!
2026-04-27 11:43:56,798: DEBUG - !! You have requested a non-existent parameter “app.timezone”.
2026-04-27 11:43:56,798: DEBUG - !!
2026-04-27 11:43:56,798: DEBUG - !!
2026-04-27 11:43:56,799: DEBUG - !!

I have no idea but it really look the the same than this issue Error while upgrading pollaris from 1.1.3~ynh2 to 1.2.0~ynh1 · Issue #14 · YunoHost-Apps/pollaris_ynh · GitHub

@ukuhne

Without seeking further i would bet adding a APP_TIMEZONE variable in the right file file then restarting service, then upgrading would help …
Just have to guess what env file it is ( i don’t know anyhting about pollaris )…

APP_TIMEZONE=“Europe/Paris”

My bet is wrong, it is a cache problem.

my proposal

systemctl stop pollaris
rm -rf /var/www/pollaris/var/cache/prod/*
sudo yunohost app upgrade pollaris -u https://github.com/YunoHost-Apps/pollaris_ynh/tree/testing