Posts: 3
Threads: 2
Joined: Aug 2023
Reputation:
0
I must be pretty stupid
I used the curl installation method on a freshly minted rpi os 64-bit lite. I did install python 11.4. also no issues.
SIP seem to install OK. but the service is not starting with the following output:
Code: daniel@unode-irrigation:~ $ systemctl status sip
● sip.service - SIP for Python3
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-08-26 15:24:39 AEST; 1min 6s ago
Process: 492 ExecStart=/usr/bin/python3 -u /home/daniel/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 492 (code=exited, status=1/FAILURE)
CPU: 1.274s
Aug 26 15:24:39 unode-irrigation sip[492]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 26 15:24:39 unode-irrigation sip[492]: File "/home/daniel/SIP/web/httpserver.py", line 167, in runsimple
Aug 26 15:24:39 unode-irrigation sip[492]: server = WSGIServer(server_address, func)
Aug 26 15:24:39 unode-irrigation sip[492]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 26 15:24:39 unode-irrigation sip[492]: File "/home/daniel/SIP/web/httpserver.py", line 188, in WSGIServer
Aug 26 15:24:39 unode-irrigation sip[492]: from cheroot import wsgi
Aug 26 15:24:39 unode-irrigation sip[492]: ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Failed with result 'exit-code'.
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Consumed 1.274s CPU time.
I has ssh access without issue.
sorry to waste your time
daniel
Posts: 25
Threads: 4
Joined: Jan 2017
Reputation:
1
(2023 Aug 26, 05:50 AM)greenembrace Wrote: I must be pretty stupid
I used the curl installation method on a freshly minted rpi os 64-bit lite. I did install python 11.4. also no issues.
SIP seem to install OK. but the service is not starting with the following output:
Code: daniel@unode-irrigation:~ $ systemctl status sip
● sip.service - SIP for Python3
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-08-26 15:24:39 AEST; 1min 6s ago
Process: 492 ExecStart=/usr/bin/python3 -u /home/daniel/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 492 (code=exited, status=1/FAILURE)
CPU: 1.274s
Aug 26 15:24:39 unode-irrigation sip[492]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 26 15:24:39 unode-irrigation sip[492]: File "/home/daniel/SIP/web/httpserver.py", line 167, in runsimple
Aug 26 15:24:39 unode-irrigation sip[492]: server = WSGIServer(server_address, func)
Aug 26 15:24:39 unode-irrigation sip[492]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aug 26 15:24:39 unode-irrigation sip[492]: File "/home/daniel/SIP/web/httpserver.py", line 188, in WSGIServer
Aug 26 15:24:39 unode-irrigation sip[492]: from cheroot import wsgi
Aug 26 15:24:39 unode-irrigation sip[492]: ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Failed with result 'exit-code'.
Aug 26 15:24:39 unode-irrigation systemd[1]: sip.service: Consumed 1.274s CPU time.
I has ssh access without issue.
sorry to waste your time
daniel
Hi Daniel,
Getting similar issue on new build 32 bit full RPi.....either method fails to proceed.
on one of my SIPs running system update it has many lines of updates mentioned and a recent date for the updated (this month) and one of the lines said fresh install......what follows is what I got when I did that...
===============================================
Fresh RPI build and SIP install on 26/8/23 - fails to run.
apt-get update and upgrade not shown, but run prior to this output..
pi@SIPpi:~ $ git clone https://github.com/Dan-in-CA/SIP
Cloning into 'SIP'...
remote: Enumerating objects: 6053, done.
remote: Counting objects: 100% (792/792), done.
remote: Compressing objects: 100% (361/361), done.
remote: Total 6053 (delta 447), reused 740 (delta 408), pack-reused 5261
Receiving objects: 100% (6053/6053), 5.23 MiB | 5.41 MiB/s, done.
Resolving deltas: 100% (3562/3562), done.
pi@SIPpi:~ $ cd SIP
pi@SIPpi:~/SIP $ sudo python sip.py
plugins loaded:
mobile_app
plugin_manager
system_update
Starting timing loop
Traceback (most recent call last):
File "/home/pi/SIP/sip.py", line 331, in <module>
app.run()
File "/home/pi/SIP/sip.py", line 250, in run
return web.httpserver.runsimple(func, (ip, port))
File "/home/pi/SIP/web/httpserver.py", line 167, in runsimple
server = WSGIServer(server_address, func)
File "/home/pi/SIP/web/httpserver.py", line 188, in WSGIServer
from cheroot import wsgi
ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)
pi@SIPpi:~/SIP $
================================================================================
then rebooted and rm'd the SIP folder and tried the scripted method using
curl -sSL https://gitlab.com/seventer/sip_setup/-/...p_setup.sh | sudo bash
I selected in the menu to install to /opt as it previously (now shown here) failed on the pi directory using script..
here is the output of that install.........
pi@sprinklers:~ $ curl -sSL https://gitlab.com/seventer/sip_setup/-/...p_setup.sh | sudo bash
installing in /opt
===== Updating system =====
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0 libva-wayland2 libxfce4util-bin libxfce4util-common
libxfce4util7 libxfconf-0-2 lxplug-volume pimixer point-rpi python-colorzero rpi-eeprom-images xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
===== Installing git =====
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.20.1-2+deb10u8).
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0 libva-wayland2 libxfce4util-bin libxfce4util-common
libxfce4util7 libxfconf-0-2 lxplug-volume pimixer point-rpi python-colorzero rpi-eeprom-images xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
===== Installing i2c requirements =====
Reading package lists... Done
Building dependency tree
Reading state information... Done
i2c-tools is already the newest version (4.1-1).
python3-smbus is already the newest version (4.1-1).
The following packages were automatically installed and are no longer required:
alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0 libva-wayland2 libxfce4util-bin libxfce4util-common
libxfce4util7 libxfconf-0-2 lxplug-volume pimixer point-rpi python-colorzero rpi-eeprom-images xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
===== Enabling i2c interface =====
===== adding user pi to hardware groups =====
===== Installing SIP =====
Cloning into 'SIP'...
remote: Enumerating objects: 6053, done.
remote: Counting objects: 100% (792/792), done.
remote: Compressing objects: 100% (361/361), done.
remote: Total 6053 (delta 447), reused 740 (delta 408), pack-reused 5261
Receiving objects: 100% (6053/6053), 5.23 MiB | 151.00 KiB/s, done.
Resolving deltas: 100% (3562/3562), done.
===== Creating and installing SystemD service =====
===== Installing log2ram =====
--2023-08-26 16:20:40-- https://github.com/azlux/log2ram/archive/master.tar.gz
Resolving github.com (github.com)... 20.248.137.48
Connecting to github.com (github.com)|20.248.137.48|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/azlux/log2ra...ads/master [following]
--2023-08-26 16:20:40-- https://codeload.github.com/azlux/log2ra...ads/master
Resolving codeload.github.com (codeload.github.com)... 20.248.137.55
Connecting to codeload.github.com (codeload.github.com)|20.248.137.55|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘log2ram.tar.gz’
log2ram.tar.gz [ <=> ] 9.02K --.-KB/s in 0.1s
2023-08-26 16:20:41 (91.8 KB/s) - ‘log2ram.tar.gz’ saved [9234]
ERROR: log2ram service is still running. Please run "sudo systemctl stop log2ram" to stop it.
===== Increasing logsize to 100M =====
===== Done installing SIP and requirements. Please check the output above and reboot the Pi =====
Restarting.....
login as:
No Web interface and appears not to be running.
pi@sprinklers:/opt $ sudo systemctl status sip
● sip.service - SIP for Python3
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-08-26 16:28:28 AEST; 5s ago
Process: 1344 ExecStart=/usr/bin/python3 -u /opt/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 1344 (code=exited, status=1/FAILURE)
Aug 26 16:28:28 sprinklers sip[1344]: app.run()
Aug 26 16:28:28 sprinklers sip[1344]: File "/opt/SIP/sip.py", line 250, in run
Aug 26 16:28:28 sprinklers sip[1344]: return web.httpserver.runsimple(func, (ip, port))
Aug 26 16:28:28 sprinklers sip[1344]: File "/opt/SIP/web/httpserver.py", line 167, in runsimple
Aug 26 16:28:28 sprinklers sip[1344]: server = WSGIServer(server_address, func)
Aug 26 16:28:28 sprinklers sip[1344]: File "/opt/SIP/web/httpserver.py", line 188, in WSGIServer
Aug 26 16:28:28 sprinklers sip[1344]: from cheroot import wsgi
Aug 26 16:28:28 sprinklers sip[1344]: ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)
Aug 26 16:28:28 sprinklers systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Aug 26 16:28:28 sprinklers systemd[1]: sip.service: Failed with result 'exit-code'.
pi@sprinklers:/opt $
===================================================
I'm stumped...
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
It is probably a problem with cheroot.
I will do some testing.
Dan
<p><br></p>
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
It was a problem with the cheroot directory structure.
It is fixed now. SIP version 5.05 should load properly.
Dan
<p><br></p>
Posts: 3
Threads: 2
Joined: Aug 2023
Reputation:
0
Cheers Dan,
looking forward to many hours of fun
kind regards
daniel
Posts: 25
Threads: 4
Joined: Jan 2017
Reputation:
1
(2023 Aug 26, 02:46 PM)dan Wrote: It was a problem with the cheroot directory structure.
It is fixed now. SIP version 5.05 should load properly.
Dan
Many thanks Dan,
This is now fixed for me on version 5.0.5 (23-08-26)
Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
Hi Dan,
I think I've struck the same issue but upgrading hasn't helped. First I tried a git pull and then the update script, both of which appeared to complete successfully but I still can't get to the Web GUI.
I'm getting this for the service:
xxxx@raspberrypi:~ $ systemctl status sip
● sip.service - SIP for Python3
Loaded: loaded (/etc/systemd/system/sip.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2023-10-08 12:33:37 NZDT; 4h 44min ago
Process: 392 ExecStart=/usr/bin/python3 -u /home/pi/SIP/sip.py (code=exited, status=1/FAILURE)
Main PID: 392 (code=exited, status=1/FAILURE)
Oct 08 12:33:35 raspberrypi sip[392]: File "/home/pi/SIP/web/httpserver.py", line 167, in runsimple
Oct 08 12:33:36 raspberrypi sip[392]: server = WSGIServer(server_address, func)
Oct 08 12:33:36 raspberrypi sip[392]: File "/home/pi/SIP/web/httpserver.py", line 188, in WSGIServer
Oct 08 12:33:36 raspberrypi sip[392]: from cheroot import wsgi
Oct 08 12:33:36 raspberrypi sip[392]: File "/home/pi/SIP/cheroot/wsgi.py", line 33, in <module>
Oct 08 12:33:36 raspberrypi sip[392]: import six
Oct 08 12:33:36 raspberrypi sip[392]: ImportError: bad magic number in 'six': b'\x03\xf3\r\n'
Oct 08 12:33:36 raspberrypi sip[392]: MQTT publish DOWN
Oct 08 12:33:37 raspberrypi systemd[1]: sip.service: Main process exited, code=exited, status=1/FAILURE
Oct 08 12:33:37 raspberrypi systemd[1]: sip.service: Failed with result 'exit-code'.
xxxx@raspberrypi:~ $
Any ideas what I should try next? I took a backup of the whole SIP folder before trying the fixes above.
Cheers
David
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
Try logging into the SIP folder and starting SIP with
This will probably not get SIP running but it may provide more information about the problem.
Dan
<p><br></p>
Posts: 7
Threads: 1
Joined: Oct 2023
Reputation:
0
Not sure if this would help, but I recently did a full reformat of my RPis with the lastest systems just like you did. In addition to the Step-by-step installation instructions, I had to add:
pip install six
Might be worth giving that a try to see if it solves the issue.
-Jonathan
Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
2023 Oct 09, 04:43 AM
(This post was last modified: 2023 Oct 09, 04:44 AM by DavidCNZ.)
(2023 Oct 08, 02:42 PM)dan Wrote: Try logging into the SIP folder and starting SIP with
This will probably not get SIP running but it may provide more information about the problem.
Dan
xxxx@raspberrypi:~/SIP $ sudo python sip.py
Traceback (most recent call last):
File "sip.py", line 21, in <module>
import gv
File "/home/pi/SIP/gv.py", line 106, in <module>
from helpers import load_programs, station_names, days_since_epoch
File "/home/pi/SIP/helpers.py", line 336
return f"{h:d}:{m:02d}:{s:02d}"
^
SyntaxError: invalid syntax
David
(2023 Oct 08, 11:58 PM)jonathan Wrote: Not sure if this would help, but I recently did a full reformat of my RPis with the lastest systems just like you did. In addition to the Step-by-step installation instructions, I had to add:
pip install six
Might be worth giving that a try to see if it solves the issue.
-Jonathan
Thanks Jonathan, I tried as you suggest but it is already installed.
|