• 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
No hardware module configured
#1
I installed pilight, wired my switch up to GPIO, and pilight crashes on startup every time, does anyone have suggestions? The log shows this 
Code:
(/home/pilight/source/daemon-dev/daemon.c #3082) [Jun 23 16:46:43:606919] INFO: version v8.1.5
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #168) [Jun 23 16:46:43:615100] INFO: daemon listening to port: 36827
(/home/pilight/source/daemon-dev/daemon.c #3230) [Jun 23 16:46:43:618456] NOTICE: there are no hardware modules configured
(/home/pilight/source/daemon-dev/libs/pilight/core/webserver.c #1889) [Jun 23 16:46:43:619684] INFO: secured webserver started on port: 443 (fd 14)
(/home/pilight/source/daemon-dev/libs/pilight/core/webserver.c #1892) [Jun 23 16:46:43:619754] INFO: regular webserver started on port: 80 (fd 15)
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Jun 23 16:46:43:620738] INFO: new client, ip: 127.0.0.1, port: 48482
(/home/pilight/source/daemon-dev/libs/pilight/events/events.c #2137) [Jun 23 16:46:43:726902] NOTICE: no pilight ssdp connections found
(/home/pilight/source/daemon-dev/libs/pilight/core/socket.c #577) [Jun 23 16:46:43:727270] INFO: new client, ip: 127.0.0.1, port: 48484
(/home/pilight/source/daemon-dev/daemon.c #2588) [Jun 23 16:46:56:529913] INFO: Interrupt signal received. Please wait while pilight is shutting down
(/home/pilight/source/daemon-dev/daemon.c #2381) [Jun 23 16:46:56:533232] INFO: removed stale pid_file /var/run/pilight.pid

I found another thread (in this forum) about the same error message on google, does it relate in any way to my current situation? From what I understand, the issue the guy was having probably got resolved by now, right? It's named problem with GPIO_switch

Code:
{
       "devices": {
               "obergeschoss": {
                       "protocol": ["gpio_switch"],
                       "id": [{
                               "gpio": 15
                       }],
                       "state": "on",
                       "readonly": 1
               }
       },
       "rules": {},
       "gui": {
               "obergeschoss": {
                       "name": "Switch",
                       "group": ["Misc"],
                       "media": ["all"]
               }
       },
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "standalone": 1,
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "webserver-http-port": 80,
               "webserver-https-port": 443,
               "webserver-cache": 1,
               "whitelist": "",
               "gpio-platform": "raspberrypi4"
       },
       "hardware": {},
       "registry": {
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "location": "/etc/pilight/pilight.pem"
                               }
   
 
Reply
#2
Just as it says, you have no hardware module configured, check these pages:
https://manual.pilight.org/configuration/example.html
https://manual.pilight.org/configuration/hardware.html

It also doesn't crash and not erroring, it just notices something you may want to address. If it does crash, show me info about the crash.
 
Reply
#3
(06-24-2020, 05:36 PM)curlymo Wrote: Just as it says, you have no hardware module configured, check these pages:


It also doesn't crash and not erroring, it just notices something you may want to address. If it does crash, show me info about the crash.
Oh I totally missed that part, sorry! I probably thought that this platform designation is enough. Also thank you for the super quick answer time! Now the program crashes with this "segmentation fault" error 
Code:
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:682832] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/settings.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:686657] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/registry.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:687665] DEBUG: loaded storage /usr/local/lib/pilight/storage/json/hardware.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:698916] DEBUG: loaded event function /usr/local/lib/pilight/functions/date_add.lua v2.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:699675] DEBUG: loaded event function /usr/local/lib/pilight/functions/max.lua v2.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:700307] DEBUG: loaded event function /usr/local/lib/pilight/functions/min.lua v2.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:700863] DEBUG: loaded event function /usr/local/lib/pilight/functions/random.lua v2.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:701461] DEBUG: loaded event function /usr/local/lib/pilight/functions/date_format.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:702226] DEBUG: loaded event operator /usr/local/lib/pilight/operators/eq.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:703432] DEBUG: loaded event operator /usr/local/lib/pilight/operators/ne.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:704023] DEBUG: loaded event operator /usr/local/lib/pilight/operators/minus.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:704704] DEBUG: loaded event operator /usr/local/lib/pilight/operators/gt.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:705204] DEBUG: loaded event operator /usr/local/lib/pilight/operators/plus.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:705707] DEBUG: loaded event operator /usr/local/lib/pilight/operators/ge.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:706202] DEBUG: loaded event operator /usr/local/lib/pilight/operators/multiply.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:706704] DEBUG: loaded event operator /usr/local/lib/pilight/operators/modulus.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:707189] DEBUG: loaded event operator /usr/local/lib/pilight/operators/and.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:707708] DEBUG: loaded event operator /usr/local/lib/pilight/operators/lt.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:708236] DEBUG: loaded event operator /usr/local/lib/pilight/operators/le.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:708771] DEBUG: loaded event operator /usr/local/lib/pilight/operators/intdivide.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:709282] DEBUG: loaded event operator /usr/local/lib/pilight/operators/or.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:709788] DEBUG: loaded event operator /usr/local/lib/pilight/operators/concat.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:710322] DEBUG: loaded event operator /usr/local/lib/pilight/operators/divide.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:711236] DEBUG: loaded event action /usr/local/lib/pilight/actions/sendmail.lua v4.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:712490] DEBUG: loaded event action /usr/local/lib/pilight/actions/switch.lua v4.2
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:714087] DEBUG: loaded event action /usr/local/lib/pilight/actions/label.lua v4.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:715316] DEBUG: loaded event action /usr/local/lib/pilight/actions/toggle.lua v4.1
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:716148] DEBUG: loaded event action /usr/local/lib/pilight/actions/pushover.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:716944] DEBUG: loaded event action /usr/local/lib/pilight/actions/pushbullet.lua v1.0
(/home/pilight/source/daemon-dev/libs/pilight/lua_c/lua.c #1893) [Jun 24 20:11:20:718818] DEBUG: loaded event action /usr/local/lib/pilight/actions/dim.lua v4.1
Segmentation fault
As I've seen on the web, that error probably relates to a corrupt installation. So if you don't have any suggestions, I'll just wipe the SD card and look what happens.

Code:
{
       "devices": {
               "obergeschoss": {
                       "protocol": ["gpio_switch"],
                       "id": [{
                               "gpio": 15
                       }],
                       "state": "on"
               }
       },
       "rules": {},
       "gui": {
               "obergeschoss": {
                       "name": "Switch",
                       "group": ["Misc"],
                       "media": ["all"]
               }
       },
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "standalone": 1,
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "webserver-http-port": 80,
               "webserver-https-port": 443,
               "webserver-cache": 1,
               "whitelist": "",
               "gpio-platform": "raspberrypi4"
       },
       "registry": {
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "location": "/etc/pilight/pilight.pem"
                               }
                       }
               },
               "pilight": {
                       "version": {
                               "current": "8.1.5"
                       }
               },
               "hardware": {
                       "RF433": {
                               "mingaplen": 4420,
                               "maxgaplen": 72900,
                               "minrawlen": 26,
                               "maxrawlen": 400
                       },
                       "433gpio": {
                               "sender": 0,
                               "receiver": 1
                       }
               }
       }
 
