pfSense Gold Subscription

Author Topic: [LCDProc] - Could not read config file  (Read 15242 times)

0 Members and 1 Guest are viewing this topic.

Offline djmixman

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
[LCDProc] - Could not read config file
« on: November 04, 2014, 07:47:55 pm »
No matter what I do I can not get lcdproc to start. If I try to launch it from the services menu it just says "Stopped"

Even after dropping to the shell, manually updating config file to reflect new lib paths, and trying to launch it with command line parms I get:

Code: [Select]

[2.2-BETA][root@rt1.atx1.local]/usr/local/etc(305): ls -l
-rw-r--r--  1 root  wheel   700 Nov  4 19:24 LCDd.conf

[2.2-BETA][root@rt1.atx1.local]/usr/pbi/lcdproc-amd64/bin(282): ./LCDd
Could not read config file: /usr/local/etc/LCDd.conf
Critical error while processing settings, abort.

[2.2-BETA][root@rt1.atx1.local]/usr/local/etc(290): LCDd -d curses -f -a 127.0.0.1 -p 13666 -u nobody -w 5
Could not read config file: /usr/local/etc/LCDd.conf
Critical error while processing settings, abort.

[2.2-BETA][root@rt1.atx1.local]/usr/local/etc(291): LCDd -c null -d curses -f -a 127.0.0.1 -p 13666 -u nobody -w 5
Could not read config file: null
Critical error while processing settings, abort.

I have no idea what else I can do to help and i'm not sure if it would fix these problems or not, but is it possible that lcdproc could get updated to the latest version, 0.5.7, as of this posting...

Offline charliem

  • Sr. Member
  • ****
  • Posts: 565
  • Karma: +43/-1
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #1 on: November 06, 2014, 03:15:50 pm »
Which did you install LCDproc or LCDproc-dev? 

I don't have the HW to test properly, but the LCDproc-dev installed OK for me.  When I start it, it fails gracefully because it cannot find the bogus hardware I configured. Webgui gets it right, showing it's not running.

But /usr/local/etc/LCDd.conf definitely exists, is readable, and has correct-looking content in my tests.

Can 'cat /usr/local/etc/LCDd.conf'?

I did notice that lcdproc does show up in the status_services.php page, but not in the services widget on the dashboard page.  <-- seems it shows up on the widget if you tick 'enable at startup', but shows up in status_services in either case.

Also, the latest seems to be 0.5.6 according to the links on the pfsense package page, not sure where you are seening 0.5.7. 
« Last Edit: November 06, 2014, 03:25:17 pm by charliem »

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #2 on: November 06, 2014, 03:48:26 pm »
0.5.6 is the latest lcdproc stable release but there is a 0.5.7 version avilable. It hasn't made it into a pfSense package yet though.

When you first install the lcdproc package it will not run at all until you have configured both a hardware type and some screens. Doing that generates the rc files required to start it.

Steve

Offline djmixman

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #3 on: November 08, 2014, 02:43:23 pm »
Which did you install LCDproc or LCDproc-dev? 

I have tried both versions in the pfsense package system.


Can 'cat /usr/local/etc/LCDd.conf'?


Code: [Select]
Running ls -l /usr/local/etc/LCD*


-rw-r--r--  1 root  wheel  627 Nov  8 14:32 /usr/local/etc/LCDd.conf
-rwxr-xr-x  1 root  wheel  627 Nov  4 19:04 /usr/local/etc/LCDd.conf.orig


Running LCDd


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


