Ad Widget

Collapse

Add "zlib.output_compression = Off" sanity check to /setup.php PHP checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vacri
    Junior Member
    • Nov 2023
    • 5

    #1

    Add "zlib.output_compression = Off" sanity check to /setup.php PHP checks

    Please add a check that zlib.output_compression is turned off in php in the /setup.php preconfig checks.

    I spent nearly half a day hunting this issue down, and there's a few incomplete/unanswered requests on the forum that sound similar to this issue. The problem manifested for me as being able to auth past the credentials box, but being met with an error screen saying I needed to log in. If I used invalid user creds I couldn't progress past the creds box, so I was apparently authing okay. Disabled zlib compression and boom, the site sprang into life.




    Ticket above says that there's commentary in the jsLoader file, but the resulting php error in the logs does not suggest that file at all. I have a canned php-fpm.conf file that enable zlib.output_compression for other sites, but I can turn it off. Problem is that there are no breadcrumbs to find this comment in the codebase. I only found the issue by process of elimination, individually turning features on and off


    The only error I was getting was as follows:

    2023/11/03 15:09:01 [error] 1400#1400: *47 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381; PHP message: PHP Warning: Undefined array key "line" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381; PHP message: PHP Warning: Cannot modify header information - headers already sent in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php on line 59; PHP message: PHP Warning: PHP Request Shutdown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions/, handler: write) in Unknown on line 0" while reading upstream, client: [redacted], server: zabbixtest.[redacted], request: "POST /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/zabbix.sock:", host: "zabbixtest.[redacted]", referrer: "http://zabbixtest.[redacted]/index.php?request=zabbix.php%3Faction%3Ddashboard. view"
    • remote mysql db
    • nginx + php-fpm
    • debian, using 6.4 from the zabbix repos
    • installed using the zabbix install page instructions
    • /sessions was writable, and everything else was also fine except locale (added in afterwards when I got 'missing local' error once the gui loaded)
    Thanks

    vacri
  • nikolas
    Junior Member
    • Dec 2023
    • 1

    #2
    Please add this check. I spent way to many hours debugging. In contrast to the previous writer, I had a local database, use zabbix 6.0 lts and had no other errors.

    Thanks in advance
    Nikolas

    Comment

    Working...