Solved

DSM service issue at startup since update

  • 19 January 2023
  • 2 replies
  • 30 views

Badge +1

Hello,

Since 21.10 to 22.10 upgrade, dsmd crashes at startup :

Last login: Thu Jan 19 09:31:17 2023 from pt-350.get.com
[root@srv-mon ~]# service dsmd status
Redirecting to /bin/systemctl status dsmd.service
● dsmd.service - dsmd is the centreon-dsm daemon
Loaded: loaded (/usr/lib/systemd/system/dsmd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since jeu. 2023-01-19 09:32:58 CET; 42s ago
Process: 788 ExecStart=/usr/share/centreon/bin/dsmd.pl $OPTIONS (code=exited, status=255)
Main PID: 788 (code=exited, status=255)

janv. 19 09:32:58 srv-mon.get.com systemd[1]: Started dsmd is the centreon-dsm daemon.
janv. 19 09:32:58 srv-mon.get.com dsmd.pl[788]: Can't call method "fetchrow" on an undefined value at /usr/share/centreon/bin/dsmd.pl line 565.
janv. 19 09:32:58 srv-mon.get.com systemd[1]: dsmd.service: main process exited, code=exited, status=255/n/a
janv. 19 09:32:58 srv-mon.get.com systemd[1]: Unit dsmd.service entered failed state.
janv. 19 09:32:58 srv-mon.get.com systemd[1]: dsmd.service failed.

Error is : janv. 19 09:32:58 srv-mon.get.com dsmd.pl[788]: Can't call method "fetchrow" on an undefined value at /usr/share/centreon/bin/dsmd.pl line 565.

 

When i restart service it is ok. but each reboot same issue occurs.

Can you help me?

Thanks.

Regards.

icon

Best answer by waaalex 23 January 2023, 11:16

View original

2 replies

Badge +1

Some precision : 
 


2023-01-19 05:24:16 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:548)
2023-01-19 05:24:16 - ERROR - MySQL error : cannot connect to database centreon_storage: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:559)
2023-01-19 05:24:16 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::common::db:/usr/share/perl5/vendor_perl/centreon/common/db.pm:268)
2023-01-19 05:24:16 - ERROR - Can't call method "fetchrow" on an undefined value at /usr/share/centreon/bin/dsmd.pl line 565.

2023-01-19 05:25:38 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:548)
2023-01-19 05:25:38 - ERROR - MySQL error : cannot connect to database centreon_storage: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:559)
2023-01-19 05:25:38 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::common::db:/usr/share/perl5/vendor_perl/centreon/common/db.pm:268)
2023-01-19 05:25:38 - ERROR - Can't call method "fetchrow" on an undefined value at /usr/share/centreon/bin/dsmd.pl line 565.

2023-01-19 05:44:53 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:548)
2023-01-19 05:44:53 - ERROR - MySQL error : cannot connect to database centreon_storage: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::script::dsmd:/usr/share/centreon/bin/dsmd.pl:559)
2023-01-19 05:44:53 - ERROR - MySQL error : cannot connect to database centreon: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (caller: centreon::common::db:/usr/share/perl5/vendor_perl/centreon/common/db.pm:268)
2023-01-19 05:44:53 - ERROR - Can't call method "fetchrow" on an undefined value at /usr/share/centreon/bin/dsmd.pl line 565.

Mariadb is start without errors.

Badge +1

made a cron :

@reboot sleep 300 && /bin/systemctl restart dsmd.service

 

Reply