Icinga2 2.4.1 crashes at login on php 7.2

Bug #1783464 reported by Ben Marsh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
icingaweb2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I just upgraded a machine to Ubuntu Bionic. I was using icingaweb2 to monitor a server before the upgrade.

After the upgrade when I try to login to icinga2 I get an error:

Fatal error: Uncaught ErrorException: session_name(): Cannot change session name when session is active in /usr/share/php/Icinga/Web/Session/PhpSession.php:97 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'session_name():...', '/usr/share/php/...', 97, Array) #1 /usr/share/php/Icinga/Web/Session/PhpSession.php(97): session_name('Icingaweb2') #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(152): Icinga\Web\Session\PhpSession->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(544): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(489): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(512): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #7 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php( in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 332

Steps to reproduce

1. Navigate to http://servername/icingaweb2/authentication/login
2. Enter valid username and password
3. Click login button

The error message is displayed as above.

According to the machine these are the versions of the relevant packages:

ii icingaweb2 2.4.1-1 all simple and responsive web interfa
ii libapache2-mod-php7.2 7.2.7-0ubuntu0.18.04.2 amd64

I did some research and think I have found that Icingaweb2 was not compatible with php7.2 until June this year:

A bug ticket:

https://github.com/Icinga/icingaweb2/issues/3185

The fix:

https://github.com/Icinga/icingaweb2/pull/3186

Corresponding to their 2.6.0 milestone

Tags: bionic
Revision history for this message
Ben Marsh (blm-g) wrote :

I swear I did a search to see if this was already raised but failed to find anything. However, I just found an older ticket: https://bugs.launchpad.net/ubuntu/+source/icingaweb2/+bug/1769890. This can be closed as a dupe. Sorry.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Marking as duplicate of bug 1769890 based on the comment above.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected, as this automatically adds version numbers and other relevent information. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

tags: added: bionic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.