Ad Widget

Collapse

Problems with Scheduled Reports

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Kodali
    Junior Member
    • May 2023
    • 20

    #1

    Problems with Scheduled Reports

    I am having difficulty setting up reporting. I followed a few guides online, including the official Zabbix guide on Youtube to piece together the setup and overcome some errors. However I have now come across the following error when testing and I'm kind of stumped:

    Cannot fetch data: chrome failed to start: mkdir: cannot create directory ‘/var/lib/zabbix’: Permission denied touch: cannot touch '/var/lib/zabbix/.local/share/applications/mimeapps.list': No such file or directory chrome_crashpad_handler: --database is required Try 'chrome_crashpad_handler --help' for more information. [1834:1834:0905/071429.961458:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)

    I read that the zabbix user may not have permissions, so I gave sudoer rights, however this did not resolve it. Any idea what else I could try?

    Click image for larger version

Name:	image.png
Views:	2969
Size:	18.3 KB
ID:	490790
  • Answer selected by Sven Kodali at 09-09-2024, 13:46.
    carlo1976
    Junior Member
    • Sep 2024
    • 1

    Hello,
    I had the same problem and I solve it creating the directory /var/lib/zabbix/ and setting the correct owner and permission

    Code:
    mkdir -p /var/lib/zabbix/
    chown zabbix:zabbix /var/lib/zabbix/
    chmod 755 /var/lib/zabbix/

    Comment

    • carlo1976
      Junior Member
      • Sep 2024
      • 1

      #2
      Hello,
      I had the same problem and I solve it creating the directory /var/lib/zabbix/ and setting the correct owner and permission

      Code:
      mkdir -p /var/lib/zabbix/
      chown zabbix:zabbix /var/lib/zabbix/
      chmod 755 /var/lib/zabbix/

      Comment

      • Liyona
        Junior Member
        • Sep 2024
        • 2

        #3
        Hello,
        I had the same problem but creating the directory didn't change anything
        Code:
        ls -all /var/lib/ | grep zabbix
        drwxr-xr-x  3 zabbix      zabbix      4096 Sep  9 10:22 zabbix

        Comment


        • JKrumb
          JKrumb commented
          Editing a comment
          Hello Liyona, I had the same problem as you, but I found the solution. The issue comes from the /etc/passwd file. For example: As root, edit the /etc/passwd file and replace the line zabbix:x:109:116::/nonexistent:/bin/bash with zabbix:x:109:116::/home/zabbix:/bin/bash. You also need to make sure that your zabbix user has a home directory. If it doesn't, you need to create it: mkdir zabbix, chown -R zabbix:zabbix zabbix/, chmod 700 /home/zabbix . Once the changes are made, run service zabbix-web-service restart
      • Sven Kodali
        Junior Member
        • May 2023
        • 20

        #4
        Creating the directory and giving permissions solved the issue for me. Maybe I did something wrong but I needed to create the whole path including "...share/applications" for it to work.

        You should be able to test permissions by switching to user zabbix, and try to create a file in the same directory.

        Since I already have SSL incorporated into Zabbix, I had to deal with further problems...

        The error "SSL connect Error". I found the workaround here:


        Then I was getting a web service timeout, and the workaround is to downgrade to zabbix-web-service to 6.4.9


        Last edited by Sven Kodali; 09-09-2024, 14:31.

        Comment

        • Liyona
          Junior Member
          • Sep 2024
          • 2

          #5
          Yes, that's right. You have to do it on the front-end server

          Comment

          Working...