Docker for version seven not starting throwing db connection on 127.0.0.1

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6a89a90ad69c phpmyadmin/phpmyadmin “/docker-entrypoint.…” 4 minutes ago Up 4 minutes 0.0.0.0:8890->80/tcp seafile-phpmyadmin
edddb6dbeb75 seafileltd/seafile-mc:latest “/sbin/my_init – /s…” 4 minutes ago Up 4 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8082->8082/tcp, 0.0.0.0:8081->80/tcp seafile
fcb600e17a9e mariadb:10.1 “docker-entrypoint.s…” 4 minutes ago Up 4 minutes 3306/tcp seafile-mysql
32b8b2340849 memcached:1.5.6 “memcached -m 256” 4 minutes ago Up 4 minutes 11211/tcp seafile-memcached

I just updated to the latest docker images 7/12/2019.

docker logs edddb6dbeb75
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Jul 12 17:58:56 edddb6dbeb75 syslog-ng[21]: syslog-ng starting up; version=‘3.13.2’
*** Booting runit daemon…
*** Runit started as PID 30
*** Running /scripts/start.py…
Jul 12 17:58:57 edddb6dbeb75 cron[35]: (CRON) INFO (pidfile fd = 3)
Jul 12 17:58:57 edddb6dbeb75 cron[35]: (CRON) INFO (Running @reboot jobs)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘127.0.0.1’ (111)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘127.0.0.1’ (111)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘127.0.0.1’ (111)”)

So I’m confused as everything in conf points to the host: db
nothing is using 127.0.0.1 that I can find in a configuration file and the database is up and running.

ERIC

I can find a reference to 127.0.0.1 in bootstrap.py

loginfo(‘Now running setup-seafile-mysql.py in auto mode.’)
env = {
‘SERVER_NAME’: ‘seafile’,
‘SERVER_IP’: get_conf(‘SEAFILE_SERVER_HOSTNAME’, ‘’),
‘MYSQL_USER’: ‘seafile’,
‘MYSQL_USER_PASSWD’: str(uuid.uuid4()),
‘MYSQL_USER_HOST’: ‘%.%.%.%’,
‘MYSQL_HOST’: get_conf(‘DB_HOST’,‘127.0.0.1’),
# Default MariaDB root user has empty password and can only connect from localhost.
‘MYSQL_ROOT_PASSWD’: get_conf(‘DB_ROOT_PASSWD’, ‘’),
}

But I do not see this getting called in the logs, so that does not seem to explain it, either. Just to make sure I changed it and restarted the docker container, without any change to the errors or any accessible UI.

Hello,
I have the same issue …

I just registered here to say I have the same problem too. The thread is 1 year old, any hints on how to solve the problem?

I just wanted to start using seafile so this is not a migration or old version problem.