feelfreelinux / octo4a

Use your old Android device as an OctoPrint server.
GNU Affero General Public License v3.0
1.5k stars 139 forks source link

OctoPrint 1.9.x --> 1.10 Not Updating #474

Closed atkeeler closed 1 month ago

atkeeler commented 2 months ago

I've been unable to update OctoPrint on Octo4a from 1.9 to 1.10, continues to give me an error message. When looking into it, I could that it has something to do with Python. I tried to update after clearing the app data to see if that would help, but it gave me a "FATAL ERROR" message when it was installing the dependencies onto my Samsung Galaxy S20 FE. Error log is attached as an text file. Octo4a Log.txt

darkzeroat commented 2 months ago

same issue here with fire hd 8 plus any help is appreciated <3

hounslg commented 2 months ago

Same here, updating a Pixel which was running 1.9.

Same error as the log file already attached.

alufers commented 2 months ago

Will work on this tomorrow

sm3g commented 2 months ago

Also failing for me, updating a Samsung Galaxy S8. I'm getting a different error regarding ethtool.h being missing. I updated pip just prior to attempting to update OctoPrint, since the release notes mentioned that.

"psutil/_psutil_linux.c:13:10: fatal error: linux/ethtool.h: No such file or directory" plugin_softwareupdate_console.log

Mario1968 commented 2 months ago

Will work on this tomorrow

Hi alufers, is possible for now (as a workaround) to force download only Octoprint 1.9.x instead of the last Octoprint? TYIA Mario

feelfreelinux commented 2 months ago

Just released octo4a 1.2.6 which should resolve this issue :)

FrogoYT commented 2 months ago

The 1.2.6 didn't work for me, even in safe mode

Mario1968 commented 2 months ago

Just released octo4a 1.2.6 which should resolve this issue :)

Thank you! it worked for me (Sasung S8 unmodified)

hounslg commented 2 months ago

Just updated my pixel 3 and all working fine.

Thank you for the speed update.

joejtrsmoe commented 2 months ago

This didn't help with my s7. Similar issues to when I first set it up. Thanks though. Love octo4a.

remolyy commented 2 months ago

Didn't help on Samsung s10+

remolyy commented 2 months ago

Error log.txt psutil not installed Thank you for all this work. Hope you can fix this issue soon

sACLeFR commented 1 month ago

Hello, updated Octo4a to 1.2.6 but still unable to update Octoprint due to psutil also

farfromuman commented 1 month ago

I was not able to upgrade due to errors during the upgrade with 1.2.6. I made a backup in OctoPrint 1.9, uninstalled everything and restored the backup once 1.10 was freshly installed it even downloaded all my plugins including psutil.

sACLeFR commented 1 month ago

I was not able to upgrade due to errors during the upgrade with 1.2.6. I made a backup in OctoPrint 1.9, uninstalled everything and restored the backup once 1.10 was freshly installed it even downloaded all my plugins including psutil.

It worked ! Thank you !

zaventh commented 1 month ago

See my comment here to solve this manually https://github.com/OctoPrint/OctoPrint/issues/4998#issuecomment-2098983838

sv0o commented 1 month ago

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

I was excited to try this, but I think I'm now chasing my own tail:

apk del is saying 'no such package' for ps3-psutil or for psutil

the updater in octoprint and a manual pip3 install keeps saying

Attempting uninstall: psutil Found existing installation: psutil 5.9.4 ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

so I tried: pip3 install --ignore-installed psutil

_Collecting psutil Using cached psutil-5.9.8-cp310-abi3-linuxaarch64.whl Installing collected packages: psutil ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. octoprint 1.9.3 requires zeroconf==0.39.4, but you have zeroconf 0.132.2 which is incompatible. Successfully installed psutil-5.9.4

Like you, I didn't want to wipe out everything and start fresh, but that's looking like the only option. Or is there a way to uninstall psutil using the same method that originally installed it? It was a couple of octo4a versions ago I think.

zaventh commented 1 month ago

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

I was excited to try this, but I think I'm now chasing my own tail:

apk del is saying 'no such package' for ps3-psutil or for psutil

the updater in octoprint and a manual pip3 install keeps saying

Attempting uninstall: psutil Found existing installation: psutil 5.9.4 ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

so I tried: pip3 install --ignore-installed psutil

