gotthardp / lorawan-server

Compact server for private LoRaWAN networks
https://gotthardp.github.io/lorawan-server
MIT License
956 stars 329 forks source link

The lorawan-server HTTP output stops when the client is restarted #659

Open hjojohan opened 5 years ago

hjojohan commented 5 years ago

Hi I experience trouble at time when my httplistner client needs to be restarted. The lorawan server runs in the background and I can se sensorframes arriving but there is no data pushed out to my httplistner software http://localhost:3100/

Then if a press "save changes" button in the "edit connector" dialog the sensordata arrives in my httpclient and runs fine until next time i need to do a restart of the client.

Seems like the lorawan server gives up trying to send data over HTTP if the client software is not running for a while. It makes a autostart scenario difficult to achive

Is there anyone out there that have a solution for this behaviour ? thanks in advance :-)

gotthardp commented 5 years ago

Hello. Two questions first:

hjojohan commented 5 years ago

The Lorawan server shows 'connecting' flag, but it never reconnects and my application dont recieve data unless I manually press "save changes" button, then the data is flowing again.

My http client starts, opens the reciving port and wait for json data to arrive from the lorawan server connecting normal

hjojohan commented 5 years ago

Where can i find the log file and what is the filename ?

gotthardp commented 5 years ago

Depending on your installation the server logs are stored in /var/log/lorawan-server, /var/lib/lorawan-server/log or just lorawan-server/log. By default three log files are provided: debug.log, error.log and crash.log.

saini-jitendra commented 3 years ago

Hello @hjojohan ,

Did u resolve the issue as I m also facing the same problem?

if yes, could you please share snapshots of the Connector and handler tab?

Data is arriving on the Lorawan server, but there is no data pushed out to my HTTP listener software.