Mysgw: accept: Bad file descriptor

Hi there!

Just started with my diy home automation project and what I would like to achieve is a raspi gateway which also houses openhab as a controller. The sensors and openhab will be communicating via NRF24L01+.

So far what I have done is:

  1. Installed openhab2 on a rpi2 jessie
  2. wired the NRF24L01+ onto the rpi
  3. followed the steps in this guide:

Now, as my sensors haven’t arrived yet, I would like to test if I can make the rpi and a adruino mini pro communicate via the radio.

The problem is here:
pi@raspberrypi:~ $ sudo /usr/local/bin/mysgw -d mysgw: Starting gateway... mysgw: Protocol version - 2.1.1 mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1 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 ...

I have read some hints that maybe I should change openhab localhost or something like that but I wouldn’t like to start messing around randomly.

Hop someone can help.


It seems that you found the problem: