Pandora FMS Community

Internal Server Error 500

rkiesler · 13 dic 2021, 2:00 · 10 mensajes · 93 visitas

  1. Inicio del debate

    Since a couple of updates ago, instead of the Pandora interface, I often only get a straight line. Pressing reload in the browser gives me the regular Pandora user interface. Today, I checked that with the Chrome dev console, I get a "Internal Server Error 500" (see screenshot). I'm using Chrome 96.0.4664.93, my current Pandora Console version is v7.0NG.750, Build PC201111, MR 42 (not the newest, I know). Is this a known error? Has that been fixed already? Thanks!

  2. Hi rkiesler, Can you check that the apache server is working properly? Best regards, Víc.

  3. Sure. This is the entry from access.log: [14/Dec/2021:08:36:01 +0100] "GET /pandora_console/ HTTP/1.1" 500 8969 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36" And here are the latest entries from error.log (apparently, they are older than the access.log entry): [Tue Dec 14 06:25:02.554855 2021] [mpm_prefork:notice] [pid 773] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Tue Dec 14 06:25:02.675814 2021] [mpm_prefork:notice] [pid 773] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal operations [Tue Dec 14 06:25:02.677454 2021] [core:notice] [pid 773] AH00094: Command line: '/usr/sbin/apache2' QXcbConnection: Could not connect to display PhantomJS has crashed. Please read the bug reporting guide at and file a bug report. Aborted

  4. Hi, You could send us the log file of the console to see if it shows any error to indicate the cause of the problem. Can you check that the PHP configuration file has the correct memory? Best regards, Víc.

  5. In pandora_server.error, this line repeats about 2000 times: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/PandoraFMS/Core.pm line 5376. In pandora_server.log, I see this line repeated: 2021-12-16 14:17:02 pi-mon [V1] Server pi-mon is the current master. where can I find the console log?

  6. Help?

  7. Take a look in the /var/www/html/pandora_console or equivalent in your linux system. You should see the console log there (called pandora_console.log).

    Anyway, there is some error message coming from the adblocker there, have you tried with another browser?, just in case.

  8. Hi! Adblock is disabled for my pandora FMS console site. These are the last lines from the pandora console log: [15-Nov-2020 00:41:20 Europe/Vienna] PHP Notice: Undefined index: public_url_exclusions in /var/www/html/pandora_console/include/functions_ui.php on line 3890 [15-Nov-2020 00:41:20 Europe/Vienna] PHP Notice: Undefined index: force_public_url in /var/www/html/pandora_console/include/functions_ui.php on line 3896 [15-Nov-2020 00:41:48 Europe/Vienna] PHP Fatal error: Uncaught Error: Call to undefined function imagecreate() in /var/www/html/pandora_console/include/graphs/functions_gd.php:344 Stack trace: #0 /var/www/html/pandora_console/include/graphs/functions_gd.php(482): drawRating() #1 /var/www/html/pandora_console/include/graphs/fgraph.php(70): gd_progress_bar() #2 {main} thrown in /var/www/html/pandora_console/include/graphs/functions_gd.php on line 344 [15-Nov-2020 00:41:48 Europe/Vienna] PHP Fatal error: Uncaught Error: Call to undefined function imagecreate() in /var/www/html/pandora_console/include/graphs/functions_gd.php:344 Stack trace: #0 /var/www/html/pandora_console/include/graphs/functions_gd.php(482): drawRating() #1 /var/www/html/pandora_console/include/graphs/fgraph.php(70): gd_progress_bar() #2 {main} thrown in /var/www/html/pandora_console/include/graphs/functions_gd.php on line 344 [15-Nov-2020 00:41:48 Europe/Vienna] PHP Fatal error: Uncaught Error: Call to undefined function imagecreate() in /var/www/html/pandora_console/include/graphs/functions_gd.php:344

  9. This message is pretty old, I assume timedate in your system is ok, but last lines are from 2020:

    Nov-2020 00:41:48 Europe/Vienna] PHP Fatal error: Uncaught Error: Call to undefined function imagecreate()

    In that case, seems your server most like does not have GD (the built in PHP image processing library) enabled. It is a PHP module:

    apt-cache search php | grep gd or for redhat/centos/alma/rocky:yum search php | grep gd
    

    But I don't think thats the case if the console works some days ago and you don't alter the system, and the log dates are pretty old.

    Lets try another crazy idea: take a curl manual request from command line and lets see what is the output:

    curl http://yourconsole_ip/pandora_console
    

Entra en tu cuenta para publicar.