GithubHelp home page GithubHelp logo

docker's People

Contributors

aloross avatar chadrien avatar cniry avatar cypx avatar damien-biasotto avatar h-nestler avatar jacquesbh avatar llindemann avatar ozee31 avatar pofmagicfingers avatar real34 avatar redlegoman avatar smremde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

Munin has not run yet. Please try again in a few moments.

After trying (quick start)
docker pull occitech/munin
docker run -p 80 occitech/munin:latest

I always got (on localhost:32770)
Munin has not run yet. Please try again in a few moments.

==> /var/log/munin/munin-update.log <==
2021/03/07 13:50:02 [INFO]: Starting munin-update
2021/03/07 13:50:02 [INFO] starting work in 313 for munin/172.17.0.1:4949.
2021/03/07 13:50:02 [FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.
2021/03/07 13:50:02 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.'
2021/03/07 13:50:12 [INFO] Remaining workers: munin;munin
2021/03/07 13:50:12 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>.  Exit value/signal: 18/0
2021/03/07 13:50:12 [INFO] No old data available for failed worker munin;munin.  This node will disappear from the html web page hierarchy
2021/03/07 13:50:12 [INFO]: Munin-update finished (10.00 sec)
2021/03/07 13:55:01 [INFO]: Starting munin-update
2021/03/07 13:55:01 [INFO] Process 313 is dead, stealing lock, removing file
2021/03/07 13:55:01 [INFO] starting work in 323 for munin/172.17.0.1:4949.
2021/03/07 13:55:01 [FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.
2021/03/07 13:55:01 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 256.'

Rework php Dockerfiles

  • Remove the RM part from
RUN rm /etc/php5/apache2/php.ini
RUN rm /etc/php5/cli/php.ini
ADD ./php.ini /etc/php5/apache2/php.ini
ADD ./php.ini /etc/php5/cli/php.ini
  • Enable php5-crypt with RUN php5enmod mcrypt
  • Remove RUN chmod +x /init.sh by making it runnable in the repo

Munin: example with volumes not work out of the box

I used the command suggest in README.md with a volume for logs.

This does not work, if the directoy /data/munin does not exist. Webserver does not start, because wrong directory permissions.

$ rm -rf /data/munin
$ docker run \
 -ti \
 --name=munin \
 -p 127.0.0.1:8080:80 \
 -e THISNODENAME="munin.example.com" \
 -e TZ="Europe/London" \
 -e CRONDELAY=2 \
 -e NODES="anothernode.example.com:1.2.3.4 anothernode2.example.com:5.6.7.8" \
 -v /data/munin/db:/var/lib/munin \
 -v /data/munin/logs:/var/log/munin \
 -v /data/munin/cache:/var/cache/munin \
 occitech/munin:latest
... 
/usr/local/bin/run: line 90: /var/cache/munin/www/index.html: No such file or directory
chown: cannot access '/var/cache/munin/www/index.html': No such file or directory

Webside is not accessable

$ curl -v http://127.0.0.1:8080/
...
< HTTP/1.1 403 Forbidden
...
<p>You don't have permission to access this resource.</p>

If I stop this container and start the container again, then the directory exists and the line 90 has no errors.
The webside is empty with the text "Munin has not run yet. Please try again in a few moments." now.

Wait long time not helps. No graphics will be see, because wrong permission for html log.

To fix this, needs to change directory rights after docker was started. This is a simple woraround:

$ docker exec munin chown munin:munin /var/log/munin

Some minutes later Munin website is working.

Pull request #33 fixes this issue completely.

Problem launching container with kitematic

Hi

When i launch the container with kitematic i got this error:

AH00526: Syntax error on line 38 of /etc/apache2/apache2.conf:
DocumentRoot must be a directory

Do i have to pass some environments variable?

munin : Socket read from munin failed

Hi thanks for your work however I'm new to munin and can't make it work on my local computer:

sudo docker run \
 --name=munin \
 -p 8080:80 \
 -e THISNODENAME="myservice" \
 -e TZ="UTC" \
 -e CRONDELAY=1 \
 -v /data/munin/db:/var/lib/munin \
 -v /data/munin/logs:/var/log/munin \
 -v /data/munin/cache:/var/cache/munin \
 munin:latest

I get this:

2019/11/27 22:38:12 [INFO] Remaining workers: munin;munin
2019/11/27 22:38:12 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>.  Exit value/signal: 18/0
2019/11/27 22:38:12 [INFO] No old data available for failed worker munin;munin.  This node will disappear from the html web page hierarchy
2019/11/27 22:38:12 [INFO]: Munin-update finished (10.00 sec)
2019/11/27 22:40:01 [INFO]: Starting munin-update
2019/11/27 22:40:01 [INFO] Process 681 is dead, stealing lock, removing file
2019/11/27 22:40:01 [INFO] starting work in 691 for munin/172.17.0.1:4949.
2019/11/27 22:40:01 [FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 254.
2019/11/27 22:40:01 [ERROR] Munin::Master::UpdateWorker<munin;munin> died with '[FATAL] Socket read from munin failed.  Terminating process. at /usr/share/perl5/Munin/Master/UpdateWorker.pm line 254.
'
2019/11/27 22:40:11 [INFO] Remaining workers: munin;munin
2019/11/27 22:40:11 [INFO] Reaping Munin::Master::UpdateWorker<munin;munin>.  Exit value/signal: 18/0
2019/11/27 22:40:11 [INFO] No old data available for failed worker munin;munin.  This node will disappear from the html web page hierarchy
2019/11/27 22:40:11 [INFO]: Munin-update finished (10.00 sec)

No error when I do this :

su -s /bin/bash munin
/usr/share/munin/munin-update --debug --nofork --host localhost --service cpu

And by the way I had to manually create 2 folders in the volume to avoid run.sh errors: /var/cache/munin/www
/var/lib/munin/cgi-tmp

run.sh misses hosts with similar IP addresses

munin:
I added two hosts to the NODES variable with IP addresses 10.10.10.150 and 10.10.10.15.
The run.sh script greps the IP in munin.conf before adding, to make sure it does not duplicate entries, but grepping for "10.10.10.15" matches "10.10.10.150", so it does not add 10.10.10.15 unless you rearrange the NODES list or change the grep in run.sh to something like:
grep -q "${HOST}$" /etc/munin/munin.conf || cat << EOF >> /etc/munin/munin.conf

Add nginx/php-fpm

And for nginx mutliple configurations (like for SF2, laravel, Cakephp, Magento…)

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.