系统为ubuntu 14.04 x64 按此教程操作 在第三步 “安装 Libreoffice 和 UNO 库 ” 时出问题,提示
Package python-uno is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
不过它也给出来解决办法,如下
However the following packages replace it:
libreoffice-script-provider-python
执行 apt-get install libreoffice-script-provider-python 就OK了
之后各步操作都没有提示错误
最后启动时seafile成功启动,seahub不能启动,显示如下
sudo -u seafile ./seahub.sh start-fastcgi
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …
Traceback (most recent call last):
File “/home/seafile/seafile-pro-server-6.0.13/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/init.py”, line 303, in execute
settings.INSTALLED_APPS
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 48, in getattr
self._setup(name)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 44, in _setup
self._wrapped = Settings(settings_module)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 92, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/home/seafile/seafile-pro-server-6.0.13/pro/python/importlib-1.0.2-py2.6.egg/importlib/init.py”, line 37, in import_module
import(name)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/seahub/init.py”, line 3, in
from handlers import repo_created_cb, repo_deleted_cb
File “/home/seafile/seafile-pro-server-6.0.13/seahub/seahub/handlers.py”, line 16, in
import seafevents
File “/home/seafile/seafile-pro-server-6.0.13/pro/python/seafevents/init.py”, line 31, in
from .db import init_db_session_class
File “/home/seafile/seafile-pro-server-6.0.13/pro/python/seafevents/db.py”, line 7, in
from sqlalchemy import create_engine
File “build/bdist.linux-x86_64/egg/sqlalchemy/init.py”, line 9, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/sql/init.py”, line 8, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/sql/expression.py”, line 34, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/sql/functions.py”, line 11, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/sql/sqltypes.py”, line 21, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/processors.py”, line 128, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/cprocessors.py”, line 7, in
File “build/bdist.linux-x86_64/egg/sqlalchemy/cprocessors.py”, line 4, in bootstrap
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 936, in resource_filename
self, resource_name
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 1567, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 1595, in _extract_resource
self.egg_name, self._parts(zip_path)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 1002, in get_cache_path
self.extraction_error()
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 982, in extraction_error
raise err
pkg_resources.ExtractionError: Can’t extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: ‘/root/.python-eggs’
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Error:Seahub failed to start.
chown -R seafile:seafile /root/.python-eggs 再启动seahub问题依旧
直接使用root用户启动seahub显示如下 也不能成功
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/seafile/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Traceback (most recent call last):
File “/home/seafile/seafile-pro-server-6.0.13/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/init.py”, line 303, in execute
settings.INSTALLED_APPS
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 48, in getattr
self._setup(name)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 44, in _setup
self._wrapped = Settings(settings_module)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/init.py”, line 92, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/home/seafile/seafile-pro-server-6.0.13/pro/python/importlib-1.0.2-py2.6.egg/importlib/init.py”, line 37, in import_module
import(name)
File “/home/seafile/seafile-pro-server-6.0.13/seahub/seahub/init.py”, line 3, in
from handlers import repo_created_cb, repo_deleted_cb
File “/home/seafile/seafile-pro-server-6.0.13/seahub/seahub/handlers.py”, line 17, in
from utils import SeafEventsSession
File “/home/seafile/seafile-pro-server-6.0.13/seahub/seahub/utils/init.py”, line 479, in
SeafEventsSession = seafevents.init_db_session_class(EVENTS_CONFIG_FILE)
File “/home/seafile/seafile-pro-server-6.0.13/pro/python/seafevents/db.py”, line 89, in init_db_session_class
Base.metadata.create_all(engine)
File “build/bdist.linux-x86_64/egg/sqlalchemy/sql/schema.py”, line 3848, in create_all
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 1922, in _run_visitor
File “/usr/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 1915, in _optional_conn_ctx_manager
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 2106, in contextual_connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 2145, in _wrap_pool_connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 1456, in _handle_dbapi_exception_noconnection
File “build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py”, line 202, in raise_from_cause
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py”, line 2141, in _wrap_pool_connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 387, in connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 766, in _checkout
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 516, in checkout
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 1229, in _do_get
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 333, in _create_connection
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 461, in init
File “build/bdist.linux-x86_64/egg/sqlalchemy/pool.py”, line 651, in __connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py”, line 105, in connect
File “build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py”, line 385, in connect
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
Error:Seahub failed to start.
求助!!!