-
In Pandora FMS v3.1 user change language stalls web server process at logon
Pandora FMS v3.1 change language stalls web server on account logon.
(New user). Have installed pandora fms on my test machine (Ubuntu 10.04) with no problems using packages and have a working system with a dozen agents. Apache is 2.2.14 and PHP Version 5.3.2-1ubuntu4.5
I used the pandora_console to change the language from English (en) to Italian (it) in the user setting for admin from within the console and it hung i.e. browser waiting for the web server to respond. I rebooted my test server and tried to connect to pandora_console and it was still stalled.
Note that I only have one user i.e. the default “admin”.
Unix top shows apache2 process using about 100% of one core so it’s spinning its wheels on something. Eventually got an error message on the screen indicating…
Warning: unpack(): Type V: not enough input, need 4, have 0 in /var/www/pandora_console/include/gettext.php on line 89
Warning: unpack(): Type V: not enough input, need 4, have 0 in /var/www/pandora_console/include/gettext.php on line 89
Fatal error: Maximum execution time of 300 seconds exceeded in /var/www/pandora_console/include/streams.php on line 70To get my system back I used Mysql admin and went into the tusuario table and changed the language field to “en” (was “it”) and was then able to get the logon screen and login perfectly. With the mysql admin if I set the language back to “it” then the console immediately fails and if I put it back to “en” then it goes fine.
What I did find was that I added an extra user as language = “en” then when I change that then I was able to logon to the admin account but if I tried to logon to the newuser account then the web browser stalls. I also created a new user with “it” as the language (rather than changing it to “it” and that creates OK but stalls on logon.
So it is not a bad problem for me as I normally use English but it is a weird one as I would have thought people would have noticed this kind of error so it’s got to be something with handling of that gettext() on this up-to-date Ubuntu system.
regards,
Lincoln.