seahub.sh 启动失败

[root@localhost seafile-pro-server-6.3.7]# ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Failed to read config file: /root/NI/conf/gunicorn.conf
Traceback (most recent call last):
File “/root/NI/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 106, in get_config_from_filename
execfile_(filename, cfg, cfg)
File "/root/NI/seafile-pro-server-6.3.7/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/compat.py", line 91, in execfile
return execfile(fname, *args)
File “/root/NI/conf/gunicorn.conf”, line 4, in
daemon = false
NameError: name ‘false’ is not defined
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

有没有大神知道怎么解决吗?

image
你这个配置文件里的配置项写错了吧,你把 ’false‘ 改成 ’False‘ 试试

我改了False,还是无法启动;
File “/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/usr/lib64/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1193, “Unknown system variable ‘tx_isolation’”)
还有很多内容 ,请帮我看下 怎么解决可以吗

把报错信息尽量贴完整点吧,这里贴出来的不足以定位问题

好的 谢谢;不过实在太长了:
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn”, line 9, in
load_entry_point(‘gunicorn==19.8.1’, ‘console_scripts’, ‘gunicorn’)()
File “/root/ni/seafile-pro-server-6.3.2/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 “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 223, in run
super(Application, self).run()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 60, in init
self.setup(app)
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/arbiter.py”, line 120, in setup
self.app.wsgi()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/app/wsgiapp.py”, line 52, in load
return self.load_wsgiapp()
File “/root/ni/seafile-pro-server-6.3.2/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 “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/util.py”, line 350, in import_app
import(module)
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/django/core/wsgi.py”, line 13, in get_wsgi_application
django.setup(set_prefix=False)
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/django/apps/registry.py”, line 108, in populate
app_config.import_models()
File “/root/ni/seafile-pro-server-6.3.2/seahub/thirdpart/django/apps/config.py”, line 202, in import_models
self.models_module = import_module(models_module_name)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/base/models.py”, line 13, in
from seahub.group.models import GroupMessage
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/group/models.py”, line 13, in
from seahub.profile.models import Profile
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/profile/models.py”, line 175, in
from .utils import refresh_cache
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/profile/utils.py”, line 8, in
from seahub.utils import normalize_cache_key
File “/root/ni/seafile-pro-server-6.3.2/seahub/seahub/utils/init.py”, line 529, in
SeafEventsSession = seafevents.init_db_session_class(EVENTS_CONFIG_FILE)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/seafevents/db.py”, line 105, in init_db_session_class
Base.metadata.create_all(engine)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/sql/schema.py”, line 3848, in create_all
tables=tables)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1922, in _run_visitor
with self._optional_conn_ctx_manager(connection) as conn:
File “/usr/lib64/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1915, in _optional_conn_ctx_manager
with self.contextual_connect() as conn:
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 2106, in contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 2145, in _wrap_pool_connect
e, dialect, self)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 1456, in _handle_dbapi_exception_noconnection
exc_info
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/util/compat.py”, line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py”, line 2141, in _wrap_pool_connect
return fn()
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 387, in connect
return _ConnectionFairy._checkout(self)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 766, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 516, in checkout
rec = pool._do_get()
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 1138, in _do_get
self._dec_overflow()
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/util/langhelpers.py”, line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 1135, in _do_get
return self._create_connection()
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 333, in _create_connection
return _ConnectionRecord(self)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 461, in init
self.__connect(first_connect_check=True)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py”, line 661, in __connect
exec_once(self.connection, self)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/event/attr.py”, line 246, in exec_once
self(*args, **kw)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/event/attr.py”, line 256, in call
fn(*args, **kw)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/util/langhelpers.py”, line 1321, in go
return once_fn(*arg, **kw)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/strategies.py”, line 181, in first_connect
dialect.initialize©
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/dialects/mysql/base.py”, line 1632, in initialize
default.DefaultDialect.initialize(self, connection)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py”, line 249, in initialize
self.get_isolation_level(connection.connection)
File “/root/ni/seafile-pro-server-6.3.2/pro/python/SQLAlchemy-1.1.3-py2.6-linux-x86_64.egg/sqlalchemy/dialects/mysql/base.py”, line 1496, in get_isolation_level
cursor.execute(‘SELECT @@tx_isolation’)
File “/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/usr/lib64/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1193, “Unknown system variable ‘tx_isolation’”)
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
大神有空的话帮我看下到底怎么回事,完全安装官方给的方法安装的,如果安装社区版完全没问题;