Reply
#4
I don't know if this warrants a new thread or not, but I removed the rf433 part of the config.json, and it now still doesn't start anymore, and still ends with this wierd "segmentation error" error message. I already reinstalled the whole OS, and used pilight nightly. In the systemctl Debian error message, it shows code "SEGV"
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Trigger a configured switch from other computer by CLI beejayf 3 311 02-24-2020, 07:17 PM
Last Post: beejayf
  hardware module issues in nightly apartmedia 17 2,545 04-05-2019, 06:59 PM
Last Post: curlymo
  Basic testing pilight hardware dirk 5 1,440 06-07-2018, 06:09 PM
Last Post: curlymo
  [Solved] reach of pilight hardware PT-Biker 2 1,246 05-21-2018, 08:28 AM
Last Post: PT-Biker
  pilight works without connected hardware wanky 4 1,772 12-29-2017, 06:10 PM
Last Post: curlymo
  pilight does no longer start because of hardware error stratege-0815 2 1,386 12-27-2017, 11:16 PM
Last Post: stratege-0815
  no gpio-platform configured hansrijn2 2 4,747 06-03-2017, 10:01 PM
Last Post: hansrijn2
  Installing WiringX Python Module on Radxa Rock 8BitBob 5 1,629 04-20-2017, 07:20 PM
Last Post: curlymo
  Respond to hardware remotes? rajd 3 1,486 12-07-2016, 07:10 PM
Last Post: Laret
  Questions before destryoing hardware Blebbens 13 4,369 03-13-2016, 09:37 PM
Last Post: wo_rasp

Forum Jump:


Browsing: 1 Guest(s)