Code Monkey home page Code Monkey logo

Comments (5)

benjaminguttmann-avtq avatar benjaminguttmann-avtq commented on July 18, 2024

Hi there,

seeing same issues with bionic stemcell 0.24,

so it basically looks like Grafana is not starting up:

tail -f post-start.stdout.log
[Mon Apr 19 14:05:48 UTC 2021] Resetting grafana admin password ...
Waiting for grafana to listen on port 3000 (0/60)

from prometheus-boshrelease.

poblin-orange avatar poblin-orange commented on July 18, 2024

Seems the nc command checking the open grafana port is the culprit:

broker/801ac959-c4b5-4251-a4be-fd823f32355e:/var/vcap/sys/log/grafana# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root      5880   704  0 Apr19 ?        00:00:00 bash /var/vcap/jobs/grafana/bin/post-start
root      5887  5880  0 Apr19 ?        00:00:00 bash /var/vcap/jobs/grafana/bin/grafana-admin-password
root      5891  5887  0 Apr19 ?        00:00:00 nc 127.0.0.1 3000
broker/801ac959-c4b5-4251-a4be-fd823f32355e:/var/vcap/sys/log/grafana# nc -vz 127.0.0.1 3000
Connection to 127.0.0.1 3000 port [tcp/*] succeeded!

broker/801ac959-c4b5-4251-a4be-fd823f32355e:/var/vcap/sys/log/grafana# nc  127.0.0.1 3000
=> freeze

from prometheus-boshrelease.

benjaminguttmann-avtq avatar benjaminguttmann-avtq commented on July 18, 2024

Yes, that is was I also just found out... currently trying to figure out why this is happening because a curl on http://localhost:3000 is working fine

from prometheus-boshrelease.

benjaminguttmann-avtq avatar benjaminguttmann-avtq commented on July 18, 2024

So it seems like

nc 127.0.0.1 3000 < /dev/null

is behaving differently on Xenial and Bionic. For Xenial it immediately returns, for Bionic it does not. This approach was apparently applied to fix issues with cent os.

from prometheus-boshrelease.

benjaminguttmann-avtq avatar benjaminguttmann-avtq commented on July 18, 2024

We could adjust the following line

https://github.com/bosh-prometheus/prometheus-boshrelease/blob/9cccf9494a86b0b2420b5d9dd086397cbecf7c72/jobs/grafana/templates/bin/grafana-admin-password#L8

to look like the following

if nc -w 5 127.0.0.1 <%= p('grafana.server.http_port') %> < /dev/null; then

from prometheus-boshrelease.

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.