Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot run sip.py
#1
Trying to run sip.py.  Install appeared to be fine.  here is the terminal output.

sudo python sip.py
ALARM from Example_Sender!: Just and example!
plugins loaded:
  mobile_app
  plugin_manager
  signaling_examples
  system_update
zones changed
[0, 0, 0, 0, 0, 0, 0, 0]
 Starting timing loop

http://0.0.0.0:80/
Traceback (most recent call last):
  File "sip.py", line 240, in <module>
    app.run()
  File "sip.py", line 186, in run
    return web.httpserver.runsimple(func, ('0.0.0.0', port))
  File "/home/pi/SIP/web/httpserver.py", line 157, in runsimple
    server.start()
  File "/home/pi/SIP/web/wsgiserver/__init__.py", line 1753, in start
    raise socket.error(msg)
socket.error: No socket could be created

I have tried different ports etc. but I always get this error.  Running on a PI2 with noobs raspbian.
Reply
#2
The error that "No socket could be created" indicates that some program (server) is using port 80.

If you have tried different ports it may be that another copy of SIP is already running. If you have set up SIP to start automatically at boot you will need to use the command

Code:
systemctl stop sip
Then you should be able to start SIP from the command line.

You can also use the command
Code:
systemctl status sip


to check if SIP is running.

Dan
Reply
#3
(2017 Apr 14, 02:33 PM)dan Wrote: The error that "No socket could be created" indicates that some program (server) is using port 80.

If you have tried different ports it may be that another copy of SIP is already running. If you have set up SIP to start automatically at boot you will need to use the command

Code:
systemctl stop sip
Then you should be able to start SIP from the command line.

You can also use the command
Code:
systemctl status sip


to check if SIP is running.

Dan

Thanks for the reply.  I ran these and the system says it is not running.  I am using VNC to access the pi as it is headless.
Reply
#4
Tried it on a pi3 same results.
Reply
#5
What happens of you try to access the Pi from a browser?
Are you able to bring up any web page?

I just tried cloning a fresh copy of SIP from GitHub and there was no problem starting it.

Dan
Reply
#6
It looks like VNC is causing the problem.

I just installed VNC server on my test rig and got the same error after connecting to the Pi before starting SIP from the command line.

A couple of solutions:
1. If you are on Windows you can use putty to access the Pi command line headless.

2. set up SIP to start automatically at boot as described in the SIP documentation wiki:
https://github.com/Dan-in-CA/SIP/wiki/Installation

Then after a reboot you should be able to access SIP's web UI from a browser.

It looks like you will still be able to connect with VNC when SIP is already running.

Dan
Reply
#7
hey Dan I am also experiencing same problem. Can you help me to fix it?
Reply
#8
The SIP wiki provides detailed information about set up and usage:
https://github.com/Dan-in-CA/SIP/wiki
Reply
#9
(2017 Aug 27, 05:15 PM)dan Wrote: The SIP wiki provides detailed information about set up and usage:
https://github.com/Dan-in-CA/SIP/wiki

I have gone through it but I am not able to come up with the web page of SIP. Can you help me fix it?
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)