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

    LCDproc Looses Connection - Restarting service Fixes but goes down again shortly after

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 5 Posters 3.0k Views 4 Watching
    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.
    • E Offline
      elvisimprsntr @ngr2001
      last edited by elvisimprsntr

      @ngr2001

      I use the following port.

      USB COM port 1 (/dev/cuaUO)
      

      Screenshot 2025-01-28 at 2.17.26 PM.png

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        ngr2001 @elvisimprsntr
        last edited by

        @elvisimprsntr

        I have a hunch that maybe resetting the firewall states breaks the LCDproc connection. I've been bouncing that a lot lately for some rule testing, perhaps this was self inflected. I will continue to monitor. I think the port is really tied to your specific hardware setup, but if it dies again ill give that a go for sure.

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          elvisimprsntr @ngr2001
          last edited by elvisimprsntr

          @ngr2001

          it's the same physical port just a different kernel driver. From what I read tty is for dial-in devices and cua is for dial-out devices.

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            ngr2001 @elvisimprsntr
            last edited by

            @elvisimprsntr

            Well you learn something new each day.

            I flipped it, still works, ill leave it your way and see how it goes.

            thanks.

            1 Reply Last reply Reply Quote 0
            • jimpJ Offline
              jimp Rebel Alliance Developer Netgate
              last edited by

              Firewall states wouldn't affect LCDProc since it's not a TCP connection, it's local serial.

              You should definitely be using cuaU0 or a cuaU<n> port, though, not a TTY.

              I have LCDProc going on two systems, one with a crystalfontz display and another with an adafruit LCD+Backpack setup. Both work great and never lose connection.

              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!

              fireodoF 1 Reply Last reply Reply Quote 0
              • fireodoF Offline
                fireodo @jimp
                last edited by fireodo

                @jimp

                Hi,

                as far as I know the lcd driver (LCDd) is connected to the display via USB/Serial/Parallel but the lcdproc process is connected to the driver in this way:

                Bind=127.0.0.1
                Port=13666
                

                Extract from pfctl -ss:

                lo0 tcp 127.0.0.1:20639 -> 127.0.0.1:13666       ESTABLISHED:ESTABLISHED
                lo0 tcp 127.0.0.1:13666 <- 127.0.0.1:20639       ESTABLISHED:ESTABLISHED
                

                So there could be a possibility to loose connection when states get killed ... IMHO (If I'm wrong please correct)

                EDIT: I cleared all states and this made the lcdproc also to loose connection flooding the syslog. After restarting lcdproc all fine again.

                Regards,
                fireodo

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.8.1 CE
                Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                1 Reply Last reply Reply Quote 0
                • fireodoF fireodo referenced this topic
                • stephenw10S Online
                  stephenw10 Netgate Administrator
                  last edited by

                  Yup the php client doesn't seem to be honouring the error count correctly. It should just reconnect when the state is closed. Digging...

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    ngr2001 @stephenw10
                    last edited by

                    @stephenw10

                    Also,

                    LCDProc seems to go bananas when my modem loses internet. If there is a provider outage and there is no WAN connection the display on LCDproc keeps rebooting itself in a loop. I typically have to reboot modem 1st and let that get all lit up. Then I have to reboot PFSense 2nd, otherwise stuff generally gets all squirely.

                    1 Reply Last reply Reply Quote 1
                    • jimpJ Offline
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      There is definitely an issue somewhere with LCDProc when a WAN goes offline and recovers. I've seen it end up with multiple client processes several times before. The problem is there is code which should be preventing that, and I can never reproduce it in the lab. It only seems to happen on my edge system, and never when I'm watching it.

                      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!

                      fireodoF 1 Reply Last reply Reply Quote 1
                      • fireodoF Offline
                        fireodo @jimp
                        last edited by fireodo

                        @jimp said in LCDproc Looses Connection - Restarting service Fixes but goes down again shortly after:

                        and I can never reproduce it in the lab.

                        Hi, if you go to Diagnostics -> States and kill all states you get the "running wild" and flooding syslog lcdproc-client.

                        (Maybe also of interest: LcdProc)

                        Regards,
                        fireodo

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.8.1 CE
                        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.