• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error message when start of pilight failed.
#1
I think it is a good idea to write the line out when the start from pilight failed.
i always need to have 2 consoles open to read error messages in the error log.

The log entry line should also be shown on the console.

example what i mean.
Code:
failed! not a valid json config file
or
Code:
failed! device invalid setting
 
Reply
#2
That would be against how linux works. That's why most programs offer a mode to run in the foreground.
 
Reply
#3
To elaborate Wink, run sudo pilight-daemon -D to see debug output Smile
 
Reply
#4
OK, thanks.
 
Reply
#5
After several re-installations and problems I have a working pilight v6. pilight-receive is working perfect. It’s far away from calling me a programmer but I’m more a man of electronics.
So, my next step is editing the onficg.json and in that stage I’m blocked. I’ve tried many possibilities by editing the “devices”-setup but the – service pilight start – is giving me the reaction [FAIL] and running Sudo pilight-daemon –D gives me the answer ‘Config is not in a valid json format’. I do understand the use of {/} is very important and it might be the problem, but I don’t understand the logic of where and when that signs are used. Is this short and simple to explain? Googling all over the web and reading books didn’t help me. If there are more reasons that bring me to mistakes I’m glad to hear it. I have typed/retyped many samples and get the same [FAIL]-message.
Thanks in advance
 
Reply
#6
Use http://www.jsonlint.com to see exactly where you made your mistake. Also don't read for hours for ask for help earlier.
 
Reply
#7
Try using http://jsonlint.com to check your JSON code to see where there are problems
 
Reply
#8
Hi guys,

i'm having the excact same problem as romsys. I feel like i posted that massage..Unsure

I've used jsonlint.com to check the json config file which states that it is valid. I didn't even start edditing the devices branche, just the settings were enough to get the fail.. In settings i only added: "receive-repeat": 1

I also did put a comma (,) after the last input and then added the above line whithout it as the last line, do you guys have any tip were to look?

Thanks

PS: If i should post my code could you quickly tell me how to do this?
 
Reply
#9
Check the pilight manual for valid settings: http://manual.pilight.org
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Security Error Message in Firefox Rschnauzer 2 55 05-05-2021, 02:06 PM
Last Post: Rschnauzer
  hardware info lost after pilight restart Rschnauzer 3 139 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight stopped working sl4m01 3 799 11-26-2020, 09:17 PM
Last Post: PPacman
  pilight-raw changes output format from 7 to 8 Rschnauzer 1 561 11-26-2020, 01:52 PM
Last Post: curlymo
Question pilight nightly webgui offline after some hours fleisch 4 549 10-26-2020, 05:19 PM
Last Post: fleisch
  uv__io_poll: Assertion `w->pevents != 0' failed monok 4 697 06-26-2020, 11:29 AM
Last Post: monok
  rpi3 Buster Compile Error Nikau 9 2,297 03-26-2020, 08:47 AM
Last Post: tvdgeer
  pilight bugs Ascenion 1 584 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 4,014 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 3,211 11-13-2019, 08:02 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)