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

    [LCDProc] - Could not read config file

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    79 Posts 9 Posters 33.8k 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.
    • B
      Borage
      last edited by

      Only one process when i ran this command.

      [2.2-RC][admin@pfsense.localdomain]/root: pgrep -anx LCDd
      70130
      

      Something changed in one of the latest updates, now I cannot restart the service like before. The only way to get the screens back is to reboot pfsense.

      [2.2-RC][admin@pfsense.localdomain]/root: /usr/local/etc/rc.d/lcdproc.sh restart
      [2.2-RC][admin@pfsense.localdomain]/root: 
      Warning: fsockopen(): unable to connect to localhost:13666 (Operation timed out) in /usr/local/pkg/lcdproc_client.php on line 915
      
      Warning: stream_set_timeout() expects parameter 1 to be resource, boolean given in /usr/local/pkg/lcdproc_client.php on line 916
      
      1 Reply Last reply Reply Quote 0
      • B
        Borage
        last edited by

        I disabled the firewall with the following command, but it is not possible to connect to localhost.

        'pfctl -d
        

        Everything works as expected after that I changed the LCDd daemon to listen on the LAN IP address and the client to connect to the same address.

        Edit:

        I permanently fixed the problem by editing the following file.

        /usr/local/pkg/lcdproc.inc

        	define('LCDPROC_HOST','localhost');
        	define('LCDPROC_PORT','13666');
        

        My changes: See line 36

        	define('LCDPROC_HOST','127.0.0.1');
        	define('LCDPROC_PORT','13666');
        
        1 Reply Last reply Reply Quote 0
        • T
          Topper727
          last edited by

          I made those code changes in /usr/local/pkg/lcdproc.inc and changes in the LCDd.conf file.

          I am using LCDproc-dev

          DriverPath=/usr/pbi/lcdproc-amd64/local/lib/lcdproc

          This is where my drivers are in the 64 bit version.

          When I start the service I get
          Could not read config file: /usr/local/etc/LCDd.conf
          Critical error while processing settings, abort.

          but I have the file there. It has 644 permissions to the Proxy group

          I get nothing back when I run pgrep -anx LCDd

          I ran the service by
          /usr/local/etc/rc.d/lcdproc.sh restart

          and got
          Could not read config file: /usr/local/etc/LCDd.conf
          Critical error while processing settings, abort.

          Warning: fsockopen(): unable to connect to 127.0.0.1:13666 (Operation timed out) in /usr/local/pkg/lcdproc_client.php on line 915

          Warning: stream_set_timeout() expects parameter 1 to be resource, boolean given in /usr/local/pkg/lcdproc_client.php on line 916

          If someone gets me the fix code I will put it into the version and have it merged so it will be updated for everyone

          Dell 2950 g3 server
          Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
          Current: 2000 MHz, Max: 2667 MHz
          8 CPUs: 2 package(s) x 4 core(s)
          8152 MiB and 600meg 10k drive
          Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

          1 Reply Last reply Reply Quote 0
          • B
            Borage
            last edited by

            @Topper727:

            When I start the service I get
            Could not read config file: /usr/local/etc/LCDd.conf

            For some reason the conf file must be located in the following path.

            32-bit

            /usr/pbi/lcdproc-i386/local/etc/
            

            64-bit

            /usr/pbi/lcdproc-amd64/local/etc
            
            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              More accurately you can put the conf file anywhere but /usr/local/etc because if you do LCDd will look in the wrong place. This appears to be an issue with the pbi packaging.

              Steve

              1 Reply Last reply Reply Quote 0
              • T
                Topper727
                last edited by

                Has someone started to work on this or not.. I wish I had this working.. if working i might spend some effort to make some new features for it

                Dell 2950 g3 server
                Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                Current: 2000 MHz, Max: 2667 MHz
                8 CPUs: 2 package(s) x 4 core(s)
                8152 MiB and 600meg 10k drive
                Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                1 Reply Last reply Reply Quote 0
                • T
                  Topper727
                  last edited by

                  BUMP

                  Dell 2950 g3 server
                  Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                  Current: 2000 MHz, Max: 2667 MHz
                  8 CPUs: 2 package(s) x 4 core(s)
                  8152 MiB and 600meg 10k drive
                  Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Not much motivation since it works fine if you don't use the php client and move the config file, which is how I'm running it.  ;)

                    Since this appears to be a PBI problem do we have a link to some PBI docs? pfSense is moving away from PBIs in the future so it may be solved by that anyway.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • T
                      Topper727
                      last edited by

                      Made some changes to the LCDproc.inc file and it works now on 64 bit.

                      https://github.com/topper727/pfsense-packages/commit/2cd89f970053f4bf0fa23d0b88f50e69ab68f410

                      I hope someone can bump the version number as I not skilled at that yet

                      I can even make changes in UI page and the screen will restart and show the things I that I changed like I want

                      Dell 2950 g3 server
                      Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                      Current: 2000 MHz, Max: 2667 MHz
                      8 CPUs: 2 package(s) x 4 core(s)
                      8152 MiB and 600meg 10k drive
                      Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                      1 Reply Last reply Reply Quote 0
                      • P
                        phil.davis
                        last edited by

                        @Topper727:

                        Made some changes to the LCDproc.inc file and it works now on 64 bit.

                        https://github.com/topper727/pfsense-packages/commit/2cd89f970053f4bf0fa23d0b88f50e69ab68f410

                        I hope someone can bump the version number as I not skilled at that yet

                        I expect you will need code to set LCDPROC_CONFIG differently depending on the pfSense version, so that the package will still also work on older pfSense versions.
                        e.g. Bandwidthd does tests to "Check pfSense version" from line 31 of:
                        https://github.com/pfsense/pfsense-packages/blob/master/config/bandwidthd/bandwidthd.inc

                        Set a constant with define() and use it further down to substitute the path as needed.

                        Also, why do you need to add the "address of" "&" in various function parameters?

                        The version bump is just a matter of editing the files at:
                        https://github.com/pfsense/pfsense-packages
                        like:
                        pkg_config.10.xml
                        pkg_config.8.xml
                        pkg_config.8.xml.amd64

                        Search for lcdproc and see where the version is - increment the last number.

                        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                        1 Reply Last reply Reply Quote 0
                        • T
                          Topper727
                          last edited by

                          The & was in my config.. not sure if I did while back or was part of a update that I got.  Either way that worked.  But yes you have point since the package points to amd 64 locations that would cause issue with i386 and older versions as I think they have different file structure

                          My skills are limited.. Hope someone will help with this.

                          And my time is limited also..

                          Found Jim-p did that & stuff to the file little while ago
                          https://github.com/topper727/pfsense-packages/commit/a890380266da7f589b809701bd3d0e8ac715e82f

                          Dell 2950 g3 server
                          Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                          Current: 2000 MHz, Max: 2667 MHz
                          8 CPUs: 2 package(s) x 4 core(s)
                          8152 MiB and 600meg 10k drive
                          Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

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