Skip to content

nginx.conf created as folder #114

@hubortje

Description

@hubortje

Hey, the current docker file creates nginx.conf as a folder, resulting in the following error:

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; docker compose --file '/path/to/wger/wger.yml' --file "/path/to/wger/compose.override.yml" --env-file '/path/to/appdata/global.env' --env-file '/path/to/wger/wger.env' up -d 2>&1':  Network wger_default  Creating
 Network wger_default  Created
 Container wger-cache-1  Creating
 Container wger-db-1  Creating
 Container wger-cache-1  Created
 Container wger-db-1  Created
 Container wger-web-1  Creating
 Container wger-web-1  Created
 Container wger-nginx-1  Creating
 Container wger-nginx-1  Created
 Container wger-cache-1  Starting
 Container wger-db-1  Starting
 Container wger-db-1  Started
 Container wger-cache-1  Started
 Container wger-db-1  Waiting
 Container wger-cache-1  Waiting
 Container wger-cache-1  Healthy
 Container wger-db-1  Healthy
 Container wger-web-1  Starting
 Container wger-web-1  Started
 Container wger-nginx-1  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/path/to/wger/config/nginx.conf" to rootfs at "/etc/nginx/conf.d/default.conf": create mountpoint for /etc/nginx/conf.d/default.conf mount: cannot create subdirectories in "/path/to/merged/etc/nginx/conf.d/default.conf": not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; docker compose --file '/path/to/wger/wger.yml' --file "/path/to/wger/compose.override.yml" --env-file '/path/to/global.env' --env-file '/path/to/wger/wger.env' up -d 2>&1':  Network wger_default  Creating
 Network wger_default  Created
 Container wger-cache-1  Creating
 Container wger-db-1  Creating
 Container wger-cache-1  Created
 Container wger-db-1  Created
 Container wger-web-1  Creating
 Container wger-web-1  Created
 Container wger-nginx-1  Creating
 Container wger-nginx-1  Created
 Container wger-cache-1  Starting
 Container wger-db-1  Starting
 Container wger-db-1  Started
 Container wger-cache-1  Started
 Container wger-db-1  Waiting
 Container wger-cache-1  Waiting
 Container wger-cache-1  Healthy
 Container wger-db-1  Healthy
 Container wger-web-1  Starting
 Container wger-web-1  Started
 Container wger-nginx-1  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/path/to/wger/config/nginx.conf" to rootfs at "/etc/nginx/conf.d/default.conf": create mountpoint for /etc/nginx/conf.d/default.conf mount: cannot create subdirectories in "/path/to/merged/etc/nginx/conf.d/default.conf": not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type in /usr/share/openmediavault/engined/rpc/compose.inc:1012
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(628): OMVRpcServiceCompose->{closure}()
#1 /usr/share/openmediavault/engined/rpc/compose.inc(979): OMV\Rpc\ServiceAbstract->execBgProc()
#2 [internal function]: OMVRpcServiceCompose->doCommand()
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array()
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
#6 {main}

Workaround is to rmdir /path/to/wger/config/nginx.conf and do touch nginx.conf and copy-paste the contents of https://github.com/wger-project/docker/blob/master/config/nginx.conf into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions