-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vspheredb daemon fails all the time after update to 1.1.0 #143
Comments
Can confirm:
Icinga Web 2 Version Module vspheredb |
Can confirm. Icinga Web 2 Version VMware vCenter®/ESXi™-Version: 6.7 |
Confirm here too, |
Is there any Fix for this? i just fresh installed a setup today. and the service not starting up. the "Add Esxi/vcenter > is this just working once the Service is up ? as once clicking "Add",.. there is nothing to add. Create a new vCenter/ESXi-Connection > underneath everything blank !!. Icinga Web 2 Version dependencies all installed. Errors: `PHP Fatal error: Uncaught Error: Call to undefined function Icinga\Module\Vspheredb\Daemon\posix_getpid() in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php:64 Fatal error: Uncaught Error: Call to undefined function Icinga\Module\Vspheredb\Daemon\posix_getpid() in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Daemon/Daemon.php:64 |
somehow i got the service working to start. but i'am not able to add vCenter. everything blank below "Create a new vCenter/ESXi-Connection |
@madmax01: please check the requirements section in our installation documentation |
i have same issue service always restart "Running DB cleanup (this could take some time)" but if i run "icingacli vspheredb daemon run --debug" it's working. |
i found a solution, just change WatchdogSec=10 to WatchdogSec=360 in /etc/systemd/system/icinga-vspheredb.service then systemctl daemon-reload and systemctl start icinga-vspheredb. |
can confirm the fix working here - thanks for that ! |
we had the same problem and we can also confirm the fix |
We can also confirm this as an working fix for the Issue. |
Hi, someone with the same problem?
|
after ive tested the option with the WatchDog Timer and this doesnt works for me... ive started the module with --debug and after about 1hour ive got an status update.. "DB has been cleaned up" and a while later ive got the next error... root@smon03:/# systemctl status icinga-vspheredb Mar 16 14:59:36 smon03 systemd[1]: Starting Icinga vSphereDB Daemon... does some one got a hint for me ? my enviroment: UPDATE: after about 2 hours... the modul now is working again fine (without doing anything) |
I have the same issue. I'm not inside the systemd workflow, but it seems like there is some kind of "pulse" the vspheredb daemon process must send to the systemd to avoid being killed. Cleaning up the daemon log table can take a very large amount of time, depending on both how often you restart the vspheredb service and how many virtual centers are monitored. Therefore, a trade-off is needed: how often you restart the vspheredb service vs how much log you want to keep. Besides, increasing the watchdog timeout to 600 seconds resolved for me. But I'm not that happy. |
This has been fixed, see #138 for related commits. Please upgrade to the current master (or the upcoming v1.2.0 release), apply schema migrations, restore the former watchdog setting and restart your daemon. |
Expected Behavior
The
icinga-vspheredb.service
systemd service should be running constantly.Current Behavior
The service starts up, terminates, starts up again, terminates, ... ad infinitum
Logs:
Shortly after starting up, the service reports
Running DB cleanup (this could take some time)
and attempts to run an MySQLOPTIMIZE TABLE
command on thevspheredb_daemonlog
table:If I run that statement manally (using the same database user), I get this output:
So the operation does not seem to have failed. Shortly after, the daemon process is terminated (
watchdog timeout (limit 10s)!
).Possible Solution
Steps to Reproduce (for bugs)
Your Environment
v1.7.2
2.7.3
CentOS x64 7.7.1908
httpd 2.4.6-90
,rh-php71-php 7.1.30-1
,rh-mysql80-mysql-server-8.0.17-1
The text was updated successfully, but these errors were encountered: