Incorrect remote server details port 50011 not open

By the Gateway  forwarder I get on the screen direct from the RasperyPi the List whit every 5 minits
root@oemgateway:~# python /root/oem_gateway/oemgateway.py --config-file /boot/oemgateway.conf

2013-11-07 13:57:18,102 INFO Logging level set to DEBUG
2013-11-07 13:57:18,106 INFO Opening gateway...
2013-11-07 13:57:18,109 INFO Creating buffer emoncms_local
2013-11-07 13:57:18,114 INFO Creating buffer emoncms_remote
2013-11-07 13:57:18,119 INFO Creating listener RFM2Pi
2013-11-07 13:57:18,123 DEBUG Opening serial port: /dev/ttyAMA0
2013-11-07 13:57:18,128 INFO Setting send time interval to 300
2013-11-07 13:57:18,131 INFO Setting RFM2Pi | frequency: 8
2013-11-07 13:57:19,136 INFO Setting RFM2Pi | sgroup: 210
2013-11-07 13:57:20,141 INFO Setting RFM2Pi | baseid: 15
2013-11-07 13:57:21,145 INFO Creating listener Socket
2013-11-07 13:57:21,149 DEBUG Opening socket on port 50011
2013-11-07 13:57:21,154 ERROR [Errno 98] Address already in use
2013-11-07 13:57:21,157 ERROR Could not open port 50011
2013-11-07 13:57:21,182 DEBUG Broadcasting time: 13:57
2013-11-07 13:57:21,389 INFO Serial RX:  -> 4 b
2013-11-07 14:00:58,493 INFO Serial RX: > 0s
2013-11-07 14:02:21,196 DEBUG Broadcasting time: 14:2
2013-11-07 14:02:21,403 INFO Serial RX:  -> 4 b

I see port 50011 is not open. How can I see how that is come and how can I resolve it.

 

Jérôme's picture

Re: Incorrect remote server details port 50011 not open

I don't know the oemgateway.conf shipped with the SD card, but did you edit it to fit your needs ? I mean did you go through the steps of customizing this file ?

Unless you have a specific use case for it, the socket listener is not needed. It appears in the default config file as an example, but if you don't need it, you might as well comment or remove it.

It is meant to listen to another program for data. Another program that you would have created for that. If this is unclear to you, then you don't need it.

The port is already open. It means a program already uses this port. If you actually need this feature, you can pick any other open port. Just make sure the program that writes to that port uses the same port number.

My guess is

- you don't need this socket listener and you should remove it from the config file

- the other program using the socket is another instance of the gateway, still running

geurink33's picture

Re: Incorrect remote server details port 50011 not open

Hello Jerome,  thanks for the response.

I become quit frustrated whit all of this.
I have now 2 EmonTX, 2 Raspberry and several SD carts and 2 PC
Whatever I do I become every time when I log in the mark   Incorrect remote server details
Problem is I get no active inputs, even when I use the Ready-to-go-image or the Rock-solid-gateway image.

Here a copy of the screen.
RFM12 to Pi interface script is up and running

                                                                                                                                                                                      RaspberryPi API Help
Raspberry Pi
Raspberry Pi connected to emoncms user account:
Select frequency to match RFM12B module:
  433Mhz       868Mhz       915Mhz                          868

Network Group: (210 default, 1-212)                      210

RFM12Pi node ID: (15 default, 15-17)                     15

Broadcast time to synchronize emonGLCD
Time sending interval (s): (default 0 = never)         0

Forward data to remote emoncms server
Protocol                                                                            http://
                
Domain name                                                                 emoncms.org                       
                         
Path to emoncms                                                              /

Write apikey                                                                       your apikey

                                                                                                                                                              Incorrect remote server details
Save

 

I tried to put in the Apikey that is displayed in the help screen but also that give no result.
I read that this in a local host approach not necessary, also I read that the inputs should come automatic.
What I’m doing wrong or am I forgetting something?

Regards Frans

geurink33's picture

Re: Incorrect remote server details port 50011 not open

by the way, i configurate the oemgataway.conf whit Putty.

 

the screen above is from a new written (Latest: emoncmspiv5avr0205_13.zip (770.9MB)  )

Frans

urdel62's picture

Re: Incorrect remote server details port 50011 not open

Hi ,

 

I have the same error as you.

 

What did you do to make it work ?

 

Thanks,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.