Cat /usr/local/etc/LCDd.conf
[server]
DriverPath=/usr/local/lib/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
ReportLevel=3
ReportToSyslog=yes
User=nobody
Foreground=no
ServerScreen=no
GoodBye="Thanks for using"
GoodBye="    pfSense     "
WaitTime=5
ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right
ScrollUpKey=Up
ScrollDownKey=Down
[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up
DownKey=Down
[hd44780]
driverpath=/usr/local/lib/lcdproc/
ConnectionType=mplay
Device=/dev/ugen1.2
Port=0x378
Speed=0
Keypad=yes
Contrast=850
Brightness=800
OffBrightness=0
Backlight=yes
OutputPort=no
Charmap=hd44780_default
DelayMult=1
DelayBus=true
Size=20x2

When you first install the lcdproc package it will not run at all until you have configured both a hardware type and some screens. Doing that generates the rc files required to start it.

I've clicked and unclicked stuff in both tabs in the menu.. Nothing I do makes a difference when trying to launch LCDd..  :(

Here are the screen shots of my configuration:
http://i.imgur.com/Lg9oPD5.png and http://i.imgur.com/CNQOahW.png


Edit:
I've also tried this:
Code: [Select]
[2.2-BETA][root@rt1.atx1.local]/usr/local/etc(62): LCDd -c LCDd.conf

Could not read config file: LCDd.conf
Critical error while processing settings, abort.

[2.2-BETA][root@rt1.atx1.local]/usr/local/etc(63): cat LCDd.conf

[Server]
DriverPath=/usr/pbi/lcdproc-amd64/lib/lcdproc/
Driver=text
Bind=127.0.0.1
Port=13666
ReportLevel=5
ReportToSyslog=no
User=nobody
Foreground=yes
Hello="This is a"
Hello="test!"
WaitTime=4
AutoRotate=yes
ServerScreen=yes
Backlight=on
Heartbeat=on

[text]
Size=20x4
« Last Edit: November 08, 2014, 03:06:39 pm by djmixman »

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #4 on: November 09, 2014, 09:13:23 am »
Are you running all of this on 2.2beta 64bit?

Steve

Offline charliem

  • Sr. Member
  • ****
  • Posts: 565
  • Karma: +43/-1
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #5 on: November 09, 2014, 09:14:45 am »
Are you sure that's the right endpoint and device number?

Can you increase the debug output level with "-r 5"?  (Do it on the command line; setting it in the config file won't work if the file is not found or processed correctly).

Also, when you try running it from the command line, put in the full path to the config file with the -c argument.

Offline djmixman

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #6 on: November 13, 2014, 09:58:39 am »
Are you running all of this on 2.2beta 64bit?

Steve

Yes.. 2.2 beta, 64bit...

[2.2-BETA][root@rt1.atx1.local]/var/log(67): uname -a
FreeBSD rt1.atx1.local 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #28 30e366f(HEAD)

Version   2.2-BETA (amd64)
built on Fri Sep 19 23:21:59 CDT 2014
FreeBSD 10.1-PRERELEASE

Are you sure that's the right endpoint and device number?

I've tried text, curses and the driver for my LCD and all give the same error...

Can you increase the debug output level with "-r 5"?  (Do it on the command line; setting it in the config file won't work if the file is not found or processed correctly).

Also, when you try running it from the command line, put in the full path to the config file with the -c argument.

It does not matter if I put anything on the command line or use full paths I still get the same "Could not read config file:"  Even when doing -r 5 on the command line I do not get any additional information. Seems to completely ignore what I tell it..


Offline charliem

  • Sr. Member
  • ****
  • Posts: 565
  • Karma: +43/-1
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #7 on: November 13, 2014, 12:00:37 pm »

[2.2-BETA][root@rt1.atx1.local]/var/log(67): uname -a
FreeBSD rt1.atx1.local 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #28 30e366f(HEAD)

Version   2.2-BETA (amd64)
built on Fri Sep 19 23:21:59 CDT 2014
FreeBSD 10.1-PRERELEASE

Long shot, but try a newer beta version.  Today's snapshot uses FreeBSD 10.1 Release; you are using an early prerelease, and there've been quite a few FreeBSD changes since then.  If you have the resources, you could see if you could duplicate the problem on a VM with either a fresh pfSense or a vanilla FreeBSD 10.1 image.

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #8 on: November 14, 2014, 06:32:45 pm »
Ok, I've tested this using a recent snapshot and I was able to start it.
How are you generating the LCDd.conf file?

Steve

Offline chpalmer

  • Hero Member
  • *****
  • Posts: 1759
  • Karma: +93/-3
    • View Profile
    • Home of Cablenut
Re: [LCDProc] - Could not read config file
« Reply #9 on: November 14, 2014, 11:16:07 pm »
Ok, I've tested this using a recent snapshot and I was able to start it.
How are you generating the LCDd.conf file?

Steve

64 bit or 32?

[2.2-BETA][admin@testbox.labbox]/root: LCDd -c /usr/local/etc/LCDd.conf
Could not read config file: /usr/local/etc/LCDd.conf
Critical error while processing settings, abort.

My LCDd.conf file already existed and compares exactly to the one you attached in the hardware thread.

P.S. statements made by me are not necessarily condoned by the management of this fine organization.  http://badmodems.com

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #10 on: November 15, 2014, 03:15:00 am »
64bit.

Offline jjstecchino

  • Full Member
  • ***
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #11 on: November 23, 2014, 11:04:59 pm »
Same here. latest 2.2 beta i386. Same error. recreated LCDd.conf by hand using vi. permission are ok. LCDd cannot read config file. Very weird.

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #12 on: November 24, 2014, 06:52:38 am »
Using the dev package?

Steve

Offline jjstecchino

  • Full Member
  • ***
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #13 on: November 24, 2014, 09:05:22 pm »
Yup.
Need dev to drive the firebox display. Having said that, I tried the non dev version of the package. LCDd is same version and it cannot read the config file too. not in the /usr/local/etc directory or doesn't matter if I create the config anywhere else. Tried with the config created by pfsense and also recreated it from scratch using vi. even chmod 777 the file just to make sure it did not need write privileges on the file. My pfsense is i386 since it is on a firebox x-core-e.
This is too bad as I have the firebox all tweaked up on 2.2. NICs blinking right, your fan control and status light program working like a charm and even IPV6 with 6RD now working. A working LCD is what is missing now.
I read on a previous post of yours that it is working for you. Was it a new install? My is an upgrade from 2.1. It shouldn't matter though. I wonder if LCDd is using some weird library that is screwing things up.

PS a big THANKS for the work you did to make a firebox an excellent pfsense platform for all of us

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11914
  • Karma: +468/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #14 on: November 24, 2014, 09:18:04 pm »
Hmm. I updated my xtm5 today and after a couple of reboots the LCD came back up. It's running 64bit though.
I have the filesystem set to permanent read-write. I can't really see what bearing that might have here but it's an easy test.
I'll have to fire up my test x550e and put 2.2 on it.

Steve