Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

I'm getting the following error while running Headwind Remote installation script install.sh:

TASK [(Re)Starting Headwind Remote] *****************************************************************************************************************************************************************************************************************

fatal: [localhost]: FAILED! => {"changed": false, "errors": ["ERROR: for remote-control_nginx_1  Cannot start service nginx: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting \"/opt/remote-control/deploy/dist/conf/nginx/nginx.conf\" to rootfs at \"/etc/nginx/nginx.conf\" caused: mount through procfd: 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"], "module_stderr": "Found orphan containers (remote-control_certbot_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.\nRecreating remote-control_janus_1 ... \nRecreating remote-control_nginx_1 ... \n\u001b[1A\u001b[2K\nRecreating remote-control_nginx_1 ... \n\u001b[1B\nERROR: for remote-control_nginx_1  Cannot start service nginx: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting \"/opt/remote-control/deploy/dist/conf/nginx/nginx.conf\" to rootfs at \"/etc/nginx/nginx.conf\" caused: mount through procfd: 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\n\u001b[2A\u001b[2K\nRecreating remote-control_janus_1 ... \n\u001b[2B", "module_stdout": "", "msg": "Error starting project Encountered errors while bringing up the project."}

How to fix this issue?

by (37.5k points)

1 Answer

0 votes

There is an issue: sometimes Ansible scripts mistakenly create a directory instead of a file. 

To diagnose the issue, run the command:

ls -l deploy/dist/conf/nginx/

If there are directories instead of files in this directory, then run the commands:

rm -rf deploy/dist/conf/nginx/nginx.conf

rm -rf deploy/dist/conf/nginx/dhparams.pem

docker-compose down

bash ./install.sh

This should fix the issue.

by (37.5k points)
...