版本:
seafile 7.0.4
運行環境:
ubuntu 18.10
問題描述:
按照官網指導,在ubuntu主機上部署seafile服務,卻在 ./seahub.sh start這一步出現錯誤:
錯誤提示:Error happened during creating seafile admin.
其他信息:
所有步驟均在seafile賬戶下執行,相關文件的所有者和組均爲seafile。
分析:
【1】直接把錯誤提示貼到網上,沒有找到有用的解決辦法。
【2】查log:logs/ccnet.log
發現以下log提示:
搜索相關的解決辦法。根據 https://www.h3399.cn/201811/634526.html 的提示,得到解決辦法:
root用戶登錄mysql:
mysql -u root -p
執行以下命令:
ALTER USER 'seafile'@'localhost' IDENTIFIED BY 'your_password' PASSWORD EXPIRE NEVER;
ALTER USER 'seafile'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';
FLUSH PRIVILEGES;
ALTER USER 'seafile'@'localhost' IDENTIFIED BY 'your_password';
quit;
於是,創建成功: