Closed axtgr closed 1 year ago
The error is fixed by adjusting PYTHONPATH:
export PYTHONPATH="/opt/haiwen/seafile-server-${VERSION}/seafile/lib/python3/site-packages"
However, another error appears:
Linking /opt/haiwen/ccnet => /seafile/ccnet
Linking /opt/haiwen/conf => /seafile/conf
Linking /opt/haiwen/seafile-data => /seafile/seafile-data
Linking /opt/haiwen/seahub-data => /seafile/seahub-data
ln: failed to create symbolic link '/opt/haiwen/seahub-data/seahub-data': Permission denied
The reason is that /opt/haiwen/seahub-data/seahub-data
already exists at the moment of linking. If I add a line to seafile-entrypoint.sh
that deletes the directories before linking, the script finishes successfully and Seafile seems to work fine.
My final entrypoint in docker-compose looks like this:
entrypoint: /bin/sh -c '
export PYTHONPATH="/opt/haiwen/seafile-server-$${VERSION}/seafile/lib/python3/site-packages"
&& sed "256 i rm -rf \$${ARGS[1]}" -i /usr/local/bin/seafile-entrypoint.sh
&& /usr/local/bin/seafile-entrypoint.sh'
Thanks for reporting! I have changed the setup script accordingly:
Running this command:
produces the following log:
I've tried using the older 9.0.* versions, but they all throw the same error.