VMware-Plugin - vSphereDB: Uncaught Error: Class 'SoapVar' not found

Good morning,

I have an issue with the icingaweb2 VMware-Module.

# systemctl status icinga-vspheredb.service

● icinga-vspheredb.service - Icinga vSphereDB Daemon
     Loaded: loaded (/etc/systemd/system/icinga-vspheredb.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2020-03-12 07:28:23 CET; 26min ago
       Docs: https://icinga.com/docs/icinga-vsphere/latest/
   Main PID: 2156724 (icingacli)
     Status: "DB has been cleaned up"
      Tasks: 1 (limit: 9490)
     Memory: 13.3M
     CGroup: /system.slice/icinga-vspheredb.service
             └─2156724 Icinga::vSphereDB::main: 3 active runners

Mar 12 07:28:23 98lipmoni3 systemd[1]: Started Icinga vSphereDB Daemon.
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Got invalid NetString data:
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/mod>
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Got invalid NetString data:
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/mod>
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Got invalid NetString data:
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/mod>
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Server for vCenterID=2 failed, will try again in 30 seconds
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Server for vCenterID=4 failed, will try again in 30 seconds
Mar 12 07:32:42 98lipmoni3 icingacli[2156724]: Server for vCenterID=6 failed, will try again in 30 seconds

# icingacli vspheredb daemon run --trace --debug

Got invalid NetString data: 
Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/modules/vspheredb/l[..] truncated 1120 bytes [..] a\Module\Vspheredb in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Api.php on line 410
Got invalid NetString data: 
Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/modules/vspheredb/l[..] truncated 1120 bytes [..] a\Module\Vspheredb in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Api.php on line 410
Got invalid NetString data: 
Fatal error: Uncaught Error: Class 'SoapVar' not found in /usr/share/icingaweb2/modules/vspheredb/l[..] truncated 1120 bytes [..] a\Module\Vspheredb in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Api.php on line 410
Server for vCenterID=2 failed, will try again in 30 seconds
Pid 2158637 stopped
Server for vCenterID=4 failed, will try again in 30 seconds
Pid 2158638 stopped
Server for vCenterID=6 failed, will try again in 30 seconds
Pid 2158639 stopped
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '\x8D\xA3\xF8\xE6I\x00s\xFE\xBA\x18K#\xCE\x92=\x1C' for key 'PRIMARY', query was: INSERT INTO vspheredb_daemon (instance_uuid, ts_last_refresh, process_info, pid, fqdn, username, php_version) VALUES (?, ?, ?, ?, ?, ?, ?)
Database connection has been closed

I changed the WatchdogSec=10 to WatchdogSec=360 in /etc/systemd/system/icinga-vspheredb.service - no success

Icingaweb2-Version 2.7.3
|Dependencies|
ipl : >=0.3.0
incubator : >=0.5.0
reactbundle : >=0.7.0|
|Permissions|vspheredb/admin : Allow to configure vCenter connections|

Did you fulfill all the requirements for this module? And did you update the issue you posted the link to?

Hi thomas,

all requirements existing.

My daemon status ist also ok:

daemon

Issue updated

Ok, let’s hope, you’ll get a response in due time. Maybe someone else comes up with a solution here, as well.

Hm, I don’t have a solution, but isn’t this a different problem than the one mentioned in the issue?

Can you try deleting the whole vsphere mysql database, start fresh and check if the error remains?