Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Previously working instance won't come back up after being moved: permission denied. #504

Open
gp-Airee opened this issue Nov 19, 2020 · 0 comments

Comments

@gp-Airee
Copy link

root@cubeops-lpc-01:~/mm-docker# docker-compose up
Starting mm-docker_db_1  ... done
Starting mm-docker_app_1 ... done
Starting mm-docker_web_1 ... done
Attaching to mm-docker_db_1, mm-docker_web_1, mm-docker_app_1
web_1  | linking plain config
app_1  | Using existing config file /mattermost/config/config.json
app_1  | Using existing database connection
db_1   | AWS_ACCESS_KEY_ID is required for Wal-E but not set. Skipping Wal-E setup.
db_1   | AWS_SECRET_ACCESS_KEY is required for Wal-E but not set. Skipping Wal-E setup.
db_1   | WALE_S3_PREFIX is required for Wal-E but not set. Skipping Wal-E setup.
db_1   | AWS_REGION is required for Wal-E but not set. Skipping Wal-E setup.
db_1   |
db_1   | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1   |
db_1   | LOG:  database system was interrupted; last known up at 2020-11-19 02:31:11 UTC
db_1   | LOG:  database system was not properly shut down; automatic recovery in progress
db_1   | LOG:  redo starts at 0/A7D1CF8
db_1   | LOG:  record with zero length at 0/A7D44D8
db_1   | LOG:  redo done at 0/A7D44A8
db_1   | LOG:  last completed transaction was at log time 2020-11-19 02:31:13.239749+00
db_1   | LOG:  MultiXact member wraparound protections are now enabled
db_1   | LOG:  autovacuum launcher started
db_1   | LOG:  database system is ready to accept connections
app_1  | Starting mattermost
app_1  | 2020-11-19 02:32:11.850804223 +0000 UTC m=+0.122407565 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:11.850854723 +0000 UTC m=+0.122458065 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:11.851045614 +0000 UTC m=+0.122648961 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:11.851902617 +0000 UTC m=+0.123505959 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:11.853419719 +0000 UTC m=+0.125023066 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
db_1   | ERROR:  relation "idx_teams_description" does not exist
db_1   | STATEMENT:  SELECT $1::regclass
app_1  | {"level":"error","ts":1605753132.3176892,"caller":"app/server.go:426","msg":"Problem with file storage settings","error":"TestFileConnection: api.file.test_connection.local.connection.app_error, WriteFile: api.file.write_file_locally.writing.app_error, open /mattermost/data/testfile: permission denied"}
app_1  | 2020-11-19 02:32:12.317747043 +0000 UTC m=+0.589350384 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.317826074 +0000 UTC m=+0.589429420 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.317864917 +0000 UTC m=+0.589468260 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.317930262 +0000 UTC m=+0.589533651 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.317999333 +0000 UTC m=+0.589602676 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | {"level":"error","ts":1605753132.3402839,"caller":"app/config.go:54","msg":"Failed to update config","error":"failed to persist: failed to write file: open /mattermost/config/config.json: permission denied","errorVerbose":"open /mattermost/config/config.json: permission denied\nfailed to write file\ngithub.com/mattermost/mattermost-server/v5/config.(*FileStore).persist\n\tgithub.com/mattermost/mattermost-server/v5/config/file.go:128\ngithub.com/mattermost/mattermost-server/v5/config.(*commonStore).set\n\tgithub.com/mattermost/mattermost-server/v5/config/common.go:80\ngithub.com/mattermost/mattermost-server/v5/config.(*FileStore).Set\n\tgithub.com/mattermost/mattermost-server/v5/config/file.go:108\ngithub.com/mattermost/mattermost-server/v5/app.(*Server).UpdateConfig\n\tgithub.com/mattermost/mattermost-server/v5/app/config.go:53\ngithub.com/mattermost/mattermost-server/v5/app.NewServer\n\tgithub.com/mattermost/mattermost-server/v5/app/server.go:473\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.runServer\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/server.go:70\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.serverCmdF\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/server.go:54\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:887\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.Run\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/root.go:15\nmain.main\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/main.go:34\nruntime.main\n\truntime/proc.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1373\nfailed to persist\ngithub.com/mattermost/mattermost-server/v5/config.(*commonStore).set\n\tgithub.com/mattermost/mattermost-server/v5/config/common.go:81\ngithub.com/mattermost/mattermost-server/v5/config.(*FileStore).Set\n\tgithub.com/mattermost/mattermost-server/v5/config/file.go:108\ngithub.com/mattermost/mattermost-server/v5/app.(*Server).UpdateConfig\n\tgithub.com/mattermost/mattermost-server/v5/app/config.go:53\ngithub.com/mattermost/mattermost-server/v5/app.NewServer\n\tgithub.com/mattermost/mattermost-server/v5/app/server.go:473\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.runServer\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/server.go:70\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.serverCmdF\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/server.go:54\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:842\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.0.0/command.go:887\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.Run\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands/root.go:15\nmain.main\n\tgithub.com/mattermost/mattermost-server/v5/cmd/mattermost/main.go:34\nruntime.main\n\truntime/proc.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1373"}
app_1  | 2020-11-19 02:32:12.34049097 +0000 UTC m=+0.612094311 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.365863119 +0000 UTC m=+0.637466465 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.367197559 +0000 UTC m=+0.638800901 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.38708246 +0000 UTC m=+0.658685802 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.387122833 +0000 UTC m=+0.658726179 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
app_1  | 2020-11-19 02:32:12.387346338 +0000 UTC m=+0.658949681 write error: can't open new logfile: open /mattermost/logs/mattermost.log: permission denied
^CGracefully stopping... (press Ctrl+C again to force)
Stopping mm-docker_app_1 ... done
Stopping mm-docker_db_1  ...
Stopping mm-docker_web_1 ...
Killing mm-docker_db_1   ... done
Killing mm-docker_web_1  ... error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant