Ad Widget

Collapse

You are not logged in, You must login to view this page.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlDavis
    Junior Member
    • Jun 2020
    • 1

    #1

    You are not logged in, You must login to view this page.

    Hello,

    Please forgive me if my question has been asnwered before. I am running zabbix 4.2.8 on Ubuntu 18.04. I had to perform a reboot the other day and now after the reboot the URL to my server is not working. When I log in with a valid user name and password I am sent to the screen showing:

    You are not logged in, You must login to view this page.
    • You must login to view this page.
    • If you think this message is wrong, please consult your administrators about getting the necessary permissions.


    If I login using the IP address it works.


    Has anyone seen this behavior?
  • capsx
    Junior Member
    • Jun 2020
    • 2

    #2
    Hello!

    Yes - the same issue here.
    In one browser saved session is ok.
    In other browser can't log in even when changed password from first browser.
    Zabbix 5.0.1
    Last edited by capsx; 16-06-2020, 17:58. Reason: added zabbix version number

    Comment

    • martinsdzerve
      Junior Member
      • Jun 2020
      • 1

      #3
      Hello,

      Just clear Zabbix server Cookies in your internet Browser and all will be ok!

      Comment

      • CaPaCuL
        Junior Member
        • Oct 2023
        • 3

        #4
        I have the same problem. I tried versions 6.4 and 7.0. But clearing cookies is not the solution.

        (My system is RHEL 9.2, apache(httpd)-2.4.53, mariadb-3:10.5.16, php-7.4.33)

        Comment

        • CaPaCuL
          Junior Member
          • Oct 2023
          • 3

          #5
          Originally posted by CaPaCuL
          I have the same problem. I tried versions 6.4 and 7.0. But clearing cookies is not the solution.

          (My system is RHEL 9.2, apache(httpd)-2.4.53, mariadb-3:10.5.16, php-7.4.33)
          Logs in /var/log/httpd/error_log are as follows:

          Code:
          [Sat Oct 21 18:01:00.041060 2023] [proxy_fcgi:error] [pid 3353:tid 3415] [client 192.168.1.1:50619] AH01071: Got error 'PHP message: PHP Warning:  Cannot modify header information - headers already sent in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php on line 59PHP message: PHP Warning:  Unknown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/session) in Unknown on line 0', referer: https://zbx.domain.tld/index.php?request=zabbix.php%3Faction%3Ddashboard.view

          Comment

          • zmm
            Junior Member
            • Mar 2022
            • 2

            #6
            Hey, did you checked if the user apache has access to /var/lib/php/session? Or any other user on which apache server is runnig?

            Comment

            • CaPaCuL
              Junior Member
              • Oct 2023
              • 3

              #7
              Originally posted by zmm
              Hey, did you checked if the user apache has access to /var/lib/php/session? Or any other user on which apache server is runnig?
              yes I checked, apache has access to /var/lib/php/session. Another user is not running Apache.

              I also added zabbix to the apache group and apache to the zabbix group:
              Code:
              cat /etc/group | grep apache
              Code:
              apache:x:48:user1,user2,zabbix,apache
              zabbix:x:968:zabbix,apache
              I restarted the services and then the server, but nothing changed, the problem continues.​

              Comment

              • Sunstone
                Junior Member
                • Dec 2023
                • 1

                #8
                Zabbix 6.4 + Nginx
                Had kinda the same issue. Users couldn't log in again, after entering creds they saw You didn't log in window. Anyway through admin account (old active session) those users seemed to be in system. Changing passwords didn't help

                The problem was in /etc/php.ini
                Admin changed these options
                Code:
                zlib.output_compression = On
                zlib.output_compression_level = 5
                Reverting to defaults fixed the issue
                Code:
                zlib.output_compression = Off
                zlib.output_compression_level = -1
                Last edited by Sunstone; 22-12-2023, 11:16.

                Comment

                Working...