• 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: failed to read config. stack: 2
#1
Hi all,
after installing tightvncserver on my Raspberry PI 4 with buster, pilight no longer works. There were no problems before installation.

Code:
service pilight start

Job for pilight.service failed because the control process exited with error code.
See "systemctl status pilight.service" and "journalctl -xe" for details.

systemctl status pilight.service =>

pilight.service - pilight
  Loaded: loaded (/etc/systemd/system/pilight.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Sun 2020-02-02 20:30:27 CET; 16s ago
 Process: 3143 ExecStart=/usr/local/sbin/pilight-daemon (code=exited, status=1/FAILURE)

Feb 02 20:30:27 raspberrypi systemd[1]: pilight.service: Service RestartSec=100ms expired, scheduling restart.
Feb 02 20:30:27 raspberrypi systemd[1]: pilight.service: Scheduled restart job, restart counter is at 5.
Feb 02 20:30:27 raspberrypi systemd[1]: Stopped pilight.
Feb 02 20:30:27 raspberrypi systemd[1]: pilight.service: Start request repeated too quickly.
Feb 02 20:30:27 raspberrypi systemd[1]: pilight.service: Failed with result 'exit-code'.
Feb 02 20:30:27 raspberrypi systemd[1]: Failed to start pilight.

i installed pilight again - as discribed in the installation manual, but the error is still the same.

Code:
root@raspberrypi:/home/pi# pilight-daemon -D
[Feb 02 20:09:29:612385] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/registry.lua v1.0
[Feb 02 20:09:29:639789] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/hardware.lua v1.0
[Feb 02 20:09:29:641148] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/settings.lua v1.0
[Feb 02 20:09:29:641983]
---- LUA STACKTRACE ----
error: /usr/local/lib/pilight/storage/json/settings.lua:35: attempt to call field 'parse' (a nil value)

[#000] [C]:-1  (field parse)
[#001] /usr/local/lib/pilight/storage/json/settings.lua:35

number of element on stack: 2

1: function
2: function

---- LUA STACKTRACE ----
[Feb 02 20:09:29:642043] ERROR: failed to read config
[Feb 02 20:09:29:642063] DEBUG: garbage collected event operator library
[Feb 02 20:09:29:642076] DEBUG: garbage collected event action library
[Feb 02 20:09:29:642089] DEBUG: garbage collected event function library
[Feb 02 20:09:29:642099] DEBUG: garbage collected events library
[Feb 02 20:09:29:642218] DEBUG: garbage collected sha256cache library
[Feb 02 20:09:29:642230] DEBUG: garbage collected webserver library
[Feb 02 20:09:29:642242] DEBUG: garbage collected datetime library
[Feb 02 20:09:29:642353] DEBUG: garbage collected ssdp library
[Feb 02 20:09:29:642372] DEBUG: garbage collected options library
[Feb 02 20:09:29:642386] DEBUG: garbage collected socket library
[Feb 02 20:09:29:642408] DEBUG: garbage collected config hardware library
[Feb 02 20:09:29:642423] DEBUG: garbage collected config devices library
[Feb 02 20:09:29:642435] DEBUG: garbage collected config rules library
[Feb 02 20:09:29:642447] DEBUG: garbage collected config gui library
[Feb 02 20:09:29:642457] DEBUG: garbage collected storage library
[Feb 02 20:09:29:642473] DEBUG: protocol raw
[Feb 02 20:09:29:642488] DEBUG: protocol pilight_firmware
[Feb 02 20:09:29:642499] DEBUG: protocol pilight_firmware
[Feb 02 20:09:29:642511] DEBUG: protocol ping
[Feb 02 20:09:29:642524] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642536] DEBUG: protocol arping
[Feb 02 20:09:29:642547] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642558] DEBUG: protocol relay
[Feb 02 20:09:29:642568] DEBUG: ran garbage collector
[Feb 02 20:09:29:642580] DEBUG: protocol lm76
[Feb 02 20:09:29:642591] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642603] DEBUG: protocol lm75
[Feb 02 20:09:29:642613] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642625] DEBUG: protocol gpio_switch
[Feb 02 20:09:29:642636] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642647] DEBUG: protocol ds18s20
[Feb 02 20:09:29:642658] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642670] DEBUG: protocol ds18b20
[Feb 02 20:09:29:642680] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642692] DEBUG: protocol dht22
[Feb 02 20:09:29:642702] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642715] DEBUG: protocol dht11
[Feb 02 20:09:29:642725] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642737] DEBUG: protocol bmp180
[Feb 02 20:09:29:642748] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642760] DEBUG: protocol generic_webcam
[Feb 02 20:09:29:642772] DEBUG: protocol generic_weather
[Feb 02 20:09:29:642784] DEBUG: protocol generic_switch
[Feb 02 20:09:29:642795] DEBUG: protocol generic_screen
[Feb 02 20:09:29:642806] DEBUG: protocol generic_label
[Feb 02 20:09:29:642818] DEBUG: protocol generic_dimmer
[Feb 02 20:09:29:642829] DEBUG: protocol xbmc
[Feb 02 20:09:29:642840] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642851] DEBUG: protocol wunderground
[Feb 02 20:09:29:642861] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642874] DEBUG: protocol tasmota_switch
[Feb 02 20:09:29:642886] DEBUG: protocol sunriseset
[Feb 02 20:09:29:642897] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642908] DEBUG: protocol shellyplug-s
[Feb 02 20:09:29:642920] DEBUG: protocol shellyplug
[Feb 02 20:09:29:642933] DEBUG: protocol shelly1pm
[Feb 02 20:09:29:642944] DEBUG: protocol shelly1
[Feb 02 20:09:29:642955] DEBUG: protocol program
[Feb 02 20:09:29:642985] DEBUG: stopped protocol threads
[Feb 02 20:09:29:642998] DEBUG: protocol openweathermap
[Feb 02 20:09:29:643009] DEBUG: stopped protocol threads
[Feb 02 20:09:29:643022] DEBUG: protocol lirc
[Feb 02 20:09:29:643033] DEBUG: stopped protocol threads
[Feb 02 20:09:29:643043] DEBUG: protocol datetime
[Feb 02 20:09:29:643053] DEBUG: stopped protocol threads
[Feb 02 20:09:29:643063] DEBUG: ran garbage collector
[Feb 02 20:09:29:643075] DEBUG: protocol cpu_temp
[Feb 02 20:09:29:643085] DEBUG: stopped protocol threads
[Feb 02 20:09:29:643097] DEBUG: protocol x10
[Feb 02 20:09:29:643108] DEBUG: protocol tfa30
[Feb 02 20:09:29:643217] DEBUG: ran garbage collector
[Feb 02 20:09:29:643229] DEBUG: protocol tfa2017
[Feb 02 20:09:29:643239] DEBUG: ran garbage collector
[Feb 02 20:09:29:643252] DEBUG: protocol tfa
[Feb 02 20:09:29:643262] DEBUG: ran garbage collector
[Feb 02 20:09:29:643275] DEBUG: protocol teknihall
[Feb 02 20:09:29:643285] DEBUG: ran garbage collector
[Feb 02 20:09:29:643297] DEBUG: protocol techlico_switch
[Feb 02 20:09:29:643320] DEBUG: protocol tcm
[Feb 02 20:09:29:643331] DEBUG: ran garbage collector
[Feb 02 20:09:29:643344] DEBUG: protocol silvercrest
[Feb 02 20:09:29:643356] DEBUG: protocol selectremote
[Feb 02 20:09:29:643367] DEBUG: protocol secudo_smoke_sensor
[Feb 02 20:09:29:643378] DEBUG: protocol sc2262
[Feb 02 20:09:29:643389] DEBUG: protocol rsl366
[Feb 02 20:09:29:643400] DEBUG: protocol rc101
[Feb 02 20:09:29:643412] DEBUG: protocol quigg_screen
[Feb 02 20:09:29:643423] DEBUG: protocol quigg_gt9000
[Feb 02 20:09:29:643435] DEBUG: protocol quigg_gt7000
[Feb 02 20:09:29:643446] DEBUG: protocol quigg_gt1000
[Feb 02 20:09:29:643458] DEBUG: protocol pollin
[Feb 02 20:09:29:643469] DEBUG: protocol ninjablocks_weather
[Feb 02 20:09:29:643479] DEBUG: ran garbage collector
[Feb 02 20:09:29:643491] DEBUG: protocol mumbi
[Feb 02 20:09:29:643502] DEBUG: protocol logilink_switch
[Feb 02 20:09:29:643513] DEBUG: protocol kerui_D026
[Feb 02 20:09:29:643524] DEBUG: protocol iwds07
[Feb 02 20:09:29:643535] DEBUG: protocol impuls
[Feb 02 20:09:29:643546] DEBUG: protocol heitech
[Feb 02 20:09:29:643557] DEBUG: protocol ev1527
[Feb 02 20:09:29:643568] DEBUG: protocol eurodomest_switch
[Feb 02 20:09:29:643580] DEBUG: protocol elro_800_switch
[Feb 02 20:09:29:643592] DEBUG: protocol elro_800_contact
[Feb 02 20:09:29:643603] DEBUG: protocol elro_400_switch
[Feb 02 20:09:29:643615] DEBUG: protocol elro_300_switch
[Feb 02 20:09:29:643626] DEBUG: protocol ehome
[Feb 02 20:09:29:643637] DEBUG: protocol daycom
[Feb 02 20:09:29:643648] DEBUG: protocol conrad_rsl_switch
[Feb 02 20:09:29:643660] DEBUG: protocol conrad_rsl_contact
[Feb 02 20:09:29:643671] DEBUG: protocol cleverwatts
[Feb 02 20:09:29:643683] DEBUG: protocol clarus_switch
[Feb 02 20:09:29:643694] DEBUG: protocol beamish_switch
[Feb 02 20:09:29:643706] DEBUG: protocol auriol
[Feb 02 20:09:29:643716] DEBUG: ran garbage collector
[Feb 02 20:09:29:643728] DEBUG: protocol arctech_switch_old
[Feb 02 20:09:29:643740] DEBUG: protocol arctech_switch
[Feb 02 20:09:29:643752] DEBUG: protocol arctech_screen_old
[Feb 02 20:09:29:643763] DEBUG: protocol arctech_screen
[Feb 02 20:09:29:643775] DEBUG: protocol arctech_motion
[Feb 02 20:09:29:643786] DEBUG: protocol arctech_dusk
[Feb 02 20:09:29:643797] DEBUG: protocol arctech_dimmer
[Feb 02 20:09:29:643809] DEBUG: protocol arctech_contact
[Feb 02 20:09:29:643821] DEBUG: protocol alecto_wx500
[Feb 02 20:09:29:643830] DEBUG: ran garbage collector
[Feb 02 20:09:29:643844] DEBUG: protocol alecto_wsd17
[Feb 02 20:09:29:643854] DEBUG: ran garbage collector
[Feb 02 20:09:29:643865] DEBUG: protocol alecto_ws1700
[Feb 02 20:09:29:643875] DEBUG: ran garbage collector
[Feb 02 20:09:29:643887] DEBUG: protocol process
[Feb 02 20:09:29:643898] DEBUG: garbage collected protocol library
[Feb 02 20:09:29:643916] DEBUG: garbage collected threads library
[Feb 02 20:09:29:643932] DEBUG: garbage collected dso library
DEBUG: garbage collected log library
[Feb 02 20:09:29:647683] DEBUG: garbage collected lua library
 
