gitbook-adsb-guide icon indicating copy to clipboard operation
gitbook-adsb-guide copied to clipboard

InfluxDB Config Error and Fix

Open sembeeuk opened this issue 2 years ago • 0 comments
trafficstars

After setting up the InfluxDB container, it wasn't starting. The error was:

"Error: failed to parse "1y": duration must be week(w), day(d), hour(h), min(m), sec(s), millisec(ms), microsec(us), or nanosec(ns)"

Changing the docker-compose.yml file in the environment section to

DOCKER_INFLUXDB_INIT_RETENTION=52w

Then doing

docker rm influx, then docker volume rm adsb_influxdb_data and docker volume rm adsb_influxdb_config

Resolved the problem.

Perhaps someone can replicate and confirm?

sembeeuk avatar Feb 23 '23 16:02 sembeeuk