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

Config/Preferences not accessible without config.ini #4504

Closed
paladox opened this issue Aug 12, 2021 · 7 comments · Fixed by #4579
Closed

Config/Preferences not accessible without config.ini #4504

paladox opened this issue Aug 12, 2021 · 7 comments · Fixed by #4579
Assignees
Labels
area/configuration Affects the configuration bug Something isn't working
Milestone

Comments

@paladox
Copy link

paladox commented Aug 12, 2021

Describe the bug

I am getting an exception on /config/general: Trying to get property 'config_backend' of non-object

To Reproduce

  1. Visit /config/general

Expected behavior

No exception should happen and the configs should be shown.

Screenshots

Screenshot 2021-08-12 at 03 22 08

Your Environment

Include as many relevant details about the environment you experienced the problem in

  • Icinga Web 2 version and modules (System - About): 2.9.3
  • Web browser used: Safari
  • Icinga 2 version used (icinga2 --version): r2.12.5-1
  • PHP version used (php --version): 7.3.29-1~deb10u1
  • Server operating system and version: Debian 10

Additional context

Add any other context about the problem here.

@nilmerg
Copy link
Member

nilmerg commented Aug 12, 2021

Is this with a fresh installation?

@paladox
Copy link
Author

paladox commented Aug 12, 2021

Is this with a fresh installation?

Nope, this is with an existing install.

@nilmerg
Copy link
Member

nilmerg commented Aug 12, 2021

And you have no global section in /etc/icingaweb2/config.ini? (Adding [global] there will work-around this)

@paladox
Copy link
Author

paladox commented Aug 12, 2021

Oh, I have no /etc/icingaweb2/config.ini.

@paladox
Copy link
Author

paladox commented Aug 12, 2021

Though that fixed it.

@paladox
Copy link
Author

paladox commented Aug 12, 2021

Thanks!

@nilmerg
Copy link
Member

nilmerg commented Aug 12, 2021

Still, shouldn't shown an error, but again, no config.ini is weird as well. Didn't expect that's possible 😅

@nilmerg nilmerg added area/configuration Affects the configuration bug Something isn't working labels Aug 12, 2021
@nilmerg nilmerg self-assigned this Nov 2, 2021
@nilmerg nilmerg changed the title Trying to get property 'config_backend' of non-object Config/Preferences not accessible without config.ini Nov 2, 2021
@nilmerg nilmerg added this to the 2.9.4 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration Affects the configuration bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants