Foreman 3.15 React Error when loading page

Problem:
When I select ‘Puppet’ tab in Foreman 3.15 for a host, I’m getting an error message and the page does not load

Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    in p
    in div
    in dd
    in DescriptionListDescription
    in div
    in DescriptionListGroup
    in dl
    in DescriptionList
    in div
    in CardBody
    in div
    in CardExpandableContent
    in div
    in Card
    in div
    in GridItem
    in u
    in T
    in div
    in GridItem
    in div
    in Grid
    in div
    in i
    in t
    in t
    in i
    in p
    in component
    in d
    in k
    in t
    in t
    in t
    in t
    in u
    in Unknown
    in j
    in t
    in t
    in c
    in d
    in a
    in main
    in div
    in Page
    in div
    in FlexItem
    in div
    in Flex
    in c
    in v
    in t
    in o
    in a
    in k
    in s
    in div
    in A
    in IntlProvider
    in I18nProviderWrapper(A)
    in d
    in StoreProvider(I18nProviderWrapper(A))
    in DataProvider(StoreProvider(I18nProviderWrapper(A)))
    in Unknown

Expected outcome:
Page loads as
Foreman and Proxy versions:
foreman 3.15
Foreman and Proxy plugin versions:
foreman-3.15.0-1.el9.noarch
foreman-cli-3.15.0-1.el9.noarch
foreman-dynflow-sidekiq-3.15.0-1.el9.noarch
foreman-installer-3.15.0-1.el9.noarch
foreman-installer-katello-3.15.0-1.el9.noarch
foreman-libvirt-3.15.0-1.el9.noarch
foreman-obsolete-packages-1.10-1.el9.noarch
foreman-postgresql-3.15.0-1.el9.noarch
foreman-proxy-3.15.0-1.el9.noarch
foreman-redis-3.15.0-1.el9.noarch
foreman-release-3.15.0-1.el9.noarch
foreman-selinux-3.15.0-1.el9.noarch
foreman-service-3.15.0-1.el9.noarch
katello-4.17.0.rc1-1.el9.noarch
katello-certs-tools-2.10.0-1.el9.noarch
katello-client-bootstrap-1.7.9-2.el9.noarch
katello-common-4.17.0.rc1-1.el9.noarch
katello-repos-4.17.0.rc1-2.el9.noarch
katello-selinux-5.2.0-1.el9.noarch
Distribution and version:
AlmaLinux 9.6
Other relevant data:

I see the same thing after updating from 3.14. I rebooted the machine and still see the problem.

I am also getting these errors on fresh minimal installs of Foreman 3.15/Katello 4.17 and the nightly builds (using puppet 8). It also happens (same exact message) when clicking the “build” button on a host.

I did see some strange errors on the smart proxy getting the right certs, but I avoided that by doing minimal installs before enabling puppetserver / other proxy plugins… still the issue persists.

This was my bad.

Take a look at your /var/log/foreman/production.log. In my case there were some issues in provisioning templates variables being passed to snippets and some undefined variables in puppet. When in doubt its probably my fault…

Try posting what errors you see in production.log

It should still have better error handling that hat. Could you provide an exact reproducer?

I have the same. On page inspect I have also this error:

APIMiddleware.js:13 Error: Minified React error #130; visit ...ps://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Sc (react-dom.production.min.js:275:129)
    at react-dom.production.min.js:148:174
    at Ti (react-dom.production.min.js:173:118)
    at Li (react-dom.production.min.js:175:462)
    at _l (react-dom.production.min.js:263:406)
    at sc (react-dom.production.min.js:246:265)
    at lc (react-dom.production.min.js:246:194)
    at Jl (react-dom.production.min.js:239:172)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:19:467)

Install clean 3.15 devel will have this in it. Even after upgrade to 3.15 GA is still there.

Could you phrase it into steps? I assume you need to create a host in a certain state, then navigate to some page.

the error appear after first puppet agent report is received

Fix here: Fixes #37801 - Update to Patternfly 5 by MariaAga · Pull Request #426 · theforeman/foreman_puppet · GitHub

2 Likes