YunoHost-Apps / seafile_ynh

Seafile package for YunoHost
https://seafile.com
MIT License
14 stars 19 forks source link

after update cannot access application no more #110

Closed Ddataa closed 8 months ago

Ddataa commented 8 months ago

Describe the bug

After applying update the application is no more accessible

'Internal server error'

Context

Steps to reproduce

update to 9.0.9~ynh1 from a working previous version

Expected behavior

clean update

Logs

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

Ddataa commented 8 months ago

after investigating

I found out that the link file 'seafile-server-latest' was not correct and linking to the old install that has been deleted by the upgrade...

By recreating the link with correct rights I have access to the login page but the page cannot be fully loaded and login cannot be done.

Ddataa commented 8 months ago

ok after applying correct rights like so


setfacl -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9

setfacl -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9/seahub

setfacl -R -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9/seahub/media```

it got back to work

can we please PR to solve that issue in upgrade script ?
Josue-T commented 8 months ago

Hello,

Well I already do this here https://github.com/YunoHost-Apps/seafile_ynh/blob/master/scripts/_common.sh#L71-L76

Can you explain exactly which link was missing ?

rmueck commented 8 months ago

Same issue here! Application was not working after update. Furthermore the restore of a backup was also broken log

Ddataa commented 8 months ago

Hello,

Well I already do this here https://github.com/YunoHost-Apps/seafile_ynh/blob/master/scripts/_common.sh#L71-L76

Can you explain exactly which link was missing ?

After upgrade, in the folder '/opt/yunohost/seafile' a link file exist with the name 'seafile-server-latest' but linking to the folder 'seafile-server-8.0.3' or whatever previous version it was but the folder didn't exist anymore...

So the solution was to recreate a correct link file that link to the correct latest server version AND applying the correct rights as state above.