Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create Image from Git project #123

Open
ravieze opened this issue Jun 6, 2018 · 6 comments
Open

Unable to create Image from Git project #123

ravieze opened this issue Jun 6, 2018 · 6 comments

Comments

@ravieze
Copy link

ravieze commented Jun 6, 2018

This is what i did

  1. checkout the git repo (from master)
  2. run the command: docker build -t rc/graphite-grafana .

once the image is done, i changed the docker-compose.json to refer to my new image. Now i run the command: make up. The containers are up, but there is no UI

if i use the kamon/graphite-grafana things work very smooth. Any help?

when i do make tail --> i dont see any errors.

infact when i take kamon/xxx image and rename it and use this renamed image the grafana ui comes up but i see a lot of errors in make tail

2018-06-06 14:01:08,313 INFO success: export-datasources-and-dashboards entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-06-06 14:01:19,604 INFO exited: export-datasources-and-dashboards (exit status 1; not expected)
2018-06-06 14:01:20,606 INFO spawned: 'export-datasources-and-dashboards' with pid 9662
2018-06-06 14:01:21,608 INFO success: export-datasources-and-dashboards entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-06-06 14:01:32,884 INFO exited: export-datasources-and-dashboards (exit status 1; not expected)
2018-06-06 14:01:33,886 INFO spawned: 'export-datasources-and-dashboards' with pid 9724

@paulosuzart
Copy link

paulosuzart commented Oct 26, 2018

Try adding this:

    location /static {
      alias /opt/graphite/webapp/content;
    }

to nginx/nginx.conf for server listening port 81. Basically nginx is not serving the static content (js,css,img) from the proper folder.

Need to create a pr for this but short of time now.

@MrNeuronix
Copy link

Same issue, comment above doesn't help

@paulosuzart
Copy link

paulosuzart commented Oct 26, 2018

Hi, This is working for us with the master version and the docker-compose.yml set to:

version: '2'
services:
  grafana_graphite:
    build: .
    # image: kamon/grafana_graphite
    container_name: kamon-grafana-dashboard
    ports:
      - '80:80'
      - '81:81'
      - '8125:8125/udp'
      - '8126:8126'
      - '2003:2003'
      - '8000:8000'
    volumes:
      - ./data/whisper:/opt/graphite/storage/whisper
      - ./data/grafana:/opt/grafana/data
      - ./log/graphite:/opt/graphite/storage/log
      - ./log/supervisor:/var/log/supervisor

You can also use docker-compose directly to build the service after this change: docker-compose build grafana_graphite then make up. Have you tried this way?

@MrNeuronix
Copy link

MrNeuronix commented Oct 26, 2018

Yep, i was trying to do docker-compose build grafana_graphite then make up.
In nginx_error.log i'm see many errors like this:

2018/10/26 09:08:21 [crit] 24#24: *123 open() "/var/tmp/nginx/proxy/1/02/0000000021" failed (13: Permission denied) while reading upstream, client: 192.168.10.155, server: _, request: "GET /public/build/vendor.4f5454f867a0cc2fe8dd.js HTTP/1.1", upstream: "http://127.0.0.1:3000/public/build/vendor.4f5454f867a0cc2fe8dd.js", host: "192.168.10.100:3000", referrer: "http://192.168.10.100:3000/"

@MrNeuronix
Copy link

MrNeuronix commented Oct 26, 2018

Looks like the user and group of /var/tmp/nginx/proxy is wrong. The parent directory has nginx:nginx and subdirectories have www:www. Changed to nginx:nginx and grafana up and working correctly.

@gcohler
Copy link

gcohler commented Jul 24, 2019

I too am having this problem. I clone the repo, checkout master, do docker-compose build and the build fails on the wizzy install. I modify the Dockerfile to install wizzy via git clone wizzy repo; npm install' npm link and now the build succeeds. And docker-compose up -d appears to work. But now the webpage fails to load. I get two errors net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) from login:18 and login:248.

I tried the chown above, but it had no effect.

Any ideas? This is a great docker container. But I need to modify grafana/custom.ini slightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants