Impossible de restaurer mattermost

Bonjour tout le monde,
Suite à une réinstallation de Yunohost j’essaye de réinstaller mattermost mais j’obtiens un échec :
https://paste.yunohost.org/raw/opaquranej

Sauriez-vous m’aider ?

Merci !

zblerf

Si tu fais un journalctl -u mattermost --no-pager --no-hostname | tail -n 50, est-ce que ça raconte des trucs ?

1 Like

Ca me raconte ça !
Nov 09 16:16:12 systemd[1]: Starting Mattermost…
Nov 09 16:16:12 mattermost[23122]: {“level”:“error”,“ts”:1604938572.7867622,“caller”:“commands/server.go:72”,“msg”:“Bleveengine.Start: bleveengine.create_post_index.error, mkdir /var/opt/mattermost: permission denied”}
Nov 09 16:16:12 mattermost[23122]: Error: Bleveengine.Start: bleveengine.create_post_index.error, mkdir /var/opt/mattermost: permission denied
Nov 09 16:16:12 mattermost[23122]: Usage:
Nov 09 16:16:12 mattermost[23122]: mattermost [flags]
Nov 09 16:16:12 mattermost[23122]: mattermost [command]
Nov 09 16:16:12 mattermost[23122]: Available Commands:
Nov 09 16:16:12 mattermost[23122]: channel Management of channels
Nov 09 16:16:12 mattermost[23122]: command Management of slash commands
Nov 09 16:16:12 mattermost[23122]: config Configuration
Nov 09 16:16:12 mattermost[23122]: export Export data from Mattermost
Nov 09 16:16:12 mattermost[23122]: group Management of groups
Nov 09 16:16:12 mattermost[23122]: help Help about any command
Nov 09 16:16:12 mattermost[23122]: import Import data.
Nov 09 16:16:12 mattermost[23122]: integrity Check database data integrity
Nov 09 16:16:12 mattermost[23122]: jobserver Start the Mattermost job server
Nov 09 16:16:12 mattermost[23122]: ldap LDAP related utilities
Nov 09 16:16:12 mattermost[23122]: license Licensing commands
Nov 09 16:16:12 mattermost[23122]: logs Display logs in a human-readable format
Nov 09 16:16:12 mattermost[23122]: permissions Management of the Permissions system
Nov 09 16:16:12 mattermost[23122]: plugin Management of plugins
Nov 09 16:16:12 mattermost[23122]: reset Reset the database to initial state
Nov 09 16:16:12 mattermost[23122]: roles Management of user roles
Nov 09 16:16:12 mattermost[23122]: sampledata Generate sample data
Nov 09 16:16:12 mattermost[23122]: server Run the Mattermost server
Nov 09 16:16:12 mattermost[23122]: team Management of teams
Nov 09 16:16:12 mattermost[23122]: user Management of users
Nov 09 16:16:12 mattermost[23122]: version Display version information
Nov 09 16:16:12 mattermost[23122]: webhook Management of webhooks
Nov 09 16:16:12 mattermost[23122]: Flags:
Nov 09 16:16:12 mattermost[23122]: -c, --config string Configuration file to use. (default “config.json”)
Nov 09 16:16:12 mattermost[23122]: --disableconfigwatch When set config.json will not be loaded from disk when the file is changed.
Nov 09 16:16:12 mattermost[23122]: -h, --help help for mattermost
Nov 09 16:16:12 mattermost[23122]: Use “mattermost [command] --help” for more information about a command.
Nov 09 16:16:12 systemd[1]: mattermost.service: Main process exited, code=exited, status=1/FAILURE
Nov 09 16:16:12 systemd[1]: mattermost.service: Failed with result ‘exit-code’.
Nov 09 16:16:12 systemd[1]: Failed to start Mattermost.
Nov 09 16:16:16 systemd[1]: Stopped Mattermost.

Hmmmmokay so let’s try a dirty hack …

sudo mkdir /var/opt/mattermost
sudo chmod 777 /var/opt/mattermost

then retry the restore …

If the restore does work, we should try to set some more meaningful permissions on the folder … not sure exactly but at least something like chmod 775 /var/opt/mattermost … but we’ll discuss this if we confirm that the restore worked

1 Like

Ça a fonctionné ! Merci beaucoup !

Autrement plusieurs apps me donnent une erreur 502 Bad Gateway, j’ai créé un autre sujet.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.