Open NenoxAG opened 1 year ago
Your container requires write access.
Turn on the "advanced app Configuration " toggle.
The switch off "read only root filesystem" toggle in the security tab.
Another option is to turn off the logging option of supervisor.d
Or add a writable mount (i personally would not recommend that)
I have already tried that but that results in the same error. I have investigated this a bit and think it has to do with the fact that supervisord wants to log to the /app directory and that is not possible using the static buildpack because it mounts to that location read-only.
static-run:
container_name: "static-run"
image: caddy:latest
working_dir: /app
#command: supervisord
#command: caddy file-server --listen :8080 --root /app/public
command: './init-web.sh'
volumes:
- ../../data:/app:ro <--
ports:
- "8004:80"
depends_on:
static-build:
condition: service_completed_successfully
What i have tried already is to move the logging to another folder using -l /tmp/supervisord.log
in the Run Command section. Then there is an error that is complaining about it not being able to write the supervisord.pid to the app directory. This i fixed using the -j /tmp/supervisord.pid
argument.
After adding those two arguments nginx is finally starting but for some odd reason the console output is the following and it is in a crash loop:
2023-07-22 17:01:32,342 INFO spawned: 'nginxd' with pid 61
-> Executing /opt/docker/bin/service.d/nginx.d//10-init.sh
2023-07-22 17:01:32,350 INFO success: nginxd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
nginx: [emerg] host not found in upstream "<PHP_SOCKET>" in /opt/docker/etc/nginx/conf.d/10-php.conf:2
2023-07-22 17:01:32,356 INFO exited: nginxd (exit status 1; not expected)
Hi,
when I try to use a pipeline everything works (ssl, ingress, ...) except the "kuberoapp-web" container. It throws an error and restarts all the time.
Here is the log of the kuberoapp-web container: