Can't start easyiot.exe

9 years 10 months ago #261 by trubel
I started with a blank card, and imaged easyiot. I followed (ie cut and paste) instructions on iot-playground.com/3-easyiot-server-installation .

My first snag is the easyiot directory was created in /home/pi/easyiot. Figure that out, changed directories to /home/pi/easyiot, then entered sudo mono EasyIoT.exe. Here is what I am seeing

pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-02-03T14:08:02.5019430+01:00 INFO System System started
03-02-2015-02-08-11 Web service started

Unhandled Exception:
System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0

What am I doing wrong?

Please Log in or Create an account to join the conversation.

9 years 10 months ago #266 by EasyIoT
Replied by EasyIoT on topic Can't start easyiot.exe

trubel wrote: I started with a blank card, and imaged easyiot. I followed (ie cut and paste) instructions on iot-playground.com/3-easyiot-server-installation .

My first snag is the easyiot directory was created in /home/pi/easyiot. Figure that out, changed directories to /home/pi/easyiot, then entered sudo mono EasyIoT.exe. Here is what I am seeing

pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-02-03T14:08:02.5019430+01:00 INFO System System started
03-02-2015-02-08-11 Web service started

Unhandled Exception:
System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0

What am I doing wrong?


It looks like your web port is not free. Are you using some other server on Raspberry?
If you have troubles manually installing server please use image.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #271 by trubel
Replied by trubel on topic Can't start easyiot.exe
I reformated the disk.
I imaged the blank disk with EasyIoT_server_v0_6.
logged in as pi/raspberry ok via putty
enabled spi
cd /home/pi/easyiot


login as: pi
pi@192.168.1.142's password:
Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 26 23:19:28 2015 from 192.168.1.5
pi@raspberrypi ~ $ sudo raspi-config
pi@raspberrypi ~ $ sudo mono EasyIoT.exe
Cannot open assembly 'EasyIoT.exe': No such file or directory.
pi@raspberrypi ~ $ cd /home/pi/easyiot
pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-02-03T15:43:05.2753900+01:00 INFO System System started
03-02-2015-03-43-14 Web service started

Unhandled Exception:
System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
pi@raspberrypi ~/easyiot $


?????

Please Log in or Create an account to join the conversation.

9 years 10 months ago #272 by EasyIoT
Replied by EasyIoT on topic Can't start easyiot.exe

trubel wrote: I reformated the disk.
I imaged the blank disk with EasyIoT_server_v0_6.
logged in as pi/raspberry ok via putty
enabled spi
cd /home/pi/easyiot


login as: pi
pi@192.168.1.142's password:
Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 26 23:19:28 2015 from 192.168.1.5
pi@raspberrypi ~ $ sudo raspi-config
pi@raspberrypi ~ $ sudo mono EasyIoT.exe
Cannot open assembly 'EasyIoT.exe': No such file or directory.
pi@raspberrypi ~ $ cd /home/pi/easyiot
pi@raspberrypi ~/easyiot $ sudo mono EasyIoT.exe
2015-02-03T15:43:05.2753900+01:00 INFO System System started
03-02-2015-03-43-14 Web service started

Unhandled Exception:
System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
pi@raspberrypi ~/easyiot $


?????


hmm, if you are using EasyIoT server image you do not need to do anything, because everything is already set up. EasyIoT server starts as service and you do not need to start in console mode. Actually you started second instance of EasyIoT server in console mode that's why you've got web port is busy. EasyIoT server already is running as service.

Please Log in or Create an account to join the conversation.

Time to create page: 0.229 seconds

Forum latest

  • No posts to display.