Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Raspberry Pi MQTT gateway crashes after a few hours

Raspberry Pi MQTT gateway crashes after a few hours

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 4 Posters 2.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Joakim JohanssonJ Offline
    Joakim JohanssonJ Offline
    Joakim Johansson
    wrote on last edited by Yveaux
    #1

    Hi

    I've setup a MQTT gateway on a raspberry pi 2. It communicates with Home assistant (hass.io) with a Mosquitto broker installed. Everything is running fine a few hours but then it crashes. This is the error message I get

    0_1513981670486_e251245f-3e93-4bc5-abc3-747c3e7836bf-image.png

    The gateway config is this (hass.io is on 192.168.1.160). Tried with and without the irq-pin=15 setting.

    ./configure --my-transport=nrf24 --my-gateway=mqtt --my-controller-ip-address=192.168.1.160 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=nrf24 --my-rf24-irq-pin=15

    YveauxY 1 Reply Last reply
    0
    • Joakim JohanssonJ Joakim Johansson

      Hi

      I've setup a MQTT gateway on a raspberry pi 2. It communicates with Home assistant (hass.io) with a Mosquitto broker installed. Everything is running fine a few hours but then it crashes. This is the error message I get

      0_1513981670486_e251245f-3e93-4bc5-abc3-747c3e7836bf-image.png

      The gateway config is this (hass.io is on 192.168.1.160). Tried with and without the irq-pin=15 setting.

      ./configure --my-transport=nrf24 --my-gateway=mqtt --my-controller-ip-address=192.168.1.160 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=nrf24 --my-rf24-irq-pin=15

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @joakim-johansson This ssems to be a Raspberry Pi issue, so I added it to the topic. Not my specialty, but maybe @marceloaqno can take a look?

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        What version of mysensors are you using?

        Joakim JohanssonJ 1 Reply Last reply
        0
        • gohanG gohan

          What version of mysensors are you using?

          Joakim JohanssonJ Offline
          Joakim JohanssonJ Offline
          Joakim Johansson
          wrote on last edited by
          #4

          @gohan The development branch

          M 1 Reply Last reply
          0
          • Joakim JohanssonJ Joakim Johansson

            @gohan The development branch

            M Offline
            M Offline
            marceloaqno
            Code Contributor
            wrote on last edited by
            #5

            @joakim-johansson I'll need you to run mysgw through gdb to gather more information about this problem.

            Please follow the steps below:

            • Stop the mysgw service:

              systemctl stop mysgw
              
            • Start a new linux screen: (or any other windows manager)(You can find more information on how to install and use screen here: http://raspi.tv/2012/using-screen-with-raspberry-pi-to-avoid-leaving-ssh-sessions-open)

              screen
              
            • Run gdb with the path of your mysgw binary:

              gdb /usr/local/bin/mysgw
              
            • Within the gdb, start the gateway passing the debug option

              run -d
              

            You can detach from the linux screen using “Ctrl-a” “d”.
            This will return to the shell.
            The gateway will continue to run, and you can re-attach it later

            screen -r
            

            Now, you will have to wait for the gateway to crash again.
            When this occurs, post the information printed on the screen.

            I'll prepare a more complete tutorial for this. Please let me know if you have any questions.

            gohanG 1 Reply Last reply
            1
            • M marceloaqno

              @joakim-johansson I'll need you to run mysgw through gdb to gather more information about this problem.

              Please follow the steps below:

              • Stop the mysgw service:

                systemctl stop mysgw
                
              • Start a new linux screen: (or any other windows manager)(You can find more information on how to install and use screen here: http://raspi.tv/2012/using-screen-with-raspberry-pi-to-avoid-leaving-ssh-sessions-open)

                screen
                
              • Run gdb with the path of your mysgw binary:

                gdb /usr/local/bin/mysgw
                
              • Within the gdb, start the gateway passing the debug option

                run -d
                

              You can detach from the linux screen using “Ctrl-a” “d”.
              This will return to the shell.
              The gateway will continue to run, and you can re-attach it later

              screen -r
              

              Now, you will have to wait for the gateway to crash again.
              When this occurs, post the information printed on the screen.

              I'll prepare a more complete tutorial for this. Please let me know if you have any questions.

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              @marceloaqno a friend of mine had problems with the radio communication on the pi2 and now he bought a pi3 and all worked flawlessly. Could it be that there is a major issue with the pi2 hw?

              M 1 Reply Last reply
              0
              • gohanG gohan

                @marceloaqno a friend of mine had problems with the radio communication on the pi2 and now he bought a pi3 and all worked flawlessly. Could it be that there is a major issue with the pi2 hw?

                M Offline
                M Offline
                marceloaqno
                Code Contributor
                wrote on last edited by
                #7

                @gohan I've had some segmentation faults on rare occasions in the past, but I've never been able to find the reason.

                I'm suspecting that there is some bug in the class EthernetClient or EthernetServer that manifests in special conditions.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                22

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular