Raspberry MQTT config give segment fault start gateway



  • Hi,

    I have configured the gateway software on the raspberry like:

    ./configure --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mygateway1-out --my-mqtt-subscribe-topic-prefix=mygateway1-in --my-mqtt-client-id=mygateway1
    

    then

    make
    sudo ./bin/mysgw
    

    which give:

    pi@raspberrypi:~/MySensors $ ./bin/mysgw 
    Nov 19 14:30:07 ERROR Failed to open log pipe.
    Nov 19 14:30:07 INFO  Starting gateway...
    Nov 19 14:30:07 INFO  Protocol version - 2.3.0
    Nov 19 14:30:07 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,VER=2.3.0
    Nov 19 14:30:07 DEBUG TSF:LRT:OK
    Nov 19 14:30:07 DEBUG TSM:INIT
    Nov 19 14:30:07 DEBUG TSF:WUR:MS=0
    Segmentatiefout
    

    Segmentatiefout is Dutch for Segmentation fault

    I have a brand new Raspberry. I have updated everything to the last versions

    Is this a MQTT problem? It is running and seems oke



  • Solved. Deleted the /etc/mysensor.conf file and started sudo ./bin/mysgw again. This fixed the problem.


  • Mod

    @martim thanks for reporting back.

    If it happens again, running

    sudo strace ./bin/mysgw
    

    might give a clue to what's causing the segfault.



  • Ok, Thanks. Will do!


Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.6k
Posts