Ad Widget

Collapse

zabbix web interface http error 500

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aria and jack
    Junior Member
    • Apr 2023
    • 1

    #1

    zabbix web interface http error 500

    zabbix web interface http error 500

    Today, 08:32
    hi,
    i have issue with my zabbix web interface .
    i have 2 server for zabbix verison 6.2:
    1. for the zabbix server (using apache2)
    2. for zabbix database.(using mysql)

    i changed my ip address for both servers.
    of course i give permission for the new ip zabbix server to mysql database.
    After the change I made sure I was able to enter zabbix web whit the new ip address
    and seeing that everything is fine in the logs i deleted the permissions of the old user@old ip addressee from mysql.
    and after that i cant login to the zabbix web with any user.
    i get http error 500

    i check my sql connection batwing zabbix server to zabbix database using the query: sudo musql -h (zabbix database ip) -u zabbix -p zabbix
    i see all my data (hosts, items, triger, users_group, users and all data of the tables)

    apache2 eror log:
    [php:warn] [pid 58449] [client 10.10.10.6:51442] PHP Warning: Undefined array key 0 in /usr/share/zabbix/include/classes/api/services/CUser.php on line 1842, referer: https://zabbix/index.php
    [Sun Apr 30 12:47:49.806527 2023] [php:error] [pid 58449] [client 10.10.10.6:51442] PHP Fatal error: Uncaught TypeError: CUser::getUserType(): Return value must be of type int, null returned in /usr/share/zabbix/include/classes/api/services/CUser.php:1842\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CUser.php(2065): CUser->getUserType()\n#1 /usr/share/zabbix/include/classes/api/services/CUser.php(1473): CUser->addExtraFields()\n#2 /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php(121): CUser->login()\n#3 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(97): CLocalApiClient->callMethod()\n#4 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(94): CFrontendApiWrapper->callClientMethod()\n#5 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(63): CApiWrapper->callMethod()\n#6 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(82): CFrontendApiWrapper->callMethod()\n#7 /usr/share/zabbix/include/classes/user/CWebUser.php(51): CApiWrapper->__call()\n#8 /usr/share/zabbix/index.php(68): CWebUser::login()\n#9

    how do i resolve the issue?​​
Working...