I may have messed up those commands. Try this to be sure.
sudo service octoprint stop
~/oprint/bin/pip install --upgrade --force-reinstall OctoPrint
sudo service octoprint start
I may have messed up those commands. Try this to be sure.
sudo service octoprint stop
~/oprint/bin/pip install --upgrade --force-reinstall OctoPrint
sudo service octoprint start
just to be super safe I added the no-cache-dir so it fetched all 'fresh' files.
~/oprint/bin/pip install --upgrade --force-reinstall --no-cache-dir OctoPrint
Unfortunately, It still only runs in safe mode...;(
Thanks!
-Doron
Log file :
octoprint.log (904.5 KB)
Have you tried disabling all the 3rd party plugins while booted in safe mode?
Yes. All of them have been removed.
Also this is how I get it to run safe mode
when in bin directory I run:
./octoprint serve --safe
| !setup = /home/pi/.octoprint/plugins/setup.pyc
Do exactly this:
sudo service octoprint stop
rm ~/.octoprint/plugins/setup.*
sudo service octoprint restart
It should run again. Please tell me what plugins you had installed prior to this happening - we just had another user run into a weird issues where a setup.py ended up in their plugins folder and I'd like to know how this happened.
Also, in your earlier log you have several "Address already in use" errors in your log there. If you run it from command line while it is already running as a service as stated in your last post, that will happen (it can't run on the same port the other instance is already running on). You always have to make sure that the service is shut down first before you run it from command:
sudo service octoprint stop
Alternatively, do not start it in safe mode from the command line but instead set the safe mode flag so it'll be started in safe mode next time and restart:
~/oprint/bin/octoprint safemode
sudo service octoprint restart
See also
As suggested I did the following verbatim :
sudo service octoprint stop
rm ~/.octoprint/plugins/setup.*
sudo service octoprint restart
That did the trick. It's now running again in normal mode.
after upgrade to 1.4.2, I was trying to install an update to the Bed Level Visualizer and it was failing multiple times. That left me in this 'safe only' lymbo.
Thanks !!!
Doron
was it failing or just taking forever to install? I've seen it take up to an hour to compile in python 2 on older devices.
good question. I did not know it can take this long.
I am trying it again now. Will report when it is done.
Your better off upgrading to python3, running the command to install missing dependencies sudo apt install libatlas3-base
and then install bed level visualizer. It takes minimal time to install that way because it doesn't have to compile.
failed again:
stalling plugin...
Installing plugin "Bed Level Visualizer" from https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip...
/home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install file:///tmp/tmpatjToP/OctoPrint-BedLevelVisualizer-master.zip --no-cache-dir
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /tmp/tmpatjToP/OctoPrint-BedLevelVisualizer-master.zip
Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from Bed-Visualizer==0.1.15) (1.4.2)
Collecting numpy<=1.19.2,>=1.16.0
Downloading numpy-1.16.6.zip (5.1 MB)
Requirement already satisfied: requests<3,>=2.23.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2.25.0)
Requirement already satisfied: pylru<2,>=1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.2.0)
Requirement already satisfied: Jinja2<3,>=2.11.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2.11.2)
Requirement already satisfied: Click<8,>=7.1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (7.1.2)
Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.1.0)
Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.1.1)
Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (3.1.1)
Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2.0)
Requirement already satisfied: PyYAML<6,>=5.3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (5.3.1)
Requirement already satisfied: futures<4,>=3.3; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (3.3.0)
Requirement already satisfied: tornado==5.1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (5.1.1)
Requirement already satisfied: filetype<2,>=1.0.7 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.0.7)
Requirement already satisfied: pyserial<4,>=3.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (3.4)
Requirement already satisfied: wrapt<2,>=1.12.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.12.1)
Requirement already satisfied: pkginfo<2,>=1.5.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.6.1)
Requirement already satisfied: flask<2,>=1.1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.1.2)
Requirement already satisfied: cachelib<1,>=0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.1.1)
Requirement already satisfied: future<1,>=0.18.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.18.2)
Requirement already satisfied: monotonic<2,>=1.5; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.5)
Requirement already satisfied: websocket-client<1,>=0.57 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.57.0)
Requirement already satisfied: netaddr<1,>=0.7.19 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.8.0)
Requirement already satisfied: sarge==0.1.5post0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.1.5.post0)
Requirement already satisfied: psutil<6,>=5.7 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (5.7.3)
Requirement already satisfied: blinker<2,>=1.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.4)
Requirement already satisfied: frozendict<2,>=1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.2)
Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.5.0)
Requirement already satisfied: regex!=2018.11.6 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2020.11.13)
Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.0.1)
Requirement already satisfied: rsa==4.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (4.0)
Requirement already satisfied: unidecode<0.05,>=0.04.14 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.4.21)
Requirement already satisfied: OctoPrint-FirmwareCheck>=2020.06.22 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2020.9.23)
Requirement already satisfied: sentry-sdk<1,>=0.15.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.19.3)
Requirement already satisfied: feedparser<6,>=5.2.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (5.2.1)
Requirement already satisfied: watchdog<1,>=0.10.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.10.3)
Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.0.0)
Requirement already satisfied: scandir<2,>=1.10; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.10.0)
Requirement already satisfied: netifaces<1,>=0.10.9 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.10.9)
Requirement already satisfied: typing<4,>=3.7.4.1; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (3.7.4.3)
Requirement already satisfied: OctoPrint-FileCheck>=2020.07.06 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2020.8.7)
Requirement already satisfied: emoji<1,>=0.5.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (0.6.0)
Requirement already satisfied: semantic-version<3,>=2.8.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (2.8.5)
Requirement already satisfied: chainmap<2,>=1.0.3; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->Bed-Visualizer==0.1.15) (1.0.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/pi/oprint/lib/python2.7/site-packages (from requests<3,>=2.23.0->OctoPrint->Bed-Visualizer==0.1.15) (2020.11.8)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/pi/oprint/lib/python2.7/site-packages (from requests<3,>=2.23.0->OctoPrint->Bed-Visualizer==0.1.15) (3.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/pi/oprint/lib/python2.7/site-packages (from requests<3,>=2.23.0->OctoPrint->Bed-Visualizer==0.1.15) (1.26.2)
Requirement already satisfied: idna<3,>=2.5 in /home/pi/oprint/lib/python2.7/site-packages (from requests<3,>=2.23.0->OctoPrint->Bed-Visualizer==0.1.15) (2.10)
Requirement already satisfied: setuptools>=36 in /home/pi/oprint/lib/python2.7/site-packages (from markdown<3.2,>=3.1->OctoPrint->Bed-Visualizer==0.1.15) (44.1.1)
Requirement already satisfied: webassets>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Assets<3,>=2.0->OctoPrint->Bed-Visualizer==0.1.15) (2.0)
Requirement already satisfied: singledispatch in /home/pi/oprint/lib/python2.7/site-packages (from tornado==5.1.1->OctoPrint->Bed-Visualizer==0.1.15) (3.4.0.3)
Requirement already satisfied: backports-abc>=0.4 in /home/pi/oprint/lib/python2.7/site-packages (from tornado==5.1.1->OctoPrint->Bed-Visualizer==0.1.15) (0.5)
Requirement already satisfied: six in /home/pi/oprint/lib/python2.7/site-packages (from websocket-client<1,>=0.57->OctoPrint->Bed-Visualizer==0.1.15) (1.15.0)
Requirement already satisfied: importlib-resources; python_version < "3.7" in /home/pi/oprint/lib/python2.7/site-packages (from netaddr<1,>=0.7.19->OctoPrint->Bed-Visualizer==0.1.15) (3.3.0)
Requirement already satisfied: pyasn1>=0.1.3 in /home/pi/oprint/lib/python2.7/site-packages (from rsa==4.0->OctoPrint->Bed-Visualizer==0.1.15) (0.4.8)
Requirement already satisfied: pathtools>=0.1.1 in /home/pi/oprint/lib/python2.7/site-packages (from watchdog<1,>=0.10.2->OctoPrint->Bed-Visualizer==0.1.15) (0.1.2)
Requirement already satisfied: Babel>=2.3 in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint->Bed-Visualizer==0.1.15) (2.9.0)
Requirement already satisfied: pytz in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint->Bed-Visualizer==0.1.15) (2020.4)
Requirement already satisfied: zipp>=0.4; python_version < "3.8" in /home/pi/oprint/lib/python2.7/site-packages (from importlib-resources; python_version < "3.7"->netaddr<1,>=0.7.19->OctoPrint->Bed-Visualizer==0.1.15) (1.2.0)
Requirement already satisfied: contextlib2; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from importlib-resources; python_version < "3.7"->netaddr<1,>=0.7.19->OctoPrint->Bed-Visualizer==0.1.15) (0.6.0.post1)
Requirement already satisfied: pathlib2; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from importlib-resources; python_version < "3.7"->netaddr<1,>=0.7.19->OctoPrint->Bed-Visualizer==0.1.15) (2.3.5)
Building wheels for collected packages: Bed-Visualizer, numpy
Building wheel for Bed-Visualizer (setup.py): started
Building wheel for Bed-Visualizer (setup.py): finished with status 'done'
Created wheel for Bed-Visualizer: filename=Bed_Visualizer-0.1.15-py2-none-any.whl size=2551301 sha256=17a223ec06ca65253dc22fc60b78ccaefb4a0387b4a538dfb57208faf184363e
Stored in directory: /tmp/pip-ephem-wheel-cache-lv9Rtz/wheels/15/fc/71/ab1e96c9b7098dea26f0a887943ba32eb7bef8e6386639fa21
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Error!
Could not install plugin, unknown error, please consult octoprint.log for details
What model pi? I've never seen it actually error out before. If you don't want to upgrade to python 3 then you could manually install numpy outside of the plugin manager. and then install the plugin.
~/oprint/bin/pip install numpy
Ok. Will try and report back. (It's a Prusa mk3 with Pi zero inside)
not recommended...
it worked great for a year and a half till the last 'upgrade'...
You might want to consider upgrading to python 3. It's more performant and might work better on that severely under-powered device.
Seems like CC1 is doing all the 'heavy lifting'...
it's been consuming all the CPU for the last 1/2 hour.
pi@octopi : ~ $ ~/oprint/bin/pip install numpy
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting numpy
Using cached numpy-1.16.6.zip (5.1 MB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py) ... done
Created wheel for numpy: filename=numpy-1.16.6-cp27-cp27mu-linux_armv6l.whl size=9156284 sha256=4774206ef53c8259b17cdd7eaa53b6c6667ba999c79212e5118d97a04e81badc
Stored in directory: /home/pi/.cache/pip/wheels/fe/49/d9/dbd8037d1f7b1672ebcdba0c75f1b7000d9e888a33af294c35
Successfully built numpy
Installing collected packages: numpy
Successfully installed numpy-1.16.6
looks like numpy install was successful.
now I will try again the bed visualization plug-in install from the GUI.
Glad you finally got it all worked out. Yeah, the compile time on a zero is really long. I did test it once.