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

Modifying serviceset service throw Ramsey\Uuid\Uuid::fromBytes(): Argument #1 ($bytes) must be of type string, resource given #2934

Open
Meister1900 opened this issue Nov 20, 2024 · 0 comments

Comments

@Meister1900
Copy link

Meister1900 commented Nov 20, 2024

Expected Behavior

There should be no PHP exception when modifying a service that belongs to a serviceset.

Current Behavior

Ramsey\Uuid\Uuid::fromBytes(): Argument # 1 ($bytes) must be of type string, resource given, called in /usr/share/icingaweb2/modules/director/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php on line 77

#0 /usr/share/icingaweb2/modules/director/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php(77): Ramsey\Uuid\Uuid::fromBytes() #1 /usr/share/icingaweb2/modules/director/library/Director/DirectorObject/Lookup/ServiceFinder.php(49): Icinga\Module\Director\DirectorObject\Lookup\ServiceSetServiceInfo::find() #2 /usr/share/icingaweb2/modules/director/application/controllers/HostController.php(146): Icinga\Module\Director\DirectorObject\Lookup\ServiceFinder::find() #3 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\HostController->findserviceAction() #4 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch() #5 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch() #6 /usr/share/php/Icinga/Application/Web.php(294): Zend_Controller_Front->dispatch() #7 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #8 /usr/share/icingaweb2/public/index.php(4): require_once(String) #9 {main}

Steps to Reproduce (for bugs)

Use PostgreSQL DB resource. Create a service set with some checks. Assign it to a host template. Deploy.
Open one of the services in Icinga DB Web. Click "Actions" - "modify"

Your Environment

  • Director version (System - About): 1.11.2 (it was also in previous versions)
  • Icinga Web 2 version and modules (System - About): 2.12.2
  • Icinga 2 version (icinga2 --version): r2.14.3-1
  • Operating System and version: Ubuntu 24
  • Webserver, PHP versions: PHP 8.3.6
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

1 participant