2019 Apr 12, 11:20 PM
Hi,
I have followed the directions to start the service automatically.
However, after reboot the status is this:
pi@irrigate:~ $ systemctl status sip
● sip.service - SIP
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-04-13 08:59:06 AEST; 1min 8s ago
Process: 388 ExecStart=/usr/bin/python -u /home/pi/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 388 (code=exited, status=1/FAILURE)
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/sip.py", line 202, in run
Apr 13 08:59:06 irrigate sip[388]: return web.httpserver.runsimple(func, (ip, port))
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/web/httpserver.py", line 157, in runsimple
Apr 13 08:59:06 irrigate sip[388]: server.start()
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/web/wsgiserver/__init__.py", line 1753, in start
Apr 13 08:59:06 irrigate sip[388]: raise socket.error(msg)
Apr 13 08:59:06 irrigate sip[388]: socket.error: No socket could be created
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Unit entered failed state.
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Failed with result 'exit-code'.
If I do this then all ok:
pi@irrigate:~ $ sudo systemctl start sip
pi@irrigate:~ $ systemctl status sip
● sip.service - SIP
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-04-13 09:08:40 AEST; 5s ago
Main PID: 577 (python)
CGroup: /system.slice/sip.service
└─577 /usr/bin/python -u /home/pi/SIP/sip.py
Apr 13 09:08:41 irrigate sip[577]: plugin_manager
Apr 13 09:08:41 irrigate sip[577]: relay_board
Apr 13 09:08:41 irrigate sip[577]: signaling_examples
Apr 13 09:08:41 irrigate sip[577]: system_update
Apr 13 09:08:41 irrigate sip[577]: http://10.0.0.10:80/Starting timing loop
Apr 13 09:08:41 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:41] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:42 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:42] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:43 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:43] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:44 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:44] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:45 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:45] "HTTP/1.1 GET /rss" - 200 OK
pi@irrigate:~ $
Any help appreciated
I have followed the directions to start the service automatically.
However, after reboot the status is this:
pi@irrigate:~ $ systemctl status sip
● sip.service - SIP
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-04-13 08:59:06 AEST; 1min 8s ago
Process: 388 ExecStart=/usr/bin/python -u /home/pi/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 388 (code=exited, status=1/FAILURE)
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/sip.py", line 202, in run
Apr 13 08:59:06 irrigate sip[388]: return web.httpserver.runsimple(func, (ip, port))
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/web/httpserver.py", line 157, in runsimple
Apr 13 08:59:06 irrigate sip[388]: server.start()
Apr 13 08:59:06 irrigate sip[388]: File "/home/pi/SIP/web/wsgiserver/__init__.py", line 1753, in start
Apr 13 08:59:06 irrigate sip[388]: raise socket.error(msg)
Apr 13 08:59:06 irrigate sip[388]: socket.error: No socket could be created
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Unit entered failed state.
Apr 13 08:59:06 irrigate systemd[1]: sip.service: Failed with result 'exit-code'.
If I do this then all ok:
pi@irrigate:~ $ sudo systemctl start sip
pi@irrigate:~ $ systemctl status sip
● sip.service - SIP
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-04-13 09:08:40 AEST; 5s ago
Main PID: 577 (python)
CGroup: /system.slice/sip.service
└─577 /usr/bin/python -u /home/pi/SIP/sip.py
Apr 13 09:08:41 irrigate sip[577]: plugin_manager
Apr 13 09:08:41 irrigate sip[577]: relay_board
Apr 13 09:08:41 irrigate sip[577]: signaling_examples
Apr 13 09:08:41 irrigate sip[577]: system_update
Apr 13 09:08:41 irrigate sip[577]: http://10.0.0.10:80/Starting timing loop
Apr 13 09:08:41 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:41] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:42 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:42] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:43 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:43] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:44 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:44] "HTTP/1.1 GET /rss" - 200 OK
Apr 13 09:08:45 irrigate sip[577]: 10.0.0.155:5688 - - [13/Apr/2019 09:08:45] "HTTP/1.1 GET /rss" - 200 OK
pi@irrigate:~ $
Any help appreciated