Comments (15)
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.
Sure, you can re-install: the application was removed anyway, so unfortunately there are no logs lefts or anything :)
from mattermost_ynh.
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.
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.
there are the complete cli logs ;)
i wait a bit before trying a mattermost reinstall
https://paste.yunohost.org/uholihefuz.sql
from mattermost_ynh.
Aw, crap. Sorry for this.
From the logs this is the same situation than before:
- The upgrade begins
- A backup of the current install is performed
- The upgrade mostly succeeds, but fails to start the server at the end of the process
- Yunohost sees a backup, and removes the app, because it is confident it can restore it from backup
- 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.
@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.
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.
Can i reinstall it or do you prefer i wait during your investigations ?
from mattermost_ynh.
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.
reinstall ok,
waiting for your end of investigation :)
from mattermost_ynh.
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.
just done ;)
Do you want i try something like :
yunohost tools update && yunohost tools upgrade && yunohost app upgrade
or something else ?
from mattermost_ynh.
@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.
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)
- Can't upload plugins HOT 1
- In resources.sources: it looks like you forgot to define url/sha256 or armhf.url/armhf.sha256
- Propose upgrading to Mattermost v9.1.1
- Propose upgrading to Mattermost v9.1.2
- Not able to install Mattermost through Yunohost (Error 500. Exit Status 128) HOT 2
- Propose upgrading to Mattermost v9.1.3
- Propose upgrading to Mattermost v9.2.2
- Propose upgrading to Mattermost v9.2.3
- Propose upgrading to Mattermost v9.3.0
- Propose upgrading to Mattermost v9.4.2
- How to login ? HOT 1
- Propose upgrading to Mattermost v9.5.1
- Propose upgrading to Mattermost v9.5.2
- Propose upgrading to Mattermost v9.6.1
- Propose upgrading to Mattermost v9.7.1
- Propose upgrading to Mattermost v9.7.2
- Propose upgrading to Mattermost v9.8.0
- Mobile Mattermost app bug : Too many follow-up request : 21 HOT 4
- Propose upgrading to Mattermost v9.8.1
- Propose upgrading to Mattermost v9.9.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost_ynh.