Introduction
After the last influxdb update, influxdb is not starting up. I noticed that the location of some influxdb folders changes. I hope that the attached logs and folder comparison helps to find the issue
Updated packages
The following packages will be upgraded:
influxdb jellyfin-server jellyfin-web libssl-dev libssl1.1 openssl telegraf
Updated influxdb failed
Setting up influxdb (1.11.7-1) ...
Installing new version of config file /etc/influxdb/influxdb.conf ...
Job for influxdb.service failed because the control process exited with error code.
See "systemctl status influxdb.service" and "journalctl -xe" for details.
systemctl error output
root@jhnPi:~# systemctl status influxdb.service
influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/influxdb.service.d
ββdietpi-services_edit.conf
Active: failed (Result: exit-code) since Mon 2024-11-04 08:08:11 GMT; 1min 24s ago
Docs: https://docs.influxdata.com/influxdb/
Process: 6044 ExecStart=/usr/share/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=1/FAILURE)
CPU: 641ms
Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Nov 04 08:08:11 jhnPi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 8.
Nov 04 08:08:11 jhnPi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Start request repeated too quickly.
Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Nov 04 08:08:11 jhnPi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
journalctl error output
Nov 04 08:08:04 jhnPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Nov 04 08:08:04 jhnPi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Nov 04 08:08:04 jhnPi systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
Nov 04 08:08:04 jhnPi influxd-systemd-start.sh[5801]: /usr/share/influxdb/scripts/influxd-systemd-start.sh: line 54: /var/lib/influxdb/influxd.pid: No such file or directory
Nov 04 08:08:05 jhnPi influxd-systemd-start.sh[5838]: ts=2024-11-04T08:08:05.115770Z lvl=info msg="InfluxDB starting" log_id=0seZJYzl000 version=v1.11.7 branch=unknown commit=1096cc4798eea5dfa47a6d91844c04a8f8b8a0fc
Nov 04 08:08:05 jhnPi influxd-systemd-start.sh[5838]: ts=2024-11-04T08:08:05.115870Z lvl=info msg="Go runtime" log_id=0seZJYzl000 version=go1.22.7 maxprocs=4
Nov 04 08:08:05 jhnPi influxd-systemd-start.sh[5838]: ts=2024-11-04T08:08:05.115924Z lvl=info msg="configured logger" log_id=0seZJYzl001 format=auto level=info
Nov 04 08:08:05 jhnPi influxd-systemd-start.sh[5838]: run: create server: mkdir all: mkdir /var/lib/influxdb: permission denied
Nov 04 08:08:05 jhnPi systemd[1]: influxdb.service: Control process exited, code=exited, status=1/FAILURE
Nov 04 08:08:05 jhnPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Compare DietPi-Services output
Pre Update
ββββββββββββββββββββββββββββββββββββββββββββ€ DietPi-Services | File viewer βββββββββββββββββββββββββββββββββββββββββββββ
β β
β β influxdb.service - InfluxDB is an open-source, distributed, time series database β
β Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) β
β Drop-In: /etc/systemd/system/influxdb.service.d β
β ββdietpi-services_edit.conf β
β Active: active (running) since Mon 2024-11-04 08:28:13 GMT; 1min 5s ago β
β Docs: https://docs.influxdata.com/influxdb/ β
β Process: 587 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS) β
β Main PID: 590 (influxd) β
β Tasks: 14 (limit: 9293) β
β Memory: 5.0G β
β CPU: 58.085s β
β CGroup: /system.slice/influxdb.service β
β ββ590 /usr/bin/influxd -config /etc/influxdb/influxdb.conf β
β β
β Nov 04 08:28:53 jhnPi influxd-systemd-start.sh[590]: [httpd] 127.0.0.1 - root [04/Nov/2024:08:28:53 +0000] "POST β
β /write?db=jhnPi_base&p=%5BREDACTED%5D&precision=n&rp=&u=root HTTP/1.1 " 204 0 "-" "-" β
β d3695d6c-9a86-11ef-808e-e45f011dcf29 7902 β
Post Update
ββββββββββββββββββββββββββββββββββββββββββββ€ DietPi-Services | File viewer βββββββββββββββββββββββββββββββββββββββββββββ
β β
β β influxdb.service - InfluxDB is an open-source, distributed, time series database β
β Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) β
β Drop-In: /etc/systemd/system/influxdb.service.d β
β ββdietpi-services_edit.conf β
β Active: failed (Result: exit-code) since Mon 2024-11-04 08:08:11 GMT; 16min ago β
β Docs: https://docs.influxdata.com/influxdb/ β
β Process: 6044 ExecStart=/usr/share/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=1/FAILURE) β
β CPU: 641ms β
β β
β Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Failed with result 'exit-code'. β
β Nov 04 08:08:11 jhnPi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. β
β Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 8. β
β Nov 04 08:08:11 jhnPi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. β
β Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Start request repeated too quickly. β
β Nov 04 08:08:11 jhnPi systemd[1]: influxdb.service: Failed with result 'exit-code'. β
β Nov 04 08:08:11 jhnPi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
Compare /usr/share/
Pre Update β influxdb not included
root@jhnPi:/usr/share# ls
X11 binfmts dns glib-2.0 libdrm netfilter-persistent php7.4-opcache systemd
aclocal bug doc gnupg lighttpd pam php7.4-readline tabset
aclocal-1.16 ca-certificates doc-base grafana lintian pam-configs php7.4-sqlite3 terminfo
adduser cmake dpkg i18n locale perl php7.4-xml ucf
alsa common-licenses emacs info lua perl5 php7.4-zip xml
applications console-setup file initramfs-tools man php pixmaps zoneinfo
apport consolefonts fish iptables menu php7.4-common pkgconfig zsh
autoconf consoletrans fontconfig javascript metainfo php7.4-curl polkit-1
automake-1.16 dbus-1 fonts jellyfin misc php7.4-gd proftpd
awk debconf gcc jellyfin-ffmpeg munin php7.4-intl python3
base-files debianutils gdb keyrings mysql php7.4-json readline
base-passwd dhcpcd git-core libc-bin mysql-common php7.4-mbstring rsync
bash-completion dict gitweb libdbi-perl nano php7.4-mysql sensible-utils
Post Update β influxdb included
root@jhnPi:/usr/share# ls
X11 binfmts dns glib-2.0 libdbi-perl nano php7.4-mysql sensible-utils
aclocal bug doc gnupg libdrm netfilter-persistent php7.4-opcache systemd
aclocal-1.16 ca-certificates doc-base grafana lighttpd pam php7.4-readline tabset
adduser cmake dpkg i18n lintian pam-configs php7.4-sqlite3 terminfo
alsa common-licenses emacs *influxdb* locale perl php7.4-xml ucf
applications console-setup file info lua perl5 php7.4-zip xml
apport consolefonts fish initramfs-tools man php pixmaps zoneinfo
autoconf consoletrans fontconfig iptables menu php7.4-common pkgconfig zsh
automake-1.16 dbus-1 fonts javascript metainfo php7.4-curl polkit-1
awk debconf gcc jellyfin misc php7.4-gd proftpd
base-files debianutils gdb jellyfin-ffmpeg munin php7.4-intl python3
base-passwd dhcpcd git-core keyrings mysql php7.4-json readline
bash-completion dict gitweb libc-bin mysql-common php7.4-mbstring rsync
Compare /var/lib/
Pre Update β influxdb included
root@jhnPi:/var/lib# ls
apt dbus dietpi grafana misc pam private redis telegraf
bluetooth dhcp dpkg *influxdb* mosquitto php python sudo ucf
containerd dhcpcd git jellyfin mysql polkit-1 raspberrypi systemd unbound
Post Update β influxdb not included
root@jhnPi:/var/lib# ls
apt dbus dietpi grafana misc pam private redis telegraf
bluetooth dhcp dpkg jellyfin mosquitto php python sudo ucf
containerd dhcpcd git logrotate mysql polkit-1 raspberrypi systemd unbound