部署 Seafile 服务器问题求助

2017-12-13 13:58:05 +08:00
 nullcoder

服务器 Ubuntu 16.04 64 位版本 Apache2.4,安装的 6.2.3_x86-64 seafile seafile 启动成功 运行./seahub start-fastcgi 报错如下

Traceback (most recent call last):
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/tmr/seafile/seafile-server-6.2.3/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/tmr/seafile/seafile-server-6.2.3/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/thirdpart/importlib-1.0.4-py2.6.egg/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/tmr/seafile/seafile-server-6.2.3/seahub/seahub/avatar/models.py", line 25, in <module>
    import Image
  File "/usr/lib/python2.7/dist-packages/PILcompat/Image.py", line 1, in <module>
    from PIL.Image import *
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 66, in <module>
    from PIL import _imaging as core
ImportError: libtiff.so.3: cannot open shared object file: No such file or directory

运行./seahub.sh start 提示:

Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
2307 次点击
所在节点    问与答
4 条回复
SoulSleep
2017-12-13 13:59:30 +08:00
好久前装过,印象中可以考虑这两个问题:
64 位系统 32 位库
读写权限
nullcoder
2017-12-13 14:42:12 +08:00
@SoulSleep seafile 安装包下载的是 64 位的名字可以看出来
其他都是 apt-get install 的,怎么会出现 64 位装 32 位库?

读写权限,比如?
SoulSleep
2017-12-13 14:49:14 +08:00
@nullcoder #2 ImportError: libtiff.so.3: cannot open shared object file: No such file or directory

这种情况更像是缺少某个类库,这个并不确定,我之前遇到的情况是,64 位系统中存在的类库是 64 位的,但是程序需要 32 位的类库,所以,可以考虑检查下是不是这个问题

Google 了一下: http://www.asteriskguru.com/tutorials/libtiff_so_3_cannot_open.html 还有可能是这样。。。
nullcoder
2017-12-13 16:10:28 +08:00
在 stackoverflow 上找了类似答案,然后没有 libtiff.so.5,只有 libtiffxx.so.5
@SoulSleep

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/414384

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX