mattermost-docker
mattermost-docker copied to clipboard
Database keeps restarting
The database container keeps restarting after a new installation. Even if there is no volume mapped in docker-compose.yml file.
I'm using the default docker-compose.yml file from this repo:
db:
build: db
read_only: true
restart: unless-stopped
#volumes:
#- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
#- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER=mmuser
- POSTGRES_PASSWORD=mmuser_password
- POSTGRES_DB=mattermost
# uncomment the following to enable backup
# - AWS_ACCESS_KEY_ID=XXXX
# - AWS_SECRET_ACCESS_KEY=XXXX
# - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
# - AWS_REGION=us-east-1
I'm seeing the same behavior, I'm using tag 5.16.3.
It seems to be wal-e related. When I get rid of the whole wal-e stuff in db/entrypoint.sh, the container starts normal and even is able to import existing data.
My entrypoint.sh looks like
#!/bin/bash
if [ "$1" = 'postgres' ]; then
# Run the postgresql entrypoint
. /docker-entrypoint.sh
fi
db_1 | LOG: syntax error in file "/var/lib/postgresql/data/postgresql.conf" line 613, near end of line
db_1 | LOG: syntax error in file "/var/lib/postgresql/data/postgresql.conf" line 614, near end of line
db_1 | LOG: syntax error in file "/var/lib/postgresql/data/postgresql.conf" line 616, near end of line
db_1 | FATAL: configuration file "/var/lib/postgresql/data/postgresql.conf" contains errors
These correspond to some wal-e guff
@Meatballs1 I didn't see those
I think the problem is related to an upgrade in postegres:9.4-alpine as hinted in #427
I think the problem is related to an upgrade in postegres:9.4-alpine as hinted in #427
had the same issue, but downgrading to postgres:9.3-alpine seems to work
I got it running with changeing one line in db/entrypoint.sh
# Run the postgresql entrypoint
exec /docker-entrypoint.sh $@
is this resolved?
I guess probably not since there is a fairly new comment here saying that it isn't working https://github.com/mattermost/mattermost-docker/issues/431