Hello,
Using official containers zabbix/zabbix-server-mysql:centos-5.2-latest and zabbix/zabbix-web-nginx-mysql:centos-5.2-latest. Updated from 5.0.x to latest 5.2 as of today (2020-11-10).
Login fails with error "You are not logged in". This happens with correct user/pass combination, different error message with wrong credentials.
Tested with Chrome and Firefox and also on Incognito / Private window mode. Tested with serveral user accounts.
Web container log shows error:
What is wrong and how to fix?
Using official containers zabbix/zabbix-server-mysql:centos-5.2-latest and zabbix/zabbix-web-nginx-mysql:centos-5.2-latest. Updated from 5.0.x to latest 5.2 as of today (2020-11-10).
Login fails with error "You are not logged in". This happens with correct user/pass combination, different error message with wrong credentials.
Tested with Chrome and Firefox and also on Incognito / Private window mode. Tested with serveral user accounts.
Web container log shows error:
Code:
2020/11/10 05:57:44 [error] 17#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: strrpos() expects parameter 1 to be string, null given in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php:72
Stack trace:
#0 /usr/share/zabbix/include/classes/helpers/CCookieHelper.php(72): strrpos(NULL, '/')
#1 /usr/share/zabbix/include/classes/core/CCookieSession.php(126): CCookieHelper::set('zbx_session', 'eyJzZXNzaW9uaWQ...', 0)
#2 [internal function]: CCookieSession->write('3c7dcc52143e2b8...', 'eyJzZXNzaW9uaWQ...')
#3 /usr/share/zabbix/include/func.inc.php(1550): session_write_close()
#4 /usr/share/zabbix/include/classes/mvc/CController.php(379): access_deny(1)
#5 /usr/share/zabbix/include/classes/core/ZBase.php(540): CController->run()
#6 /usr/share/zabbix/include/classes/core/ZBase.php(207): ZBase->processRequest(Object(CRouter))
#7 /usr/share/zabbix/include/config.inc.php(25): ZBase->run('default')
#8 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')
#9 {main}
thrown in /usr/share/zabbix/include/classes/helpers/CC" while reading response header from upstream, client: server.ip.was.here, server: zabbix, request: "POST //zabbix.php?sid=f88a332b09459a18&action=widget.prob lemhosts.view HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "zabbixserver.example.com:8080", referrer: "http://zabbixserver.example.com/zabbix/zabbix.php?action=dashboard.view"
Comment