Comments (3)
Your container requires write access.
Turn on the "advanced app Configuration " toggle.
The switch off "read only root filesystem" toggle in the security tab.
from kubero.
Another option is to turn off the logging option of supervisor.d
Or add a writable mount (i personally would not recommend that)
from kubero.
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)
from kubero.
Related Issues (20)
- Add Peppermint template
- Failing to load podsize list in config section HOT 2
- Something broke with the latest operator (v0.0.159) HOT 3
- Add Leantime App template
- Adding node selector options HOT 2
- Add Template Keila
- Add template for HeyForm
- Add Whiteboard Template
- Having multiple projects connected triggers all of them when one repo get's updated HOT 2
- Editing app sometimes loses build and run command HOT 1
- Add Limesurvey Template HOT 2
- Running Kubero on microk8s HOT 8
- Add Formbricks template
- Add Limesurvey template
- Add 2FAuth template
- Add logto template
- Add Issue & PR templates HOT 4
- Add Planning Poker template HOT 1
- [FEATURE]: Utilize Buildpacks.io HOT 4
- [FEATURE]: Add R buildpack HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubero.