haiwen / seafile-docker

A Docker image for Seafile server
Other
544 stars 184 forks source link

seahub.sh start' returned non-zero exit status 1 #158

Closed adamhrv closed 5 years ago

adamhrv commented 5 years ago

I'm using the new 7.0 docker-compose.yml file from https://download.seafile.com/published/support/docker/deploy%20seafile%20with%20docker.md but running into an issue during startup. When running docker-compose I get the following error:

Seafile server started
seafile      | 
seafile      | Done.
seafile      | 
seafile      | Starting seahub at port 8000 ...
seafile      | Error:Seahub failed to start.
seafile      | Please try to run "./seahub.sh start" again
seafile      | Traceback (most recent call last):
seafile      |   File "/scripts/start.py", line 86, in <module>
seafile      |     main()
seafile      |   File "/scripts/start.py", line 72, in main
seafile      |     call('{} start'.format(get_script('seahub.sh')))
seafile      |   File "/scripts/utils/__init__.py", line 69, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-7.0.2/seahub.sh start' returned non-zero exit status 1
seafile      | *** /scripts/start.py exited with status 1.
seafile      | *** Shutting down runit daemon (PID 31)...
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile      | Jun 18 13:59:43 0bd1e4d1fd04 syslog-ng[25]: syslog-ng shutting down; version='3.13.2'
seafile      | *** Killing all processes...
seafile exited with code 1

seahub.sh fails during function start_seahub ()

Why would Seafile fail here? $PYTHON $gunicorn_exe seahub.wsgi:application -c "${gunicorn_conf}" --preload

I had a few other errors so far that others might encounter with the docker-compose.yml file:

Is it anything to do with ports? Or is there an error with the seafile startup? I've tested the nginx mapping using python -m http.server 3333 and that worked.

[edited]