haiwen / seafile-docker

A Docker image for Seafile server
Other
537 stars 181 forks source link

nginx shared folder is never created #254

Closed AlexVonB closed 3 years ago

AlexVonB commented 3 years ago

Hi all!

Problem

The nginx config file is not accessible in the /shared volume. This is related to https://github.com/haiwen/seafile-docker/issues/219#issuecomment-631957421 as it would enable us to update the nginx config file ourselves.

Cause

When calling start.sh, the script creates shared folders:

https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L45-L48

and then calls generate_local_nginx_conf

https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/start.py#L52

which tries to move the nginx config file to the shared folder /shared/nginx and then tries to link it to /etc/

https://github.com/haiwen/seafile-docker/blob/0d24e199e438e2f45134c8171119135862402795/scripts/bootstrap.py#L97

But the shared folder /shared/nginx is never created, so the moving and linking fails.

Solution

Create the folder /shared/nginx in start.py.

Thanks!

AlexVonB commented 3 years ago

This only happens on 7.0, so it wont be relevant. Closing this.