Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OctoPrint won't start #39

Open
LorenzoBonelli0102 opened this issue Dec 27, 2022 · 4 comments
Open

OctoPrint won't start #39

LorenzoBonelli0102 opened this issue Dec 27, 2022 · 4 comments

Comments

@LorenzoBonelli0102
Copy link

Hi, I'm reporting this issue after two days of trying to make this work.
I have tried to format and reinstall OpenWrt multiple times but after running the second script and rebooting it gets stuck with the same error every time.
This is the logread so maybe someone can figure out what's going on.

Tue Dec 27 12:32:01 2022 daemon.err octoprint[3049]: Could not initialize settings manager: (urllib3 2.0.0a2 (/usr/lib/python3.10/site-packages/urllib3-2.0.0a2-py3.10.egg), Requirement.parse('urllib3<1.27,>=1.21.1'), {'requests'})

Tue Dec 27 12:32:01 2022 daemon.err octoprint[3049]: There was a fatal error starting up OctoPrint.

Tue Dec 27 12:32:03 2022 daemon.info procd: Instance octoprint::instance1 s in a crash loop 6 crashes, 40 seconds since last crash

@ihrapsa
Copy link
Owner

ihrapsa commented Dec 27, 2022

Hi, this has been reported before. Check #36

@markhicken
Copy link

markhicken commented Dec 28, 2022

It has been reported before, but I am still running into this issue after a clean install and the previous suggested solution didn't help.

Running OpenWrt SNAPSHOT r20027-586c2426d9 from the releases page.

@b4ng4r4ng
Copy link

@markhicken, @LorenzoBonelli0102
I also encountered the urllib3 issue (#36) and this is exactly what worked for me:

pip uninstall urllib3
pip install -Iv urllib3==1.26.11
opkg update && opkg install python3-requests
cd /root/OctoPrint-1.8.4
python setup.py install

Sometime last week there was an issue with the OpenWrt snapshot repository for this target architecture. There was a missing package which caused python3-cffi not to install correctly. (#37 (comment))
So, if you've been fighting with these issues since last week (like me), you might want to try the following instead:

pip uninstall urllib3
pip install -Iv urllib3==1.26.11
opkg update
opkg install python3-requests
opkg install python3-cffi
cd /root/OctoPrint-1.8.4
python setup.py install

@markhicken
Copy link

markhicken commented Dec 29, 2022

I started from scratch and for whatever reason, it didn't automatically add my micro sd card to the /overlay which meant that I would run out of space during the install script. I was hacking around with the OpenWrt UI under System > Mount Points and finally got that part working.

After that I ran the install script and ended up with the urllib3 issue so I tried your first set of commands above followed by a reboot. That got me up and running! Thanks @b4ng4r4ng!

Maybe we should update the install script to account for this, or document it in the install instructions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants