I’m always seeing this when im restarting my services:
What can i do to fix this service or even remove it ?
I don’t think i need it, since nothing i have requires it for it.
Thank you
I’m always seeing this when im restarting my services:
What can i do to fix this service or even remove it ?
I don’t think i need it, since nothing i have requires it for it.
Thank you
if possible try to avoid using screen prints if possible. It should be possible to copy all information from SSH terminal directly
if you don’t need InfluxDB, you can remove it using dietpi-software
. Same was as you have it installed.
Otherwise you would need to check logs
journalctl -u influxdb
I don’t have “influxdb” installed.
I guess this is some stuck service from before, when i was meddling with Grafana
“journalctl -u influxdb” returns this"
Feb 29 22:14:50 DietPi systemd[1]: Starting influxdb.service - InfluxDB is an open-source, distributed, time series database...
Feb 29 22:14:50 DietPi (start.sh)[804]: influxdb.service: Failed to determine user credentials: No such process
Feb 29 22:14:50 DietPi (start.sh)[804]: influxdb.service: Failed at step USER spawning /usr/lib/influxdb/scripts/influxd-systemd-start.sh: No such process
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Control process exited, code=exited, status=217/USER
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:50 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 1.
Feb 29 22:14:50 DietPi systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: Starting influxdb.service - InfluxDB is an open-source, distributed, time series database...
Feb 29 22:14:50 DietPi (start.sh)[831]: influxdb.service: Failed to determine user credentials: No such process
Feb 29 22:14:50 DietPi (start.sh)[831]: influxdb.service: Failed at step USER spawning /usr/lib/influxdb/scripts/influxd-systemd-start.sh: No such process
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Control process exited, code=exited, status=217/USER
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:50 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 2.
Feb 29 22:14:50 DietPi systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: Starting influxdb.service - InfluxDB is an open-source, distributed, time series database...
Feb 29 22:14:50 DietPi (start.sh)[834]: influxdb.service: Failed to determine user credentials: No such process
Feb 29 22:14:50 DietPi (start.sh)[834]: influxdb.service: Failed at step USER spawning /usr/lib/influxdb/scripts/influxd-systemd-start.sh: No such process
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Control process exited, code=exited, status=217/USER
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:50 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 3.
Feb 29 22:14:50 DietPi systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:50 DietPi systemd[1]: Starting influxdb.service - InfluxDB is an open-source, distributed, time series database...
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Control process exited, code=exited, status=217/USER
Feb 29 22:14:50 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:50 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 4.
Feb 29 22:14:51 DietPi systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:51 DietPi systemd[1]: Starting influxdb.service - InfluxDB is an open-source, distributed, time series database...
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Control process exited, code=exited, status=217/USER
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:51 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Feb 29 22:14:51 DietPi systemd[1]: Stopped influxdb.service - InfluxDB is an open-source, distributed, time series database.
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Start request repeated too quickly.
Feb 29 22:14:51 DietPi systemd[1]: influxdb.service: Failed with result 'exit-code'.
Feb 29 22:14:51 DietPi systemd[1]: Failed to start influxdb.service - InfluxDB is an open-source, distributed, time series database.
Looks like your InfluxDB installation is broken. Better to clean it if not needed
systemctl --no-reload unmask influxdb
systemctl --no-reload disable --now influxdb
userdel influxdb
G_AGP influxdb
rm -R /etc/apt/sources.list.d/influxdb.list
rm -R /etc/apt/trusted.gpg.d/dietpi-influxdb.gpg
rm -Rf /mnt/dietpi_userdata/influxdb /var/lib/influxdb /var/log/influxdb /etc/influxdb
This is what i got
root@DietPi:~# systemctl --no-reload unmask influxdb
root@DietPi:~# systemctl --no-reload disable --now influxdb
Removed "/etc/systemd/system/multi-user.target.wants/influxdb.service".
Removed "/etc/systemd/system/influxd.service".
root@DietPi:~# userdel influxdb
userdel: user 'influxdb' does not exist
root@DietPi:~# G_AGP influxdb
[ INFO ] APT purge influxdb, please wait...
[ INFO ] None of the packages are currently installed. Aborting...
[ OK ] APT purge influxdb
root@DietPi:~# rm -R /etc/apt/sources.list.d/influxdb.list
rm: cannot remove '/etc/apt/sources.list.d/influxdb.list': No such file or directory
root@DietPi:~# rm -R /etc/apt/trusted.gpg.d/dietpi-influxdb.gpg
rm: cannot remove '/etc/apt/trusted.gpg.d/dietpi-influxdb.gpg': No such file or directory
root@DietPi:~# rm -Rf /mnt/dietpi_userdata/influxdb /var/lib/influxdb /var/log/influxdb /etc/influxdb
The influxdb service is still there and broken tho
the service should be removed. Can you reboot?
I did, still there
┌───────────────────────┤ DietPi-Services ├──────────────────────────────────────────────────┐
│ Please select an option or program: │
│ │
│ ●─ Single Service Options ─────────────● │
│ nginx : enabled | included | Affinity 0-3 │
│ filebrowser : enabled | included | Affinity 0-3 │
│ influxdb : disabled | included | Affinity 0-3 │
does the service definition still exist?
systemctl cat influxd
It seems not
root@DietPi:~# systemctl cat influxd
No files found for influxd.service.
root@DietPi:~#
But its still there under dietpi-service, and i still see it when dietpi restarts my services
[ OK ] DietPi-Services | start : nginx
[ OK ] DietPi-Services | start : filebrowser
[FAILED] DietPi-Services | start : influxdb
[ ..] DietPi-Services | start : webmin
DietPi is just detecting the service config. Means something is still left on your system.
Can you try
rm -f /etc/systemd/system/influxd.service /lib/systemd/system/influxdb.service /etc/systemd/system/multi-user.target.wants/influxdb.service /lib/systemd/system/influxdb.service
systemctl daemon-reload
dietpi-services status
Wait, I think it’s finally dead
What a menace that one was.
Thank you kindly for your support and time spent.
Since it took several post/commands to resolve this, dont know which one to submit as the actual [Solution]
Maybe you can check that yourself (as mod) ?
Thank you
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.