perfsonar / toolkit

perfSONAR Toolkit distribution environment scripts and GUI
Apache License 2.0
30 stars 5 forks source link

lsregistrationdaemon fails to start due to config file missing #447

Closed szymontrocha closed 8 months ago

szymontrocha commented 8 months ago

Applies to Toolkit system upgraded from 5.0.4 to 5.0.5. It worked in 5.0.4 Noticed in Ubuntu20

# systemctl start lsregistrationdaemon
Failed to start lsregistrationdaemon.service: Unit lsregistrationdaemon.service not found.
root@pssmall:/var/log/perfsonar# systemctl start perfsonar-lsregistrationdaemon
Job for perfsonar-lsregistrationdaemon.service failed because the control process exited with error code.
See "systemctl status perfsonar-lsregistrationdaemon.service" and "journalctl -xe" for details.
# systemctl status perfsonar-lsregistrationdaemon
● perfsonar-lsregistrationdaemon.service - perfSONAR Lookup Service Registration Daemon
     Loaded: loaded (/lib/systemd/system/perfsonar-lsregistrationdaemon.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-10-10 09:46:29 UTC; 8s ago
    Process: 700770 ExecStart=/usr/lib/perfsonar/bin/lsregistrationdaemon.pl --config=/etc/perfsonar/lsregistrationdaemon.conf --logger=/etc/perfsonar/lsregistrationdaemon-logger.conf >

Oct 10 09:46:28 pssmall systemd[1]: Starting perfSONAR Lookup Service Registration Daemon...
Oct 10 09:46:29 pssmall lsregistrationdaemon.pl[700770]: Config::General The file "/etc/perfsonar/lsregistrationdaemon.conf" does not exist within ConfigPath: /etc/perfsonar! at /usr/l>
Oct 10 09:46:29 pssmall systemd[1]: perfsonar-lsregistrationdaemon.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Oct 10 09:46:29 pssmall systemd[1]: perfsonar-lsregistrationdaemon.service: Failed with result 'exit-code'.
Oct 10 09:46:29 pssmall systemd[1]: Failed to start perfSONAR Lookup Service Registration Daemon.
#

I performed upgrade from 5.0.3 and it seems it throws error and leaves the system in the middle of the process. pre-upgrade:

# ls -la /etc/perfsonar/
total 28
drwxr-xr-x   4 root root 4096 Jul 12 16:30 .
drwxr-xr-x 115 root root 4096 Oct 10 06:06 ..
-rw-r--r--   1 root root 4766 Jun 16 16:44 lsregistrationdaemon.conf
-rw-r--r--   1 root root 1257 Jun 16 16:44 lsregistrationdaemon-logger.conf
drwxr-xr-x   5 root root 4096 Jul 12 16:30 psconfig
drwxr-xr-x   3 root root 4096 Jul 13 07:30 toolkit
#

during upgrade:

Obsolete conffile /etc/perfsonar/lsregistrationdaemon.conf has been modified by you.
Saving as /etc/perfsonar/lsregistrationdaemon.conf.dpkg-bak ...
Job for perfsonar-lsregistrationdaemon.service failed because the control process exited with error code.
See "systemctl status perfsonar-lsregistrationdaemon.service" and "journalctl -xe" for details.
invoke-rc.d: initscript perfsonar-lsregistrationdaemon, action "restart" failed.
● perfsonar-lsregistrationdaemon.service - perfSONAR Lookup Service Registration Daemon
     Loaded: loaded (/lib/systemd/system/perfsonar-lsregistrationdaemon.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-10-10 10:02:51 UTC; 10ms ago
    Process: 1915632 ExecStart=/usr/lib/perfsonar/bin/lsregistrationdaemon.pl --config=/etc/perfsonar/lsregistrationdaemon.conf --logger=/etc/perfsonar/lsregistrationdaemon-logger.conf --user=perfsonar --group=perfsonar (code=exited, status=2)

Oct 10 10:02:50 perfsonar-sonda.rediris.es systemd[1]: perfsonar-lsregistrationdaemon.service: Succeeded.
Oct 10 10:02:50 perfsonar-sonda.rediris.es systemd[1]: Stopped perfSONAR Lookup Service Registration Daemon.
Oct 10 10:02:50 perfsonar-sonda.rediris.es systemd[1]: Starting perfSONAR Lookup Service Registration Daemon...
Oct 10 10:02:51 perfsonar-sonda.rediris.es lsregistrationdaemon.pl[1915632]: Config::General The file "/etc/perfsonar/lsregistrationdaemon.conf" does not exist within ConfigPath: /etc/perfsonar! at /usr/lib/perfsonar/bin/lsregistrationdaemon.pl line 66.
Oct 10 10:02:51 perfsonar-sonda.rediris.es systemd[1]: perfsonar-lsregistrationdaemon.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Oct 10 10:02:51 perfsonar-sonda.rediris.es systemd[1]: perfsonar-lsregistrationdaemon.service: Failed with result 'exit-code'.
Oct 10 10:02:51 perfsonar-sonda.rediris.es systemd[1]: Failed to start perfSONAR Lookup Service Registration Daemon.

post-upgrade:

# ls -la /etc/perfsonar/
total 28
drwxr-xr-x   4 root root 4096 Oct 10 10:02 .
drwxr-xr-x 115 root root 4096 Oct 10 10:02 ..
-rw-r--r--   1 root root 4766 Jun 16 16:44 lsregistrationdaemon.conf.dpkg-bak
-rw-r--r--   1 root root 1257 Jun 16 16:44 lsregistrationdaemon-logger.conf
drwxr-xr-x   5 root root 4096 Oct 10 10:02 psconfig
drwxr-xr-x   3 root root 4096 Jul 13 07:30 toolkit
#
Rezi1999 commented 8 months ago

I noticed it today, got same issue on Ubuntu 20.04.

Rezi1999 commented 8 months ago

after i reinstalled the toolkit in 5.0.5-1 version, that problem fixed the lsregistration service is up and running

image