Bug 290786 - net-mgmt/icingaweb2-module-icingadb: Class "Icinga\Module\Icingadb\Common\Model" not found
Summary: net-mgmt/icingaweb2-module-icingadb: Class "Icinga\Module\Icingadb\Common\Mod...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 11:12 UTC by O. Hartmann
Modified: 2025-11-12 12:32 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (flo)


Attachments
0001-net-mgmt-icingaweb2-module-icingadb-fix-pkg-plist.patch (961 bytes, patch)
2025-11-05 21:32 UTC, Paavo-Einari Kaipila
no flags Details | Diff
0001-net-mgmt-icingaweb2-module-icingadb-fix-pkg-plist.patch (1.41 KB, patch)
2025-11-05 21:43 UTC, Paavo-Einari Kaipila
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2025-11-04 11:12:12 UTC
Running net-mgmt/icingaweb2 on FreeBSD 14.3-RELENG (FreeBSD 14.3-RELEASE-p5 releng/14.3-n271450-382f54740ee4 amd64) after a recent update of packages login on the web page results in a dashboard-less screen, big red barr at the bottom stating:

Class "Icinga\Module\Icingadb\Common\Model" not found

No left hand menu entries available. switching php into "development" mode by linking php.ini with the appropriate php.ini-development file (as shipped) does not reveal any notices - they vanish immediately.

The log is also rather short and states exactly the same as seen on the screen:  

Class "Icinga\Module\Icingadb\Common\Model" not found

[...]
icinga-php-library-php83-0.17.1 net-mgmt/icinga-php-library
icinga-php-thirdparty-php83-0.13.1 net-mgmt/icinga-php-thirdparty
icingadb-1.4.0_5               net-mgmt/icingadb
icingaweb2-module-director-php83-1.11.5 net-mgmt/icingaweb2-module-director
icingaweb2-module-elasticsearch-php83-0.9.0_4 net-mgmt/icingaweb2-module-elasticsearch
icingaweb2-module-grafana-php83-3.1.1 net-mgmt/icingaweb2-module-grafana
icingaweb2-module-icingadb-php83-1.2.3,1 net-mgmt/icingaweb2-module-icingadb
icingaweb2-module-incubator-php83-0.22.0 net-mgmt/icingaweb2-module-incubator
icingaweb2-module-map-php83-2.0.0_4 net-mgmt/icingaweb2-module-map
icingaweb2-module-reactbundle-php83-0.9.0_1 net-mgmt/icingaweb2-module-reactbundle
icingaweb2-module-x509-php83-1.3.1 net-mgmt/icingaweb2-module-x509
icingaweb2-php83-2.12.5        net-mgmt/icingaweb2
Comment 1 Florian Smeets freebsd_committer freebsd_triage 2025-11-05 19:24:55 UTC
(In reply to O. Hartmann from comment #0)
I don't think that this is related to the icingaweb2 port. It hasn't been touched in a while. icingadb was updated recently and the error message references that. I guess it might be related to that upgrade.

@Dan do you have any insights?
Comment 2 Paavo-Einari Kaipila 2025-11-05 21:32:28 UTC
Created attachment 265195 [details]
0001-net-mgmt-icingaweb2-module-icingadb-fix-pkg-plist.patch

Does it work if you apply this?
Comment 3 Paavo-Einari Kaipila 2025-11-05 21:43:44 UTC
Created attachment 265196 [details]
0001-net-mgmt-icingaweb2-module-icingadb-fix-pkg-plist.patch

+ PORTREVISION
Comment 4 O. Hartmann 2025-11-06 06:09:07 UTC
Sorry, indeed it seems more related to icingadb. I took the liberty to change the subject accordingly. Thank you for taking care so fast. I have not the chance to test, the environment is within a "closed circle" and I get hand on it earliest tomorrow. I'll report back!
Kind regards,
oh
Comment 5 Dan Langille freebsd_committer freebsd_triage 2025-11-06 10:22:36 UTC
(In reply to Florian Smeets from comment #1)

Sorry, no, this is not familiar to me.
Comment 6 O. Hartmann 2025-11-07 10:23:45 UTC
Correction.
Comment 7 Paavo-Einari Kaipila 2025-11-07 18:35:03 UTC
That class was added in 1.2.3
https://github.com/Icinga/icingadb-web/compare/v1.2.2...v1.2.3

Dan, run testport for this without the patch.
Comment 8 O. Hartmann 2025-11-08 06:56:24 UTC
Applying the patch provided to the latest ports tree (git pull, yesterday, 2025-11-07) reverts Icingaweb2 into a working GUI again! Thanks for the quick fix.
Comment 9 Dan Langille freebsd_committer freebsd_triage 2025-11-08 13:13:33 UTC
(In reply to Paavo-Einari Kaipila from comment #7)

On this lovely Saturday morning, I am running a testport as I look out over the sun-drenched trees.
Comment 10 Dan Langille freebsd_committer freebsd_triage 2025-11-08 13:32:01 UTC
(In reply to Dan Langille from comment #9)

testport works:

https://services.unixathome.org/poudriere/build.html?mastername=143amd64-dvl-testing&build=2025-11-08_13h12m48s
Comment 11 Dan Langille freebsd_committer freebsd_triage 2025-11-08 13:33:31 UTC
(In reply to O. Hartmann from comment #8)

Are we all agreed this patch fixes the problem? It seems so, but I wanted to check.
Comment 12 Paavo-Einari Kaipila 2025-11-12 01:36:55 UTC
One person did a runtime test and this should obvious even without a runtime test. A recently added file is missing from the produced package and that file contains Icinga\Module\Icingadb\Common\Model class.

https://github.com/Icinga/icingadb-web/commit/5e982dad40ec379075307ab1693580138e675b18
Comment 13 Paavo-Einari Kaipila 2025-11-12 02:51:28 UTC
testport Q/A without the patch:

====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%WWWDIR%%/library/Icingadb/Common/Model.php
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1

testport Q/A with the patch:

====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
=>> Checking for staging violations... done
Comment 14 commit-hook freebsd_committer freebsd_triage 2025-11-12 12:24:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05ee108d2553199470739e68b7c5421768d2d4fd

commit 05ee108d2553199470739e68b7c5421768d2d4fd
Author:     Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2025-11-05 21:40:36 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2025-11-12 12:23:08 +0000

    net-mgmt/icingaweb2-module-icingadb: fix pkg-plist

    PR:     290786

 net-mgmt/icingaweb2-module-icingadb/Makefile  | 1 +
 net-mgmt/icingaweb2-module-icingadb/pkg-plist | 1 +
 2 files changed, 2 insertions(+)
Comment 15 Dan Langille freebsd_committer freebsd_triage 2025-11-12 12:32:47 UTC
This commit was sitting waiting to be pushed. Sorry it took so long.