Seafile will not start(docker) (logs provided)

I’m running seafile via docker, using the example docker-compose.yml provided in the manual, with a few modifications. Here is my docker compose(sensitive info redacted):

    image: mariadb:10.1
    container_name: seafile-mysql
      - PUID=1000
      - GUID=1000
      - MYSQL_ROOT_PASSWORD=<REDACTED>  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
      - /opt/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
      - seafile-net

    image: memcached:1.5.6
    container_name: seafile-memcached
    entrypoint: memcached -m 256
      - seafile-net

    image: seafileltd/seafile-mc:latest
    container_name: seafile
      - 9980:80
#     - "443:443"  # If https is enabled, cancel the comment.
      - /pool-1:/shared   # Requested, specifies the path to Seafile data persistent store.
      - PUID=1000
      - GUID=1000
      - DB_HOST=db
      - DB_ROOT_PASSWD=<REDACTED>  # Requested, the value shuold be root's password of MySQL service.
      - TZ=America/New_York  # Optional, default is UTC. Should be uncomment and set to your local time zone.
      - SEAFILE_ADMIN_EMAIL=<REDACTED> # Specifies Seafile admin user, default is ''.
      - SEAFILE_ADMIN_PASSWORD=<REDACTED>     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
        #- # Specifies your host name if https is enabled.
      - db
      - memcached
      - seafile-net


When I run “docker-compose up -d” my db and memcached containers start but seafile does not. A look at the startup log is seen below. Thoughts?

docker-compose logs seafile
Attaching to seafile
seafile      | *** Running /etc/my_init.d/
seafile      | *** Booting runit daemon...
seafile      | *** Runit started as PID 14
seafile      | *** Running /scripts/
seafile      | Checking python on this machine ...
seafile      | 
seafile      | 
seafile      | verifying password of user root ...  done
seafile      | 
seafile      | verifying password of user seafile ...  
seafile      | Failed to connect to mysql server using user "seafile" and password "***": Access denied for user 'seafile'@'' (using password: YES)
seafile      | 
seafile      | [2020-09-30 21:31:53] Now running in auto mode.
seafile      | Traceback (most recent call last):
seafile      |   File "/scripts/", line 86, in <module>
seafile      |     main()
seafile      |   File "/scripts/", line 56, in main
seafile      |     init_seafile_server()
seafile      |   File "/scripts/", line 145, in init_seafile_server
seafile      |     call('{} auto -n seafile'.format(setup_script), env=env)
seafile      |   File "/scripts/utils/", line 70, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python3.6/", line 311, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-7.1.5/ auto -n seafile' returned non-zero exit status 255.
seafile      | *** /scripts/ exited with status 1.
seafile      | *** Shutting down runit daemon (PID 14)...
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile      | *** Killing all processes...

Did you ever figure this out? I’m in the same boat using the sample yaml.

Edit I figured out my issue. Bad value in the timezone field. Needs to be America/New_York not NewYork. It’s up now. Hopefully this helps others.

1 Like

THANK YOU!! I had “America/Los Angeles” and it didn’t like that. Needed to switch to “America/Los_Angeles”. I never would have guessed that. With that were logged as an error somewhere

1 Like