Skip to content
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

PHP Fatal error after adding first host. #254

Closed
Flol0 opened this issue May 21, 2021 · 2 comments
Closed

PHP Fatal error after adding first host. #254

Flol0 opened this issue May 21, 2021 · 2 comments

Comments

@Flol0
Copy link

Flol0 commented May 21, 2021

Expected Behavior

It should start syncing the vcenter

Current Behavior

when running: icingacli vspheredb daemon run --trace --debug
Running vCenter Sync for ID=1
Server for vCenterID= failed, will try again in 30 seconds
PHP Fatal error: Uncaught ErrorException: Undefined array key "args" in /usr/share/php/Icinga/Cli/Loader.php:359
Stack trace:
#0 /usr/share/php/Icinga/Cli/Loader.php(359): Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}()
#1 /usr/share/php/Icinga/Cli/Loader.php(268): Icinga\Cli\Loader->formatTrace()
#2 /usr/share/php/Icinga/Application/Cli.php(162): Icinga\Cli\Loader->dispatch()
#3 /usr/share/php/Icinga/Application/Cli.php(152): Icinga\Application\Cli->dispatchOnce()
#4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#5 {main}
thrown in /usr/share/php/Icinga/Cli/Loader.php on line 359

Fatal error: Uncaught ErrorException: Undefined array key "args" in /usr/share/php/Icinga/Cli/Loader.php:359
Stack trace:
#0 /usr/share/php/Icinga/Cli/Loader.php(359): Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}()
#1 /usr/share/php/Icinga/Cli/Loader.php(268): Icinga\Cli\Loader->formatTrace()
#2 /usr/share/php/Icinga/Application/Cli.php(162): Icinga\Cli\Loader->dispatch()
#3 /usr/share/php/Icinga/Application/Cli.php(152): Icinga\Application\Cli->dispatchOnce()
#4 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#5 {main}
thrown in /usr/share/php/Icinga/Cli/Loader.php on line 359
Stopping while there is no more loop

Possible Solution

No idea:(

Steps to Reproduce (for bugs)

Just installed current master enabled it with correct database.

Your Environment

  • VMware vCenter®/ESXi™-Version: 6.7.0
  • Version/GIT-Hash of this module: 1.1.0 commit 5af1a02
  • Icinga Web 2 version: 2.8.2
  • Operating System and version: Ubuntu 18.04 LTS
  • Webserver, PHP versions: Apache2 PHP 7.3.26-1+ubuntu18.04.1+deb.sury.org+1
@Thomas-Gelf
Copy link
Contributor

The error shown is an error hiding the real error 🤣 Are you sure you're running PHP 7.3 and not 7.4? v7.4 introduced zend.exception_ignore_args, and the Code in Icinga Web 2 seems not being ready for this. This needs to be fixed. As a workaround you can set it to 0, I guess it is 1 in your setup. Afterwards you should see the real error that occurred.

To get a better understanding of whether this is a site-specific issue (read: you intentionally configured this) or a package/vendor-related default it would be helpful if you could provide some more details about your setup:

  • is 7.3.26-1+ubuntu18.04.1+deb.sury.org+1 really the PHP version you're using on CLI, or is there a more recent one
  • has zend.exception_ignore_args already been in your vendor-provided INI-file, has it intentionally been added to your configuration - or isn't it there at all?

Thanks,
Thomas

@Flol0
Copy link
Author

Flol0 commented May 21, 2021

That was the mistake. On Cli PHP8.0 was used.

@Flol0 Flol0 closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants