Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Internal Server Error 500

    Posted by rkiesler on diciembre 13, 2021 at 02:00

    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!

    Sancho replied 2 years, 11 months ago 3 Members · 9 Replies
  • 9 Replies
  • vic

    Administrator
    diciembre 13, 2021 at 11:15
    1542 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    Hi rkiesler,

    Can you check that the apache server is working properly?

    Best regards,
    Víc.

  • rkiesler

    Member
    diciembre 14, 2021 at 11:39
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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
    <http://phantomjs.org/bug-reporting.html> and file a bug report.
    Aborted

  • vic

    Administrator
    diciembre 16, 2021 at 12:58
    1542 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    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.

  • rkiesler

    Member
    diciembre 16, 2021 at 18:00
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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?

  • rkiesler

    Member
    enero 1, 2022 at 10:47
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Help?

  • Sancho

    Administrator
    enero 2, 2022 at 12:12
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • rkiesler

    Member
    enero 5, 2022 at 13:05
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • rkiesler

    Member
    enero 5, 2022 at 13:09
    159 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    In Firefox, I also get that line, it’s the same result.

    https://i.postimg.cc/gjqYvM19/firefox2.png

  • Sancho

    Administrator
    enero 5, 2022 at 13:39
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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