docker-grafana-graphite icon indicating copy to clipboard operation
docker-grafana-graphite copied to clipboard

Unable to create Image from Git project

Open ravieze opened this issue 6 years ago • 6 comments

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

ravieze avatar Jun 06 '18 13:06 ravieze

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.

paulosuzart avatar Oct 26 '18 07:10 paulosuzart

Same issue, comment above doesn't help

MrNeuronix avatar Oct 26 '18 09:10 MrNeuronix

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?

paulosuzart avatar Oct 26 '18 09:10 paulosuzart

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 avatar Oct 26 '18 09:10 MrNeuronix

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.

MrNeuronix avatar Oct 26 '18 09:10 MrNeuronix

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.

gcohler avatar Jul 24 '19 17:07 gcohler