Seahub.sh not starting after upgrade 6.2.12 to 6.3.7

server

#1

Hello,

I have upgrade my Seafilepro 6.2.12 to 6.3.7 and seahub.sh is not starting.

When i change “daemon = False” in guinicorn.conf file, i have those errors messages

Traceback (most recent call last):, File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn", line 9, in <module>, load_entry_point('gunicorn==19.8.1', 'console_scripts', 'gunicorn')(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 61, in run, WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 223, in run, super(Application, self).run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 72, in run, Arbiter(self).run(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py", line 60, in __init__, self.setup(app), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py", line 120, in setup, self.app.wsgi(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py", line 67, in wsgi, self.callable = self.load(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 52, in load, return self.load_wsgiapp(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp, return util.import_app(self.app_uri), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/util.py", line 350, in import_app, __import__(module), File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/wsgi.py", line 25, in <module>, application = get_wsgi_application(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/core/wsgi.py", line 13, in get_wsgi_application, django.setup(set_prefix=False), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/__init__.py", line 27, in setup, apps.populate(settings.INSTALLED_APPS), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/registry.py", line 108, in populate, app_config.import_models(), File "/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/config.py", line 202, in import_models, self.models_module = import_module(models_module_name), File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module, __import__(name), File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/base/models.py", line 13, in <module>, from seahub.group.models import GroupMessage, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/group/models.py", line 13, in <module>, from seahub.profile.models import Profile, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/models.py", line 206, in <module>, from .utils import refresh_cache, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/utils.py", line 8, in <module>, from seahub.utils import normalize_cache_key, File "/seafile/seafile-pro-server-6.3.7/seahub/seahub/utils/__init__.py", line 1187, in <module>, seafevents_api.init(EVENTS_CONFIG_FILE), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/seafevents_api.py", line 9, in init, load_config(config_file), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/app/config.py", line 27, in load_config, appconfig.seaf_session_cls = init_db_session_class(appconfig.seaf_conf_path, db = 'seafile'), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py", line 111, in init_db_session_class, engine = create_engine_from_conf(config_file, db), File "/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py", line 52, in create_engine_from_conf, backend = config.get(db_sec, 'type'), File "/usr/lib/python2.7/ConfigParser.py", line 607, in get, raise NoSectionError(section), ConfigParser.NoSectionError: No section: 'database',

Should i try to upgrade again ? Do i need to change something in vhost file ?
Im not using fastcgi and using docker.

Config : nginx 1.13.5 / Debian Linux 9

Thanks in advance


#2

Have you pulled the latest container image?


#3

Hello thanks for answering.

I started a new fresh installation and still the same issue.

LANG is not set in ENV, set to en_US.UTF-8
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn”, line 9, in
load_entry_point(‘gunicorn==19.8.1’, ‘console_scripts’, ‘gunicorn’)()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 61, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 223, in run
super(Application, self).run()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 60, in init
self.setup(app)
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 120, in setup
self.app.wsgi()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 52, in load
return self.load_wsgiapp()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/util.py”, line 350, in import_app
import(module)
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/core/wsgi.py”, line 13, in get_wsgi_application
django.setup(set_prefix=False)
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/seafile/seafile-pro-server-6.3.7/seahub/thirdpart/django/apps/config.py”, line 202, in import_models
self.models_module = import_module(models_module_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/base/models.py”, line 13, in
from seahub.group.models import GroupMessage
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/group/models.py”, line 13, in
from seahub.profile.models import Profile
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/models.py”, line 206, in
from .utils import refresh_cache
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/profile/utils.py”, line 8, in
from seahub.utils import normalize_cache_key
File “/seafile/seafile-pro-server-6.3.7/seahub/seahub/utils/init.py”, line 1187, in
seafevents_api.init(EVENTS_CONFIG_FILE)
File “/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/seafevents_api.py”, line 9, in init
load_config(config_file)
File “/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/app/config.py”, line 27, in load_config
appconfig.seaf_session_cls = init_db_session_class(appconfig.seaf_conf_path, db = ‘seafile’)
File “/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py”, line 111, in init_db_session_class
engine = create_engine_from_conf(config_file, db)
File “/seafile/seafile-pro-server-6.3.7/pro/python/seafevents/db.py”, line 52, in create_engine_from_conf
backend = config.get(db_sec, ‘type’)
File “/usr/lib/python2.7/ConfigParser.py”, line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: ‘database’
Error:Seahub failed to start.


#4

Can you please post your docker run command?


#5

My docker run command is :
docker run -it --rm
–name=seafile-setup
-v /var/seafile:/seafile
xama/docker-seafile-pro setup

Im using this image : https://hub.docker.com/r/xama/docker-seafile-pro/

I have search my error and it seems to be an error with the file seafevents.conf
WIth the last version, seahub need to have mysql. And since right now, i was using sqlite3.

In the seafevents.conf, i have this information.

[DATABASE]
type = sqlite3
path = /seafile/pro-data/seafevents.db

This topic could help me with deploying sqldatabase but i’m using docker, i think i need to adjust this method

If someone have good method to help me with that or already did it with docker, could be appreciated :slight_smile:


#6

Docker isn’t always the same, it depends on the container design. So be careful with copy+paste.