Reply
#2
What's the output of this?
Code:
ls /usr/local/lib/pilight/lua/
 
Reply
#3
Code:
pi@raspberrypi:~ $ ls -l /usr/local/lib/pilight/lua/
insgesamt 16
-rw-r-xr-- 1 root root  362 Okt 11 05:00 dump.lua
-rw-r-xr-- 1 root root 5855 Okt 11 05:00 json.lua
-rw-r-xr-- 1 root root  135 Okt 11 05:00 lookup.lua
 
Reply
#4
i have found the following facts:


Code:
pi@raspberrypi:~ $ sudo su 
root@raspberrypi:/home/pi# cd /usr/local/lib/pilight/lua
root@raspberrypi:/usr/local/lib/pilight/lua# pilight-daemon -D

then the deamon starts and is running in this terminal window. Wihtout changing path it doesn't start.

if i open another terminal window.

Code:
pi@raspberrypi:~ $ pilight-send -p kaku_switch -i 16657026 -u 0 -f
pi@raspberrypi:~ $ pilight-send -p kaku_switch -i 16657026 -u 0 -t

these command works fine.

Without changing path to /usr/local/lib/pilight/lua the daemon does not start.

Code:
pi@raspberrypi:~ $ sudo su
root@raspberrypi:/home/pi# pilight-daemon -D
[Feb 03 19:20:39:912308] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/registry.lua v1.0
[Feb 03 19:20:39:961259] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/hardware.lua v1.0
[Feb 03 19:20:39:962803] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/settings.lua v1.0
[Feb 03 19:20:39:963885]
---- LUA STACKTRACE ----
error: /usr/local/lib/pilight/storage/json/settings.lua:35: attempt to call field 'parse' (a nil value)

