[lychee] Lychee upgrade failed

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.7
What app is this about: lychee

Describe your issue

After the upgrade from 6.0.1~ynh1 to 6.1.2~ynh1 version trying to connect to application I get a 500 - HttpException error.
During the upgrade process I got this warning:

Warning: File /var/www/lychee/.env has been manually modified since the installation or last upgrade.
 So it has been duplicated in /var/cache/yunohost/appconfbackup//var/www/lychee/.env.backup.20241129.
090826                                                                                               
Warning: --- /var/cache/yunohost/appconfbackup//var/www/lychee/.env.backup.20241129.090826      2024-
11-01 10:47:47.809388265 +0100                                                                       
Warning: +++ /var/www/lychee/.env       2024-11-29 09:08:26.852881856 +0100
Warning: @@ -1,6 +1,6 @@
Warning:  APP_NAME=Lychee
Warning:  APP_ENV=production
Warning: -APP_KEY=base64:iIUES9ExM9bxV51H0lBSXPTAmuor8OplUZD/qQPKtFY=
Warning: +APP_KEY=
Warning:  APP_DEBUG=false
Warning:  # This MUST contain the host name up to the Top Level Domain (tld) e.g. .com, .org etc.
Warning:  APP_URL=https://cybervalley.org

Attached the complete error message displayed on browser:

Share relevant logs or error messages

I cannot find any relevant log

1 Like

It was working just fine in 6.0.1?

I had the same issue, it was working correctly on one vps. The update broke it and the restore failed. I had to reinstall a previous version.
Strangely, on another server, I had no problems.
I didnā€™t investigate since I am a little busy and I needed it to be in a working state for now.
I will have a look at it next week if I find time

Yes, it was working normally until the failed upgrade

1 Like

Yes, I can confirm the same issue on my home lab running on a Dell Optiplex, YNH 12.0.7. Previous version was fine, recent update has broken it.

Dj

Restoring the pre-upgrade2 backup made the app working normally

1 Like

[quote=ā€œdeljones, post:5, topic:32305ā€]
I can confirm the same issue on my home running on a Dell Optiplex 740 with YNH 12.0.7. Previous version was fine, recent update has broken it.

same issue

This is going to take a wild investigating if everyone just says ā€˜same issueā€™ without providing more context.

I think some dingdong patched out the ā€œnpmā€ part of the code in the new version. 6.1.0 worked fine. 6.1.2 throws the http exception error for me.

Yes, you are absolutely right. More details, so here goes.

I did a fresh install on one of my domains. Iā€™m running 12.0.7 and tried to install the latest Lychee which is 6.1.2~ynh1

The installation appears to go well and complete. You are allowed to assign an admin user.

You get confirmation that the admin has been set up ok.

If you then point to the app you get the 500 error.

Just for fun, I restarted the server, just in case, but you get the same result.

If you are upgrading from a previous version then you go straight to the http500 error.

Here is the install log:

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

I hope this helps to get a good app back up and running.

Dj

You can test this branch. I have tested it on yunohost 11 and 12. Feedback is very welcome : GitHub - DeMiro5001/lychee_ynh at patch-1

2 Likes

@jarod5001 I installed from the branch at:

However, I still got the Same 500 error.

Here is the log from the installation and the permissions log:

Install: https://paste.yunohost.org/raw/hekixijivi
Access for permissions: https://paste.yunohost.org/raw/enutopokig

Iā€™m using 12.0.7

I tried to remove it. After clicking ā€˜Uninstallā€™, the app is no longer appearing in the list of installed apps, but I got a message saying the app was not correctly removed?

Dj

This is the master branch. Use the patch-1. I didnā€™t make changes in the master branch

I tried the branch doing some things like upload, changing preferences and viewing photos and it works fine!
Thanks for your work!

1 Like

Thanks for the feedback.
@deljones and @D4113R did you try it?
sudo yunohost app upgrade lychee -u https://github.com/DeMiro5001/lychee_ynh/tree/patch-1

I think itā€™s ready. @ericg can you please have a look at this PR : Fix vite manifest not found by DeMiro5001 Ā· Pull Request #135 Ā· YunoHost-Apps/lychee_ynh Ā· GitHub
I just forgot to bump version

Thereā€™s currently a conflict with target branch, could you please rebase it/merge origin/testing back?

Conflict resolved

1 Like

Sorry for the slow reply. But this now works, yes. I ended up doing my own fixing to get it to 6.1.1 as a ā€˜workaroundā€™ until now.

What do you mean?