_Collecting psutil Using cached psutil-5.9.8-cp310-abi3-linuxaarch64.whl Installing collected packages: psutil ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. octoprint 1.9.3 requires zeroconf==0.39.4, but you have zeroconf 0.132.2 which is incompatible. Successfully installed psutil-5.9.4

Like you, I didn't want to wipe out everything and start fresh, but that's looking like the only option. Or is there a way to uninstall psutil using the same method that originally installed it? It was a couple of octo4a versions ago I think.

Sorry, typo. It's py3-psutil not ps3-psutil so apk del py3-psutil

sv0o commented 1 month ago

I finally made it through the update process, thanks. I'll try to do some test prints tonight or tomorrow.

Oh well. the upgrade completes but it won't show logs or uploaded files. I'm guessing it's got something to do with this:

🐙 [2024-05-09 21](tel:2024-05-09 21):06:03,344 - octoprint - ERROR - Exception on /plugin/logging/ [GET] 🐙 Traceback (most recent call last): 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app 🐙 response = self.full_dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request 🐙 rv = self.handle_user_exception(e) 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request 🐙 rv = self.dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request 🐙 return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1645, in decorated_view 🐙 return func(*args, *kwargs) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/access/permissions.py", line 175, in _decorated 🐙 rv = f(args, kw) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 46, in get_all 🐙 free, total = self._get_usage() 🐙 File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 135, in _get_usage 🐙 usage = psutil.disk_usage(settings().getBaseFolder("logs", check_writable=False)) 🐙 AttributeError: module 'psutil' has no attribute 'disk_usage' 🐙 [2024-05-09 21](tel:2024-05-09 21):06:06,106 - octoprint - ERROR - Exception on /api/files [GET] 🐙 Traceback (most recent call last): 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app 🐙 response = self.full_dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request 🐙 rv = self.handle_user_exception(e) 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request 🐙 rv = self.dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request 🐙 return self.ensure_sync(self.view_functions[rule.endpoint])(viewargs) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/vendor/flaskprincipal.py", line 196, in _decorated 🐙 rv = f(*args, *kw) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1369, in decorated_function 🐙 response = f(args, kwargs) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/server/api/files.py", line 161, in readGcodeFiles 🐙 usage = psutil.disk_usage(settings().getBaseFolder("uploads", check_writable=False)) 🐙 AttributeError: module 'psutil' has no attribute 'disk_usage' 🐙 [2024-05-09 21](tel:2024-05-09 21):06:06,826 - octoprint.plugins.tracking - INFO - Sent tracking event webui_load, payload: {'browser_name': 'Chrome', 'browser_version': '124.0.0.0', 'os_name': 'Windows', 'os_version': '10'} 🐙 [2024-05-09 21](tel:2024-05-09 21):06:30,705 - octoprint - ERROR - Exception on /plugin/logging/ [GET] 🐙 Traceback (most recent call last): 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 2529, in wsgi_app 🐙 response = self.full_dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request 🐙 rv = self.handle_user_exception(e) 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request 🐙 rv = self.dispatch_request() 🐙 File "/usr/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request 🐙 return self.ensure_sync(self.view_functions[rule.endpoint])(view_args) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/server/util/flask.py", line 1645, in decorated_view 🐙 return func(*args, *kwargs) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/access/permissions.py", line 175, in _decorated 🐙 rv = f(args, kw) 🐙 File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 46, in get_all 🐙 free, total = self._get_usage() 🐙 File "/usr/lib/python3.10/site-packages/octoprint/plugins/logging/init.py", line 135, in _get_usage 🐙 usage = psutil.disk_usage(settings().getBaseFolder("logs", check_writable=False)) 🐙 AttributeError: module 'psutil' has no attribute 'disk_usage'

joejtrsmoe commented 1 month ago

zaventh manual workaround worked for me. Samsung galaxy s7.

Mario1968 commented 1 month ago

See my comment here to solve this manually OctoPrint/OctoPrint#4998 (comment)

Hi, Thank you for this fix, I was able to update to Octoprint 1.10 with the new APK 1.2.6 but now with the new release 1.10.1 the psutil install/uninstall problem is still there, but with your suggestion I finally was able to update to 1.10.1. Thank You again.

feelfreelinux commented 1 month ago

Released https://github.com/feelfreelinux/octo4a/releases/tag/2.0.0 which should resolve this issue :)