YunoHost-Apps / lutim_ynh

Lutim package for YunoHost
https://lut.im
GNU General Public License v3.0
5 stars 7 forks source link

Upgrade failure and application broken after upgrade #54

Open nicofrand opened 3 years ago

nicofrand commented 3 years ago

Hi,

I tried to upgrade lutim from 0.11.6~ynh4 to 0.12.1~ynh1 and the upgrade failed. It also resulted in a broken app now. It looks like there is an I/O error but I don't see why. Could my database be corrupted?

Info: [###############.....] > Reloading NGINX web server...
Info: [###############++...] > Restarting Lutim...
Warning: Job for lutim.service failed because the control process exited with error code.
Warning: See "systemctl status lutim.service" and "journalctl -xe" for details.
Warning: [Error] Nov 17 15:44:34 systemd[1]: lutim.service: Main process exited, code=exited, status=1/FAILURE                                                                                                   
Warning: Nov 17 15:44:34 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 17 15:56:20 systemd[1]: Starting Image hosting and sharing service...
Warning: Nov 17 15:56:21 systemd[1]: lutim.service: Control process exited, code=exited, status=1/FAILURE                                                                                                        
Warning: Nov 17 15:56:21 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 17 15:56:21 systemd[1]: Failed to start Image hosting and sharing service.
Warning: Nov 17 16:01:55 systemd[1]: Started Image hosting and sharing service.
Warning: Nov 17 16:01:56 systemd[1]: lutim.service: Main process exited, code=exited, status=1/FAILURE
Warning: Nov 17 16:01:56 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 17 16:13:52 systemd[1]: Starting Image hosting and sharing service...
Warning: Nov 17 16:13:53 systemd[1]: lutim.service: Control process exited, code=exited, status=1/FAILURE                                                                                                        
Warning: Nov 17 16:13:53 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 17 16:13:53 systemd[1]: Failed to start Image hosting and sharing service.
Warning: Nov 17 16:19:11 systemd[1]: Started Image hosting and sharing service.
Warning: Nov 17 16:19:12 systemd[1]: lutim.service: Main process exited, code=exited, status=1/FAILURE
Warning: Nov 17 16:19:12 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 18 09:28:37 systemd[1]: Starting Image hosting and sharing service...
Warning: Nov 18 09:28:38 systemd[1]: lutim.service: Control process exited, code=exited, status=1/FAILURE                                                                                                        
Warning: Nov 18 09:28:38 systemd[1]: lutim.service: Failed with result 'exit-code'.
Warning: Nov 18 09:28:38 systemd[1]: Failed to start Image hosting and sharing service.
Warning: [Error] --
Warning: [Error] [Tue Nov 17 08:10:57 2020] [info] Worker 9903 started
Warning: [Tue Nov 17 08:12:21 2020] [warn] Stopping worker 8692 immediately
Warning: [Tue Nov 17 08:12:21 2020] [warn] Stopping worker 8692 immediately
Warning: [Tue Nov 17 08:12:21 2020] [info] Worker 8692 stopped
Warning: [Tue Nov 17 13:04:50 2020] [error] Worker 31657 has no heartbeat (30 seconds), restarting
Warning: [Tue Nov 17 13:04:52 2020] [info] Stopping worker 31657 gracefully (120 seconds)
Warning: [Tue Nov 17 13:04:57 2020] [info] Worker 6664 started
Warning: [Tue Nov 17 13:06:10 2020] [error] DBD::SQLite::db do failed: disk I/O error at /var/www/lutim/local/lib/perl5/Mojo/SQLite.pm line 86.                                                                  
Warning: 
Warning: [Tue Nov 17 13:06:49 2020] [warn] Stopping worker 31657 immediately
Warning: [Tue Nov 17 13:06:49 2020] [info] Worker 31657 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 18399 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 18400 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 8703 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 16352 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 16691 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 16722 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 9903 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Worker 6664 stopped
Warning: [Tue Nov 17 15:36:21 2020] [info] Manager 31120 stopped
Warning: /usr/share/yunohost/helpers.d/logging: line 20: message: unbound variable
Warning: [Error] Upgrade failed.
Warning: 52104 Nothing to update in LDAP
Warning: 118603 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                         
Warning: 118605 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                           
Warning: 118608 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                       
Warning: 118610 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                         
Warning: 118611 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                           
Warning: 118612 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/sury.list:1                       
Warning: 390597 /!\ Packagers! You added a custom service without specifying a description. Please add a proper Description in the systemd configuration, or use --description to explain what the service does in a similar fashion to existing services.
Warning: 391239 Created symlink /etc/systemd/system/multi-user.target.wants/lutim.service → /etc/systemd/system/lutim.service.

Full logs: https://paste.yunohost.org/raw/ojazozafet

Thanks in advance for the help!

nicofrand commented 3 years ago

I fixed the install by

carton install took a reaaaaaally long time, like 20 minutes, I don't know why. My server is a small kimsufi 2G but carton is only taking 20% of CPU, and RAM is OK.

I'll now try a new upgrade to see if that breaks the install again.

nicofrand commented 3 years ago

The upgrade following the previous steps worked, through CLI, and also took a long time (probably less that before though).

nicofrand commented 3 years ago

Feel free to close this issue if you deem it legit.