Roundcube updated fails

What app is this about, and its version: Roundcube 1.6.13~ynh1 trying to upgrade to 1.6.14~ynh1
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Other(?)

Describe your issue

I tried to update via the normal update process, it failed twice an switched back to the old version

Share relevant logs or error messages

https://paste.yunohost.org/raw/udoqakegum

Hey buxnor, you might be happy with the solution proposed here

→ [RĂ©solu] L'opĂ©ration 'Mettre Ă  jour l'application 'roundcube'' a Ă©chouĂ©! - #3 by JfmbLinux

1 Like

DEBUG - + sudo -E -u roundcube php8.5 /var/www/roundcube/composer.phar install --no-dev -d /var/www/roundcube --no-interaction --no-ansi
DEBUG - Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to ‘1.0.0’. See Troubleshooting - Composer
DEBUG - Installing dependencies from lock file
DEBUG - Verifying lock file contents can be installed on current platform.
DEBUG - Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>.
DEBUG - - Required package “mlocati/ip-lib” is not present in the lock file.
DEBUG - This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
DEBUG - Read more about correctly resolving merge conflicts Resolving merge conflicts - Composer
DEBUG - and prefer using the “require” command over editing the composer.json file directly Command-line interface / Commands - Composer

Solution found: The file needs to be renamed “composer.lock => composer.lock.bkp”. Before you begin, make a backup of Roundcube:

yunohost backup create --apps roundcube

Then, make a copy/backup of the “composer.lock” file:

mv /var/www/roundcube/composer.lock /var/www/roundcube/composer.lock.bkp

Update Roundcube:

yunohost app upgrade roundcube

And if everything works, remember to delete the “composer.lock.bkp” file:

rm /var/www/roundcube/composer.lock.bkp

It worked for me.

2 Likes

Thank You very much - problem is solved. That worked for me!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.