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. [Resolved] accept: Bad file descriptor

[Resolved] accept: Bad file descriptor

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 1.9k Views 3 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.
  • Suresh MaliS Offline
    Suresh MaliS Offline
    Suresh Mali
    wrote on last edited by Suresh Mali
    #1

    I build a Gateway on Rpi. Post build it was working fine. I reboot and it stops working. Unable to interpret what this means. Please help. I did go through the forum but not able to solve it. I am using the latest 2.2.0 release. I ruled out hardware and radio issues as one of my node was able to communicate and send messages.

    Any help would be appreciated.
    Thanks

    pi@myhome:~/MySensors $ sudo ./bin/mysgw -d
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.2.0
    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: bind: Address already in use
    mysgw: Failed to bind!
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: accept: Bad file descriptor
    mysgw: accept: Bad file descriptor
    mysgw: accept: Bad file descriptor
    mysgw: accept: Bad file descriptor
    mysgw: accept: Bad file descriptor
    mfalkviddM 1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      That's probably because the service is running in background. Type sudo service mysgw stop then the command you used

      1 Reply Last reply
      0
      • Suresh MaliS Suresh Mali

        I build a Gateway on Rpi. Post build it was working fine. I reboot and it stops working. Unable to interpret what this means. Please help. I did go through the forum but not able to solve it. I am using the latest 2.2.0 release. I ruled out hardware and radio issues as one of my node was able to communicate and send messages.

        Any help would be appreciated.
        Thanks

        pi@myhome:~/MySensors $ sudo ./bin/mysgw -d
        mysgw: Starting gateway...
        mysgw: Protocol version - 2.2.0
        mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
        mysgw: TSF:LRT:OK
        mysgw: TSM:INIT
        mysgw: TSF:WUR:MS=0
        mysgw: TSM:INIT:TSP OK
        mysgw: TSM:INIT:GW MODE
        mysgw: TSM:READY:ID=0,PAR=0,DIS=0
        mysgw: MCO:REG:NOT NEEDED
        mysgw: bind: Address already in use
        mysgw: Failed to bind!
        mysgw: MCO:BGN:STP
        mysgw: MCO:BGN:INIT OK,TSP=1
        mysgw: accept: Bad file descriptor
        mysgw: accept: Bad file descriptor
        mysgw: accept: Bad file descriptor
        mysgw: accept: Bad file descriptor
        mysgw: accept: Bad file descriptor
        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #3

        @suresh-mali said in accept: Bad file descriptor:

        bind: Address already in use

        This means something else is already listening on the same port. My guess is that another instance of the gateway has already been started, or some other program is using the same port.

        You can use netstat -l -p to see the process id of the program that is already using the port.

        1 Reply Last reply
        0
        • Suresh MaliS Offline
          Suresh MaliS Offline
          Suresh Mali
          wrote on last edited by
          #4

          Thanks @mfalkvidd and @gohan . That helped.

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


          20

          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