我都试了好几次 好几个版本,也试过社区版升级到专业版 ,但是都是seahub启动失败;

你这是从什么版本升级过来的吗,看起来像是升级过程不对,数据库没升级

谢谢这么耐心帮我解决,我想在问下,网上的专业版的破解版安装是不是就会这样seahub启动不了啊

你好,还在吗?我每次无法启动都是这个报错,请问一下数据库怎么升级啊?大神帮帮忙好吗?我已经尝试好多次了,我6.3.3的社区版,想升级到专业版,下载了6.3.7的专业版未破解的,安装方式完全按照官方的,但是迁移到专业版就启动不了seahub,每次错误都是sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1193, “Unknown system variable ‘tx_isolation’”)

鉴于你现在的情况还是直接全新安装专业版吧,别在原来的环境下升级了,感觉你已经吧数据库搞乱了

你好,但是我在虚拟机上全新安装专业版 也不行,报错基本看上去一样,我全新虚拟机,先下载并安装mysql的,然后就完全按照seafile官网先下载专业版所需软件包,在转到社区版安装方法安装所有软件后,导入6.3.7专业版的包,解压后运行setup-seafile-mysql.sh脚本,其他都正常 ,都能生产数据文件之类的,启动seafile.sh 成功,启动seahub.sh提示我第一次创建管理员,创建完之后就提示seahub启动失败,我实在想不通我哪里出错了

虚拟机是什么操作系统

哦,你用的社区版的安装手册安装的专业版的包?你看的不是这个文档吗 https://manual-cn.seafile.com/deploy/using_mysql.html

我看的就是这个,系统是centos7.5的 ,我现在https://manual-cn.seafile.com/deploy_pro/download_and_setup_seafile_professional_server.html这个下载与安装 Seafile 专业版服务器的准备工作,所需依赖库全部装上,在转到你指的网址‘部署 Seafile 服务器(使用 MySQL/MariaDB)’一步一步操作的,前面我先安装了MYSQL数据库,其他都都一样;
很奇怪的是,我安装seafile-server-6.3.3的普通版,可以正常使用;但是重新一样的部署之后安装seafile-pro-server-6.3.7的专业版就是启动不了seahub,其他都正常;然后在尝试将6.3.3的普通版通过官方的社区版迁移专业版,也是一样,seahub启动失败;报错 基本就是你说的数据库没升级 那个错误

请问一下,我是不是还少装了什么其他需要依赖的软件包啊,比如坏境变量,不过我也装的,我也尝试先装Python3.6.1,然后配置坏境变量 ,但结果都是社区版可以,专业版seahub启动不了

大神你还在吗?我解决了,但是很想不通,我在安装专业版的时候conf文件夹内自动生成一个seafevents.conf的配置文件,我把他删除了 就好了,这是为什么 然后我尝试把他放回去 ,又启动不了了

正常就是有这个配置文件啊,你把这个配置文件里的内容贴出来看下,是不是里边哪里的配置有问题

[DATABASE]
type = mysql
host = localhost
port = 3306
username = seafile
password = Admin123!
name = seahub-db1

[AUDIT]
enabled = true

[INDEX FILES]
enabled = true
interval = 10m

highlight = fvh

If true, indexes the contents of office/pdf files while updating search index

Note: If you change this option from “false” to “true”, then you need to clear the search index and update the index again. See the FAQ for details.

index_office_pdf = true

[OFFICE CONVERTER]
enabled = False
workers = 1

how many pages are allowed to be previewed online. Default is 50 pages

max-pages = 50

the max size of documents allowed to be previewed online, in MB. Default is 10 MB

Previewing a large file (for example >30M) online is likely going to freeze the browser.

max-size = 10

[SEAHUB EMAIL]
enabled = true

interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)

interval = 30m

这个是配置的所有信息了 ,你帮我看下 ,谢谢

这个数据库下的host原先是:127.0.0.1 (也是不行的)
[DATABASE]
type = mysql
host = localhost
这个配置下的enabled原先是true
[OFFICE CONVERTER]
enabled = False
workers = 1

你好,还在吗?我还是怀疑是不是我MySQL问题,seafile的专业版对数据库的安装有要求吗?我是直接在官网下载了MySQL8.0的包,然后直接安装,确保能使用我其他的什么都没做