Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: mkdir: cannot create directory ‘/run/nginx’: File exists #36

Closed
WLammert opened this issue Aug 29, 2024 · 4 comments · Fixed by #37
Closed

Error: mkdir: cannot create directory ‘/run/nginx’: File exists #36

WLammert opened this issue Aug 29, 2024 · 4 comments · Fixed by #37

Comments

@WLammert
Copy link

Hi, tried to install teslamate, all config seems to be fine, DB in PSQL created, connecttion to grafana edited, but still got this when starting:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun teslamate (no readiness notification)
mkdir: cannot create directory ‘/run/nginx’: File exists
[13:19:11] ERROR: Nginx encountered an error, halting add-on
s6-rc: info: service legacy-services successfully started
s6-rc: info: service legacy-services: stopping
mkdir: cannot create directory ‘/run/nginx’: File exists
[13:19:12] ERROR: Nginx encountered an error, halting add-on
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

@lildude
Copy link
Owner

lildude commented Aug 30, 2024

🤔 That's indicating there's already a file or directory called /run/nginx in the container. This shouldn't be the case as this is the only nginx process running included in the container.

I'm not sure how you've ended up with this file/directory but I can update the script to handle this scenario.

@WLammert
Copy link
Author

I installed the PostgressQL addon on my HASS instance, also the grafana addon. After that I tried to install and run the tesla mate addon and this error occured. Not sure if it’s only my problem, but it would be really helpful to find a workaround - or a fix :-)

@lildude
Copy link
Owner

lildude commented Aug 30, 2024

The latest release should fix this.

@WLammert
Copy link
Author

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun teslamate (no readiness notification)
[14:30:42] INFO: Starting NGINX...
s6-rc: info: service legacy-services successfully started

It does indeed! Thanks for the fast response! Now TeslaMate is visible in my HASS instance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants