Ad Widget

Collapse

Users unable to login to Zabbix - You must login to view this page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zhazell
    Junior Member
    • Apr 2022
    • 17

    #1

    Users unable to login to Zabbix - You must login to view this page

    After typing in credentials, you get this error. Apache logs show the following? Any guidance would be great. Zabbix 6.0.12
    Click image for larger version  Name:	zabbix.png Views:	12 Size:	36.2 KB ID:	455786
    PHP log shows
    Code:
    [Fri Dec 09 01:06:16.750556 2022] [php7:notice] [pid 331396] [client 10.128.0.2:18630] PHP Notice: Undefined index: file in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
    [Fri Dec 09 01:06:16.750595 2022] [php7:notice] [pid 331396] [client 10.128.0.2:18630] PHP Notice: Undefined index: line in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
    [Fri Dec 09 01:06:16.750611 2022] [php7:warn] [pid 331396] [client 10.128.0.2:18630] PHP Warning: Cannot modify header information - headers already sent in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php on line 59, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
    [Fri Dec 09 01:06:16.750629 2022] [php7:warn] [pid 331396] [client 10.128.0.2:18630] PHP Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions) in Unknown on line 0, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view%E2%80%8B"]https://zabbix.url/index.php?request...hboard.view​[/URL]
    Last edited by zhazell; 09-12-2022, 17:17.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Check the permissions of the directory /var/lib/php/sessions. Is it readable and writable by the user running PHP?

    Comment

    • zhazell
      Junior Member
      • Apr 2022
      • 17

      #3
      Originally posted by Atsushi
      Check the permissions of the directory /var/lib/php/sessions. Is it readable and writable by the user running PHP?
      I checked them but they don't seem out of whack. However no files are in this directory. I even changed to 777 temporarily to test and still get the same thing.

      Comment

      • zhazell
        Junior Member
        • Apr 2022
        • 17

        #4
        I tried changing the session.save_path to /tmp in /etc/php/7.4/apache2/php.ini and still receive error.

        Code:
        [Fri Dec 09 15:27:35.835147 2022] [php7:notice] [pid 130974] [client 10.128.0.2:8458] PHP Notice: Undefined index: file in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
        [Fri Dec 09 15:27:35.835175 2022] [php7:notice] [pid 130974] [client 10.128.0.2:8458] PHP Notice: Undefined index: line in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
        [Fri Dec 09 15:27:35.835188 2022] [php7:warn] [pid 130974] [client 10.128.0.2:8458] PHP Warning: Cannot modify header information - headers already sent in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php on line 59, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view"]https://zabbix.url/index.php?request...dashboard.view[/URL]
        [Fri Dec 09 15:27:35.835205 2022] [php7:warn] [pid 130974] [client 10.128.0.2:8458] PHP Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: /tmp) in Unknown on line 0, referer: [URL="https://zabbix.url/index.php?request=zabbix.php%3Faction%3Ddashboard.view%E2%80%8B"]https://zabbix.url/index.php?request...hboard.view​[/URL]

        Comment

        Working...