Hi there,
i don’t know where to begin. I have a really simple setup. 1 Database for homeautomation / monitoring and 1 for system logs via telegraph just for fun. After several weeks and month of service, it basically stopped working, throwing errors that influx cannot establish http connections or something like that.
After a bit of googling, it was suggested to increase the ulimits for max open files which back then was only 1024. So i increased it and i didn’t get that error anymore yet another. Trying to revert back to the old state did not change the error. I also tried to move the folders around but that did also not help.
As of now it seems as if my data/engine folder, the actual database data is the problem. I moved the engine folder via environment variable and it booted up again, but of course my data is gone.
So here is my setup and the logs:
Logs via pastebin
docker compose setup:
# INFLUXDB influxdb: container_name: influxdbv2 image: influxdb:latest restart: unless-stopped # user: 0:1001 ports: - $INFLUXDB_PORT:8086 volumes: # - $DOCKERDIR/influxdbv2/influxdb:/var/lib/influxdb - $DOCKERDIR/influx-test/data:/var/lib/influxdb2 - $DOCKERDIR/influx-test/config:/etc/influxdb2 # - /etc/ssl:/etc/ssl/ environment: # - DOCKER_INFLUXDB_INIT_MODE=setup - DOCKER_INFLUXDB_INIT_USERNAME=$INFLUXDB_ADMIN_USERNAME - DOCKER_INFLUXDB_INIT_PASSWORD=$INFLUXDB_ADMIN_PASSWORD - DOCKER_INFLUXDB_INIT_ORG=$INFLUXDB_ORG - DOCKER_INFLUXDB_INIT_BUCKET=$INFLUXDB_BUCKETNAME - INFLUXD_ENGINE_PATH=/var/lib/influxdb2/engine # - INFLUXDB_HTTP_HTTPS_ENABLED=true - INFLUXD_TLS_CERT=/etc/influxdb2/influxdb-selfsigned.crt - INFLUXD_TLS_KEY=/etc/influxdb2/influxdb-selfsigned.key
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 22941
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 60000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 22941
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
/etc/security/limit.conf
> * soft nofile 60000
> * hard nofile 65535
> * hard nproc 65635
thanks!