[#000] [C]:-1  (field parse)
[#001] /usr/local/lib/pilight/storage/json/settings.lua:35

number of element on stack: 2

1: function
2: function

---- LUA STACKTRACE ----
[Feb 03 19:20:39:964211] ERROR: failed to read config
....

Any help is highly appreciated.

Cheers, Stefan
 
Reply
#5
I have no clue. Somehow you've managed to wreck the lua package folder settings inside pilight, and i don't know how you did so.
 
Reply
#6
what's the best way to fix that? should i delete certain directories (if yes, which ones) and then try a new installation?
 
Reply
#7
I have no clue. New installation should work.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  raspberry pi 4 config.json Stefan 2 523 02-02-2020, 09:59 AM
Last Post: Stefan
  failed to run command zlin50 4 509 01-03-2020, 10:32 PM
Last Post: zlin50
  Raspberry 4B installation error royw 3 601 12-05-2019, 10:58 AM
Last Post: royw
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 3 816 11-29-2019, 09:56 PM
Last Post: curlymo
  "FOR '2 MINUTE' FROM off" resulting in error hansrijn2 5 632 11-15-2019, 02:04 PM
Last Post: hansrijn2
  433gpio platform error after raspbian dist upgrade HuberDe 2 773 10-12-2019, 07:35 PM
Last Post: HuberDe
  Config migration from pilight 7 .0 to 8.1.3 "Rules" Nonaamee 4 1,404 11-17-2018, 08:35 PM
Last Post: Nonaamee
  error pilightsend, recieve and control hansipi 2 782 11-04-2018, 03:46 PM
Last Post: hansipi
  WebSocket connection failed: One or more reserved bits gregnau 8 3,435 02-16-2018, 10:02 PM
Last Post: curlymo
  Error with loading LPF firmware Rschnauzer 14 8,393 02-10-2018, 04:21 PM
Last Post: Rschnauzer

Forum Jump:


Browsing: 1 Guest(s)