Giter Club home page Giter Club logo

Comments (6)

jjethwa avatar jjethwa commented on August 22, 2024

Hi @Quentinvarquet

Hmm, what commands are you running to fix the permissions? It might be due to a recent PR: #44

from icinga2.

Quentinvarquet avatar Quentinvarquet commented on August 22, 2024

Hello,

I am on a DEV server, so for now I am just using a :

chmod -R 755 icingaweb2

to make it work directly.

The thing is before I never had to do this. I was able to restart my icinga container 150 times everyday without any problem.

For example on my production server (not the last version of your dockerfile) its working well.

from icinga2.

jjethwa avatar jjethwa commented on August 22, 2024

Hi @Quentinvarquet

Hmm, looks like you are using a volume for /etc/icingaweb2 but the container's run script is not able to properly chown the files... looking into this

from icinga2.

jjethwa avatar jjethwa commented on August 22, 2024

Hi @Quentinvarquet

Try the latest build and see if that works for you. Looks like one of the recent pull requests might have introduced that bug :)

from icinga2.

Quentinvarquet avatar Quentinvarquet commented on August 22, 2024

Hello @jjethwa

I tried your fix but I still have it and ... it's my fault ! :-)

I was still using the volume "workflow" from the very old version of docker-compose

Before, we had to do

docker cp icinga_container:/etc/icingaweb2 icingaweb2

Then create the volume from this docker cp and fix the permissions...

Today I saw, with the last version of docker-compose, you just have to add your volume in your docker-compose.yml, for example :

icinga:
  image: jordan/icinga2
  volumes:
   - ./volumes/icingaweb2:/etc/icingaweb2
  environment:
   - ICINGA_PASSWORD=icinga
   - ICINGA_WEB_PASSWORD=icinga
   - ICINGAWEB2_PASSWORD=icinga
   - IDO_PASSWORD=icinga
   - DIRECTOR_PASSWORD=icinga
   - DEBIAN_SYS_MAINT_PASSWORD=icinga
   - DIRECTOR_KICKSTART=false
  ports:
   - 81:80 

And docker-compose will automatically mount your volumes with the right permissions, easier than before !

So everything is fine, the problem was .. from me because I updated docker-compose without reading all the new features from my very old version ... :-)

Thank you for your time, everything is working well !

from icinga2.

jjethwa avatar jjethwa commented on August 22, 2024

Thanks for the update, @Quentinvarquet :)

from icinga2.

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.