Ad Widget

Collapse

[Problem] New Zabbix Schedule PDF Report... Empty 1kb size PDF.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eleeaz
    Junior Member
    • Jan 2021
    • 2

    #1

    [Problem] New Zabbix Schedule PDF Report... Empty 1kb size PDF.


    Hi,
    I recently upgraded Zabbix 5.2 to 5.4 and set zabbix_web_service on the same server, activated the GUI, and also installed Google Chrome.
    I followed every step of the documentation, but the PDFs come empty with a size of 1 kb.

    Click image for larger version

Name:	Captura.PNG
Views:	5134
Size:	6.1 KB
ID:	425301

    Not much information in the zabbix_web_service log,


    Code:
    [user@server~]$ tail /var/log/zabbix/zabbix_web_service.log
    2021/05/22 00:00:00.916646 received report request from [::1]:43816
    2021/05/22 00:00:03.914754 writing response for report request from [::1]:43816
    2021/05/22 12:00:00.240944 received report request from [::1]:51976
    2021/05/22 12:00:02.557939 writing response for report request from [::1]:51976
    2021/05/23 00:00:01.030789 received report request from [::1]:50508
    2021/05/23 00:00:04.036560 writing response for report request from [::1]:50508

    Code:
    [usert@server ~]$ zabbix_web_service -V
    zabbix_web_service (Zabbix) 5.4.0
    Revision 5059e20a75 14 May 2021, compilation time: May 14 2021 14:50:05

    has anyone tried it? Thanks in advance.
  • lugaid
    Junior Member
    • May 2021
    • 1

    #2
    Same problem here anyone had same issue????

    Comment

    • adminfrd
      Junior Member
      • Aug 2005
      • 4

      #3
      Originally posted by lugaid
      Same problem here anyone had same issue????
      Hi Guys, I am same issue but with File not Found

      Click image for larger version

Name:	repofilenotfound.jpg
Views:	4978
Size:	20.6 KB
ID:	426002

      Comment

      • Sebastian
        Member
        • Jul 2020
        • 33

        #4
        At my installation using google-chrome-stable package caused generating white empty PDF reports. Switching to chromium fixed issue.


        Described setup here:
        Last edited by Sebastian; 09-06-2021, 12:39.

        Comment

        • rcardoza182
          Junior Member
          • Jun 2021
          • 2

          #5
          i tried with chrome and with chromium and i have the same empty pdf....any solutions?

          Comment

          • rcardoza182
            Junior Member
            • Jun 2021
            • 2

            #6
            Originally posted by eleeaz
            Hi,
            I recently upgraded Zabbix 5.2 to 5.4 and set zabbix_web_service on the same server, activated the GUI, and also installed Google Chrome.
            I followed every step of the documentation, but the PDFs come empty with a size of 1 kb.

            Click image for larger version

Name:	Captura.PNG
Views:	5134
Size:	6.1 KB
ID:	425301

            Not much information in the zabbix_web_service log,


            Code:
            [user@server~]$ tail /var/log/zabbix/zabbix_web_service.log
            2021/05/22 00:00:00.916646 received report request from [::1]:43816
            2021/05/22 00:00:03.914754 writing response for report request from [::1]:43816
            2021/05/22 12:00:00.240944 received report request from [::1]:51976
            2021/05/22 12:00:02.557939 writing response for report request from [::1]:51976
            2021/05/23 00:00:01.030789 received report request from [::1]:50508
            2021/05/23 00:00:04.036560 writing response for report request from [::1]:50508

            Code:
            [usert@server ~]$ zabbix_web_service -V
            zabbix_web_service (Zabbix) 5.4.0
            Revision 5059e20a75 14 May 2021, compilation time: May 14 2021 14:50:05

            has anyone tried it? Thanks in advance.

            what i've donde is to put in http in the conf file and in the gui URL and it worked

            Comment

            • cvalean
              Junior Member
              • Jul 2021
              • 2

              #7
              I added what you've done to fix this here: https://www.zabbix.com/forum/zabbix-...154#post428154

              Comment

              • Rudlafik
                Senior Member
                • Nov 2018
                • 144

                #8
                Our resolution is:

                1. Administration -> General -> Other: Fronend URL: https://Yours.DNS.adr

                2.Zabbix server config: WebServiceURL=http://Yours.DNS.adr:10053/report

                3.Web service config:
                TLSAccept=unencrypted
                IgnoreURLCertErrors=1

                Its work for us :-) Not blank PDF

                Comment


                • hamimi
                  hamimi commented
                  Editing a comment
                  This worked for me! , thanks so much

                • tictactux
                  tictactux commented
                  Editing a comment
                  It has worked for me with one difference;

                  Frontend URL: https://ServerFQDN/zabbix/

                  Now everything works fine.
                  BR
              • Sebastian
                Member
                • Jul 2020
                • 33

                #9
                My resolution was to upgrade database to postgresql 13 - latest version.

                Old Postgresql verisions (11, 12) caused strange issues. ( empty PDF, timeouts )

                Comment

                • hamimi
                  Junior Member
                  • Jun 2021
                  • 5

                  #10
                  I have the same problem, when it runs via the schedule its 1k (blank) but if i manually run it , i get the reports in full
                  zabbix_web_service -V
                  zabbix_web_service (Zabbix) 5.4.12
                  Revision 9bd5a418b8 4 April 2022, compilation time: Apr 4 2022 12:29:32
                  Izabbix_web_service -V
                  zabbix_web_service (Zabbix) 5.4.12
                  Revision 9bd5a418b8 4 April 2022, compilation time: Apr 4 2022 12:29:32m Using Ubuntu 18.04
                  Zabbix 6.0

                  Comment

                  • hamimi
                    Junior Member
                    • Jun 2021
                    • 5

                    #11
                    Appologies, im using :
                    mysql -v
                    Welcome to the MySQL monitor. Commands end with ; or \g.
                    Your MySQL connection id is 187704
                    Server version: 5.7.37-0ubuntu0.18.04.1 (Ubuntu)

                    Comment

                    • whitekitten
                      Junior Member
                      • Jul 2016
                      • 17

                      #12
                      Having issues generating the reports.

                      Zabbix 6.0
                      Ubuntu 22.0.4
                      Installed Chrome but was getting empty reports.
                      Installed Chromium and not getting below errors.
                      • Cannot fetch data: chrome failed to start:
                      • cmd_run.go:1046: WARNING: cannot create user data directory: cannot create snap home dir: mkdir /var/lib/zabbix: permission denied
                      • /system.slice/zabbix-web-service.service is not a snap cgroup

                      Any pointers are appreciated.
                      Thanks
                      Ken

                      Comment

                      • aalmasan
                        Junior Member
                        • Mar 2023
                        • 7

                        #13
                        Having the same issue, I replicated it in 4 different installations 6.2, 6.2.7, 6.4.0, as appliance and AWS image with preinstalled zabbix.
                        I am missing a step, empty PDF with file not found.
                        Tried chrome and chromium no go. no errors.
                        Witekitten, do you know where to find chrome logs? not an expert myself, I am using winscp to visualise logs
                        I am also looking in the forum like mad



                        Comment

                        • tom_minerd
                          Junior Member
                          • Jun 2022
                          • 6

                          #14
                          I have the same issue with v6.4 but it was working in 6.2.7.

                          I tried the solution provided by Rudlafik​ but still having issues. I will continue to work on this and let everyone know if I get it working.

                          Comment

                          • aalmasan
                            Junior Member
                            • Mar 2023
                            • 7

                            #15
                            Good news
                            I just managed to find a workaround that works. I was using Nginx in all my installations.

                            I swapped to Apache instead and it worked. It is possible that works with Nginx as well but not sure what exactly configuration is needed and where.
                            When switching to apache the front end server gui login changes from http://192.168.2.101/ to http://192.168.2.101/zabbix/​
                            Last edited by aalmasan; 11-03-2023, 17:09.

                            Comment

                            Working...