• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Error launching monitoring using UI

Scheduled Pinned Locked Moved CE 2.7.0 Development Snapshots (Retired)
22 Posts 3 Posters 972 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y
    yuryk
    last edited by Jan 20, 2023, 4:17 PM

    I started getting this crash whenever I attempt to go to status->Monitoring. Webpage displays the same error as text... Not sure when exactly this started, but I'm on 2.7.0.a.20230120.0255 and can confirm that it is there...

    Crash report begins. Anonymous machine information:

    amd64
    14.0-CURRENT
    FreeBSD 14.0-CURRENT #0 devel-main-n255825-17d2b04a49e: Fri Jan 20 03:25:13 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/TycEh1bZ/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev

    Crash report details:

    PHP Errors:
    [20-Jan-2023 07:57:38 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_monitoring.php:287
    Stack trace:
    #0 {main}
    thrown in /usr/local/www/status_monitoring.php on line 287

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Jan 20, 2023, 7:05 PM

      What do you have set as the default graph shown there? I'm not seeing that here using System > Processor as the default graph.

      Or on any other graph I can select.

      Anything additional in the logs?

      Steve

      Y 1 Reply Last reply Jan 20, 2023, 9:02 PM Reply Quote 0
      • S stephenw10 moved this topic from General pfSense Questions on Jan 20, 2023, 7:06 PM
      • Y
        yuryk @stephenw10
        last edited by Jan 20, 2023, 9:02 PM

        @stephenw10

        This is not under graphs, as I mentioned it is under Status->monitoring

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jan 20, 2023, 9:56 PM

          Yes, Status > Monitoring shows graphs of the logged monitoring data.

          You can set which data/graph is shown there by default so if you've changed that it may be hitting something that I'm not.

          Steve

          1 Reply Last reply Reply Quote 0
          • Y
            yuryk
            last edited by Jan 21, 2023, 2:40 PM

            It is fresh install, so I doubt that it is anything I did to cause the error...

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Jan 21, 2023, 10:08 PM

              Hmm, I can't replicate that even on a clean install.

              You have an OpenVPN server created I assume? Is it assigned as an interface?

              Y 1 Reply Last reply Jan 22, 2023, 2:08 AM Reply Quote 1
              • Y
                yuryk @stephenw10
                last edited by Jan 22, 2023, 2:08 AM

                @stephenw10, thank you!

                This was it! I didn't have OpenVPN server setup - as I said, it was a new installation... In retrospect, it probably would be nice to get a message like "Dummy, go create an OpenVPN server first!", or something similar, instead of an error.

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by stephenw10 Jan 22, 2023, 3:25 PM Jan 22, 2023, 3:23 PM

                  It absolutely shouldn't error out like that without an OpenVPN entry. I tested it without one first and couldn't replicate it. There must have been something different in your config. What config had you made when it was showing it, just in general?

                  Since you didn't have an OpenVPN server defined the monitoring graphs shouldn't have even offered to show that. The default graph there isn't that either. This was happening just trying to access Status > Monitoring, not when selecting a data set to graph there right?

                  Y 1 Reply Last reply Jan 22, 2023, 3:31 PM Reply Quote 0
                  • Y
                    yuryk @stephenw10
                    last edited by Jan 22, 2023, 3:31 PM

                    @stephenw10, I don't think there is anything crazy in my systems other than maybe dual WAN providers.
                    A few packages have been installed:

                    5e4f0726-d4dc-4c1f-bba1-4a81ffd368d4-image.png

                    Some basic rules, a few VLANs and nothing else worth noting. Anything specifically you are looking for?

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Jan 22, 2023, 6:14 PM

                      The error you're hitting is an OpenVPN config condition so something related to that. Do you have an OpenVPN client configured perhaps?

                      Y 1 Reply Last reply Jan 23, 2023, 1:14 PM Reply Quote 0
                      • Y
                        yuryk @stephenw10
                        last edited by Jan 23, 2023, 1:14 PM

                        @stephenw10
                        no, I don't have anything, other then basic server, configured at this time. No clients and no custom overrides.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jan 23, 2023, 1:28 PM

                          Hmm. And, just to be clear, you are no longer seeing it after adding the server?
                          Are you able to test removing the server? I expect it to still work in that situation. Errors like that are almost always because nothing has ever been configured.

                          Y 1 Reply Last reply Jan 23, 2023, 5:44 PM Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by Jan 23, 2023, 3:26 PM

                            I see quite a few places in the code on that page where it could have issues with PHP 8.1, though I haven't managed to replicate any errors yet here either.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • J
                              jimp Rebel Alliance Developer Netgate
                              last edited by Jan 23, 2023, 4:27 PM

                              https://redmine.pfsense.org/issues/13892

                              I have an update pushed which should take care of any potential PHP 8.1 issues I could find in the code. It should start showing up in builds tomorrow.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 2
                              • Y
                                yuryk @stephenw10
                                last edited by Jan 23, 2023, 5:44 PM

                                @stephenw10
                                If I remove the instance of the server, I get my error back:

                                PHP ERROR: Type: 1, File: /usr/local/www/status_monitoring.php, Line: 287, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_monitoring.php:287
                                Stack trace:
                                #0 {main}
                                thrown @ 2023-01-23 12:43:33
                                
                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Jan 23, 2023, 6:08 PM

                                  Ah, interesting. Well now you can try the above commit via the System Patches package if you wish. or just wait for the next snapshot.

                                  Y 1 Reply Last reply Jan 23, 2023, 6:41 PM Reply Quote 0
                                  • Y
                                    yuryk @stephenw10
                                    last edited by Jan 23, 2023, 6:41 PM

                                    @stephenw10
                                    great, thank you very much @stephenw10 and @jimp!
                                    I will install a new snapshot in the morning and report the result.

                                    1 Reply Last reply Reply Quote 1
                                    • Y
                                      yuryk
                                      last edited by Jan 24, 2023, 12:35 PM

                                      @jimp and @stephenw10 - you are the best!

                                      The original Monitoring error issue is gone - tested with and without the OpenVPN server being defined.
                                      Now I'm faced with another issue - OpenVPN service fails to start. Tried nuking and re-creating the server as UDP only and as TCP only, made sure the firewall rules have been created. No dice.

                                      The only thing that makes mike installation different from "vanila" is dual gateway setup, but that should be completely transparent, no?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Jan 24, 2023, 12:45 PM

                                        Indeed, dual gateway shouldn't make any difference.

                                        Do you see errors in the system or openvpn logs?

                                        1 Reply Last reply Reply Quote 0
                                        • Y
                                          yuryk
                                          last edited by Jan 24, 2023, 1:08 PM

                                          Ok, so the issue seems to be an empty cert file:

                                          Jan 24 08:01:01 pfSense openvpn[61036]: WARNING: POTENTIALLY DANGEROUS OPTION --verify-client-cert none|optional may accept clients which do not present a certificate
                                          Jan 24 08:01:01 pfSense openvpn[61036]: OpenVPN 2.5.7 amd64-portbld-freebsd14.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Oct 26 2022
                                          Jan 24 08:01:01 pfSense openvpn[61036]: library versions: OpenSSL 1.1.1q-freebsd  5 Jul 2022, LZO 2.10
                                          Jan 24 08:01:01 pfSense openvpn[61036]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
                                          Jan 24 08:01:01 pfSense openvpn[61036]: OpenSSL: error:0909006C:PEM routines:get_name:no start line
                                          Jan 24 08:01:01 pfSense openvpn[61036]: OpenSSL: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
                                          Jan 24 08:01:01 pfSense openvpn[61036]: Cannot load certificate file /var/etc/openvpn/server1/cert
                                          Jan 24 08:01:01 pfSense openvpn[61036]: Exiting due to fatal error
                                          

                                          Any idea how to force the cert to be regenerated?

                                          1 Reply Last reply Reply Quote 0
                                          1 out of 22
                                          • First post
                                            1/22
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received