YunoHost-Apps / discourse_ynh

Discourse package for YunoHost
https://www.discourse.org/
GNU General Public License v2.0
24 stars 11 forks source link

Update to 2.8.14~ynh2 failed - service does not start #178

Open tio-trom opened 4 months ago

tio-trom commented 4 months ago

The logs from the failed service - https://paste.yunohost.org/edojadecim

Mar 21 01:11:39 bundle[2054769]: Activating bundler (~> 2.3) failed:
Mar 21 01:11:39 bundle[2054769]: Could not find 'bundler' (2.3.22) required by your /var/www/discourse/Gemfile.lock.
Mar 21 01:11:39 bundle[2054769]: To update to the latest version installed on your system, run `bundle update --bundler`.
Mar 21 01:11:39 bundle[2054769]: To install the missing version, run `gem install bundler:2.3.22`
Mar 21 01:11:39 bundle[2054769]: Checked in 'GEM_PATH=/var/www/discourse/.gem/ruby/3.0.0:/opt/rbenv/versions/3.0.0/lib/ruby/gems/3.0.0' , execute `gem env` for more information
Mar 21 01:11:39 bundle[2054769]: To install the version of bundler this project requires, run `gem install bundler -v '~> 2.3'`
Mar 21 01:11:39 systemd[1]: discourse.service: Main process exited, code=exited, status=42/n/a
Mar 21 01:11:39 systemd[1]: discourse.service: Failed with result 'exit-code'.
tio-trom commented 4 months ago

Backup restore also fails in the same way - https://server.tromsite.com/yunohost/admin/#/tools/logs/20240320-232320-backup_restore_app-discourse

aschrijver commented 4 months ago

Same situation for me, also 11.2.10.3

Update 2.8.14\~ynh1 --> 2.8.14\~ynh2 seemed successful. But no forum access:

502 Bad Gateway

If you see this page, your connection with the server is working but the internal service providing this path is not responding.

Administrator, make sure that the service is running, and check its logs if it is not. The Services page is in your webadmin, under Tools > Services.

Thank you for using YunoHost.

The tools > services also doesn't load:

Screenshot from 2024-03-30 09-00-28

Discourse service is marked "auto-restart" in services list. Fails.

Screenshot from 2024-03-30 09-05-09

Restore via the UI fails (Pressing 'Restore' button and confirming, simply does nothing).

Via SSH access the advised commands sudo yunohost service restart discourse says "successful restart" (but no access), and sudo yunohost service log discourse only reports "Killed" (not logging anything).

aschrijver commented 4 months ago

My only solution to fix the issue was to restore the VPS backup via my hosting providers' tools.

squattertim commented 4 months ago

Have You tried to install missing bundler version? It worked for me, but after that we are facing LDAP problem described here - https://github.com/YunoHost-Apps/discourse_ynh/issues/179

Salamandar commented 1 month ago

I can't reproduce :( Could you guys please share the update logs via the webadmin ?

tio-trom commented 1 month ago

I have restored my Discourse so I cannot provide any logs. I find it impossible to update Discourse and/or restore for the past many months now. Maybe the rest can help with some logs. I can try to test any newer versions of Discourse...

aschrijver commented 3 weeks ago

Did anyone here try 2.8.14\~ynh1 to 2.8.14\~ynh4 ?

tio-trom commented 2 weeks ago

Did anyone here try 2.8.14~ynh1 to 2.8.14~ynh4 ?

I will try it these days and report back.

tio-trom commented 1 week ago

Update to the ynh4 also failed https://paste.yunohost.org/raw/upapuzojol - restore also failed. Discord is stuck :D - no updates, no restores possible.