-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
can't create /etc/nginx/conf.d/default.conf: Read-only file system #19787
Comments
I added nginx as serivce in my swarm and now i get this error:
|
Adding nginx was not the way to go. If Airbyte needs to be deployed over docker compose as swarm the following needs to be done:
Also if necessary all ports can be removed, exept - 8000:8000 under airbyte-proxy Heres my working docker-compose (we're still working on it so a PR may follow)
|
Your mentioned docker-compose is actually broken based on my tests, the |
We're trying to deploy on portainer with a docker swarm and I believe we're facing the same issue. With your docker-compose it complains it can't locate airbyte_development.yaml. How were you deploying yourself? |
@polmonso We deployed with .env, so the production version. I assume you used the dev version? In airbyte-proxy i edited the port from 8004 to the original value of 8000 and renamed webapp and server to airbyte-webapp and airbyte-server in my docker-compose posted above. Here my .env also:
|
Thank you @ASchmidtGit - had some problems getting this running in portainer and your posts here and on the forum helped figure out the missing pieces. This was probably slightly harder than usual since I'm still new to some of the portainer and docker concepts (such as docker configs, as silly as it may be). For anyone else, here's what worked for me in portainer using the latest compose & .env from the repo: |
Environment
Current Behavior
While deploying the WebApp service does not start and throws the following error:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?) /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf /docker-entrypoint.d/20-envsubst-on-templates.sh: line 33: can't create /etc/nginx/conf.d/default.conf: Read-only file system
And because the WebApp cant start, the proxy service also throws an error:
BASIC_AUTH_USERNAME is set, requiring auth for user '""' Adding password for user "" starting nginx... nginx version: nginx/1.23.2 2022/11/23 12:48:06 [emerg] 12#12: host not found in upstream "airbyte-webapp" in /etc/nginx/nginx.conf:15 nginx: [emerg] host not found in upstream "airbyte-webapp" in /etc/nginx/nginx.conf:15
Expected Behavior
The services should start normally
Steps to Reproduce
configs: - source: airbyte_development.yaml target: /etc/temporal/config/dynamicconfig/development.yaml
configs: - source: airbyte_default.conf target: /etc/nginx/conf.d/default.conf
Do i need a running nginx service in my Swarm or should the config in webapp be enough?
The text was updated successfully, but these errors were encountered: