alhazmy13 / Synology-NAS-monitoring

influxDB, Grafana, snmp and telegraf
202 stars 27 forks source link

influxdb crashing #6

Open drbugfinder opened 3 years ago

drbugfinder commented 3 years ago

Hi, I installed everything as described in the readme. However, the container log is full of logs like (repeating every second): INFO spawned: 'influxdb' with pid 6250 INFO success: influxdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) INFO exited: influxdb (exit status 1; not expected) INFO spawned: 'influxdb' with pid 6269 INFO success: influxdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) INFO exited: influxdb (exit status 1; not expected) INFO spawned: 'influxdb' with pid 6288 INFO success: influxdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) INFO exited: influxdb (exit status 1; not expected) It looks like influxdb is working, at least Grafana shows data.

JustasOtto commented 3 years ago

See https://github.com/grafana/grafana/issues/12594 for reference.

I will look at updating the docker file to make that directory writeable on start. If you can't wait for a new build, you can do the following:

  1. SUDO an Synology terminal or SSH into the container using docker exec -it <<container_name>> /bin/bash

sudo docker exec -it alhazmy13/telegraf-influxdb-grafana1 /bin/bash

  1. Execute chmod 0777 /var/lib/grafana and chmod 0777 /var/lib/influxdb
gingerbeardman commented 2 years ago

I had this, too.

I used the GUI to fix, as follows:

  1. In DSM > Docker > Container > alhazmy13/telegraf-influxdb-grafana1 > Terminal tab > Create (this defaults to a bash terminal process)
  2. in the list on the left click to highlight bash
  3. type in chmod 0777 /var/lib/grafana; chmod 0777 /var/lib/influxdb
  4. done

Though even after that the dashboard remained static.

alhazmy13 commented 1 year ago

Dears, Can you check the latest image with develop tag? it should be fixed now.

alhazmy13/telegraf-influxdb-grafana:develop

Thanks