V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
nullcoder
V2EX  ›  问与答

部署 Seafile 服务器问题求助

  •  
  •   nullcoder · 2017-12-13 13:58:05 +08:00 · 2305 次点击
    这是一个创建于 2323 天前的主题,其中的信息可能已经有所发展或是发生改变。

    服务器 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
    
    4 条回复    2017-12-13 16:10:28 +08:00
    SoulSleep
        1
    SoulSleep  
       2017-12-13 13:59:30 +08:00
    好久前装过,印象中可以考虑这两个问题:
    64 位系统 32 位库
    读写权限
    nullcoder
        2
    nullcoder  
    OP
       2017-12-13 14:42:12 +08:00
    @SoulSleep seafile 安装包下载的是 64 位的名字可以看出来
    其他都是 apt-get install 的,怎么会出现 64 位装 32 位库?

    读写权限,比如?
    SoulSleep
        3
    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
        4
    nullcoder  
    OP
       2017-12-13 16:10:28 +08:00
    在 stackoverflow 上找了类似答案,然后没有 libtiff.so.5,只有 libtiffxx.so.5
    @SoulSleep
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5646 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.