Code Monkey home page Code Monkey logo

Comments (15)

kemenaran avatar kemenaran commented on July 25, 2024 1

Interesting. The lines

systemd: Failed at step USER spawning /var/www/mattermost/bin/platform: No such process
…
systemd: Failed at step USER spawning /usr/bin/timeout: No such process

seem to indicate an invalid username in the systemd service configuration file.

And it turns out the user name is computed by Yunohost ; so an upgrade may have broken that.

I'll investigate further, try to perform the update myself, and tell you what I found. Thanks for the log!

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024 1

Sure, you can re-install: the application was removed anyway, so unfortunately there are no logs lefts or anything :)

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024 1

Thanks! I wrote some code today to work-around the backup being restored even if it is invalid – which should at least make upgrades safer. I'll push the code on monday; and from then we'll be able to better see what went wrong on your side.

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024 1

I tested again the upgrade from 8295da9 to the latest version, and it works as intended.

@isAAAc thanks a lot for your testing!

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

there are the complete cli logs ;)
i wait a bit before trying a mattermost reinstall

https://paste.yunohost.org/uholihefuz.sql

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

Aw, crap. Sorry for this.

From the logs this is the same situation than before:

  1. The upgrade begins
  2. A backup of the current install is performed
  3. The upgrade mostly succeeds, but fails to start the server at the end of the process
  4. Yunohost sees a backup, and removes the app, because it is confident it can restore it from backup
  5. but Yunohost fails to restore the backup, because it can't find the restore script

This is very curious. Well, at least if you have important data, there are stored in the backup (even if yunohost has troubles restoring it).

But there are still two mysteries here:

  • Why does the upgrade fail?
  • Why does Yunohost fail to restore the backup?

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

@isAAAc could you have a look again at the log files, to see if there would be the cause of why the server failed to start after the upgrade? I'm afraid some of the logs may have been deleted with the app, but we can have a look.

sudo journalctl -u mattermost
sudo journalctl -xn
tail /var/log/mattermost/mattermost.log

Thanks!

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

journalctl -u mattermost

janv. 31 11:26:51 krashboyz systemd[1]: Starting Mattermost...
janv. 31 11:26:51 krashboyz systemd[5429]: Failed at step USER spawning /var/www/mattermost/bin/platform: No such process
janv. 31 11:26:51 krashboyz systemd[1]: mattermost.service: main process exited, code=exited, status=217/USER
janv. 31 11:26:51 krashboyz systemd[5430]: Failed at step USER spawning /usr/bin/timeout: No such process
janv. 31 11:26:51 krashboyz systemd[1]: mattermost.service: control process exited, code=exited status=217
janv. 31 11:26:51 krashboyz systemd[1]: Failed to start Mattermost.
janv. 31 11:26:51 krashboyz systemd[1]: Unit mattermost.service entered failed state.
janv. 31 11:27:01 krashboyz systemd[1]: mattermost.service holdoff time over, scheduling restart.
janv. 31 11:27:01 krashboyz systemd[1]: Stopping Mattermost...
janv. 31 11:27:01 krashboyz systemd[1]: Starting Mattermost...
janv. 31 11:27:01 krashboyz systemd[1]: mattermost.service: main process exited, code=exited, status=217/USER

journalctl -xn gives nothing, to many stuff from statusnet in the log, and i rebooted so i think the interesting backlog is gone away :/

the /var/log gives nothing exept the stopping jobs during the upgrade

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

Can i reinstall it or do you prefer i wait during your investigations ?

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

yep , it's just the start of this service , so no real logs for now, but ppl are waiting for it, and each crash eat a bit of credibility each time :/

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

reinstall ok,
waiting for your end of investigation :)

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

I pushed a patch to keep the app even if the upgrade fails at some point (#92).

@isAAAc If it is possible for you, could you test this one? It should be safer for you – and for me, if something doesn't work as expected, we'll still have the app and log files to explore and know what went wrong (and you will still have your data).

For testing, the easiest way is to perform an upgrade using the CLI, to get the latest version of the app from Github:

sudo yunohost app upgrade mattermost --verbose --url https://github.com/YunoHost-Apps/mattermost_ynh

Thanks!

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

just done ;)

Do you want i try something like :

yunohost tools update && yunohost tools upgrade && yunohost app upgrade

or something else ?

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

@isAAAc great! How is it working? Did the upgrade went smoothly?

(Btw yunohost tools upgrade won't do anything, as I haven't propagated the Mattermost upgrade to the Yunohost apps community list yet)

from mattermost_ynh.

isAAAc avatar isAAAc commented on July 25, 2024

yep everything works fine for now, i kept my datas, so i think we can say it was smoothly ;)

from mattermost_ynh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.