Seahub is the web interface for seafile server.
Now let’s setup seahub configuration. Press [ENTER] to continue
Creating database now, it may take one minute, please wait…
/home/pi/Downloads/seafile-server-7.1.4
Failed to sync seahub database.
Error occured during setup.
Please fix possible issues and run the script again.
有没有大神或开发人员给指导一下哈。安装过程就出现这个,也没有说缺啥。
把树莓派换了个清华的源后完全更新了一下,然后再安装,都能安装成功了。seafile.sh运行启动正常,seahub.sh启动出现问题,报错如下:
pi@raspberrypi:~/seafile/seafile-server $ ./seahub.sh start
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/home/pi/seafile/seafile-server/check_init_admin.py”, line 351, in
rpc = RPC()
File “/home/pi/seafile/seafile-server/check_init_admin.py”, line 284, in init
import ccnet
ModuleNotFoundError: No module named ‘ccnet’
pi@raspberrypi:~/seafile/seafile-server $ sudo apt-get install ccnet
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
ccnet 已经是最新版 (6.1.8-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
但是我有安装ccnet的呀,为什么不行呢?
给权限运行也不行
pi@raspberrypi:~/seafile/seafile-server $ sudo ./seahub.sh start
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/home/pi/seafile/seafile-server/check_init_admin.py”, line 351, in
rpc = RPC()
File “/home/pi/seafile/seafile-server/check_init_admin.py”, line 284, in init
import ccnet
ModuleNotFoundError: No module named ‘ccnet’
无语了,真是一波三折。
解决“ModuleNotFoundError: No module named ‘ccnet’”的办法如下:
修改seahub.sh 脚本第217行 : export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.6/site-packages:${INSTALLPATH}/seafile/lib64/python3.6/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
将python3.6 改成python3.7
得到:export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.7/site-packages:${INSTALLPATH}/seafile/lib64/python3.7/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
但是新问题又出来了
pi@raspberrypi:~/seafile $ sudo ./seahub.sh start
Starting seahub at port 8000 …
Error happened during creating seafile admin.
Seahub is started
Done.
pi@raspberrypi:~/seafile $
创建用户出错。。。
把conf里面的gunicorn.conf.py里面的bind 地址修改为192.168.0.98局网地址,虽然还是不能消除不能创建admin这个问题,但是能打开网页了
root@raspberrypi:/home/pi/seafile/seafile-server# ./seahub.sh restart
Stopping seahub …
Starting seahub at port 8000 …
Error happened during creating seafile admin.
[2020-08-19 06:42:42 +0000] [17728] [INFO] Starting gunicorn 20.0.4
[2020-08-19 06:42:42 +0000] [17728] [INFO] Listening at: http://192.168.0.98:8000 (17728)
[2020-08-19 06:42:42 +0000] [17728] [INFO] Using worker: sync
[2020-08-19 06:42:42 +0000] [17742] [INFO] Booting worker with pid: 17742
[2020-08-19 06:42:42 +0000] [17743] [INFO] Booting worker with pid: 17743
[2020-08-19 06:42:42 +0000] [17744] [INFO] Booting worker with pid: 17744
[2020-08-19 06:42:42 +0000] [17745] [INFO] Booting worker with pid: 17745
[2020-08-19 06:42:42 +0000] [17746] [INFO] Booting worker with pid: 17746
求解决方法!
taosx
2020 年8 月 25 日 08:55
8
tunaisen:
No module named ‘ccnet’
这问题我也遇到过,这个ccnet是他写的一个py脚本在文件里面,你下载的文件不全,换个吧。