Giter Site home page Giter Site logo

kuberoapp-web container wont start about kubero HOT 3 OPEN

NenoxAG avatar NenoxAG commented on May 23, 2024 1
kuberoapp-web container wont start

from kubero.

Comments (3)

mms-gianni avatar mms-gianni commented on May 23, 2024 1

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.

mms-gianni avatar mms-gianni commented on May 23, 2024

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.

NenoxAG avatar NenoxAG commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.