feelfreelinux / octo4a

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

Installation corrupted #326

Closed zdog90210 closed 1 year ago

zdog90210 commented 1 year ago

I have tried as many different fixes I could think of including 3 different phones and one tablet as well as upgrading and downgrading my pixel 2 xl to see if various android versions were the culprit no luck every time I install it gives me the installation corrupted. I have tried all versions and the only working one is the 0.0.5 release none of the main releases work. I have used the app flawlessly for months prior to updating my phone and accidentally formatted my user data. I have tried on both rooted and unrooted phones and no luck. is there any way to chose the install version of octoprint to try if that is the error. I am not sure what logs I can attach as the app crashes after installation.

sneedger commented 1 year ago

Remote web terminal doesn't work either on Android 11, what version of Android are you running?

Il mar 24 gen 2023, 23:20 BelowAvgTico @.***> ha scritto:

Was facing the same issue and here is how I solved:

  1. in the app, go do Extensions and enable Remote Web Terminal. Connect using a browser and use root/octoprint as user/password

  2. now execute the steps mentioned in the article.

Hello All, A complete Noob here, trying to make Octo4a to work. I got the installation corrupted error every time I install the app on the phone I bought for this specifict purpose (Samsung A23). I was following the steps found here https://github.com/feelfreelinux/octo4a/issues/325#issuecomment-1345426359 and at first while i am runing the: pip3 install --upgrade setuptools wheel tornado --no-cache-dir command I was getting an error while "Preparing wheel metadata" Then it looked like it started to download older tornado versions one after the other until it gives these final 2 errors:

  • Could not find a version that satisfies the requierement tornado
  • No matching distribution found for tornado

After doing some updates to python and following some other steps I am now able to run that command with no issues but now I am getting an error following the next step: curl -s https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh | bash -s I am including an screenshot of the error that I am getting now. [image: Octo4a error] https://user-images.githubusercontent.com/123507885/214398846-6f4a0b09-9c1d-45d1-8fcb-5637bb5b1172.png I feel that I am way out of my technical confort zone trying to get this resolved and I really apreciate any help to get Octo4a working. Thanks in advance! PS: Sorry if I am not explaining myself clearly or for any grammar error, english is not my first language

Thanks for the help! Sadly I do not know how to connect using a web browser, if you have a link with a tutorial on how to do ot I highly apreciated.

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/feelfreelinux/octo4a/issues/326#issuecomment-1402768469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMMJUPEMMI3WWFVY5TY7A3WUBISLANCNFSM6AAAAAAS2EJKWE . You are receiving this because you commented.Message ID: @.***>

BelowAvgTico commented 1 year ago

I am using a Samsung A23 with One UI version 4.1 and Android version 12

Remote web terminal doesn't work either on Android 11, what version of Android are you running? Il mar 24 gen 2023, 23:20 BelowAvgTico @.> ha scritto: Was facing the same issue and here is how I solved: 1. in the app, go do Extensions and enable Remote Web Terminal. Connect using a browser and use root/octoprint as user/password 2. now execute the steps mentioned in the article. Hello All, A complete Noob here, trying to make Octo4a to work. I got the installation corrupted error every time I install the app on the phone I bought for this specifict purpose (Samsung A23). I was following the steps found here <#325 (comment)> and at first while i am runing the: pip3 install --upgrade setuptools wheel tornado --no-cache-dir command I was getting an error while "Preparing wheel metadata" Then it looked like it started to download older tornado versions one after the other until it gives these final 2 errors: - Could not find a version that satisfies the requierement tornado - No matching distribution found for tornado After doing some updates to python and following some other steps I am now able to run that command with no issues but now I am getting an error following the next step: curl -s https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh | bash -s I am including an screenshot of the error that I am getting now. [image: Octo4a error] https://user-images.githubusercontent.com/123507885/214398846-6f4a0b09-9c1d-45d1-8fcb-5637bb5b1172.png I feel that I am way out of my technical confort zone trying to get this resolved and I really apreciate any help to get Octo4a working. Thanks in advance! PS: Sorry if I am not explaining myself clearly or for any grammar error, english is not my first language Thanks for the help! Sadly I do not know how to connect using a web browser, if you have a link with a tutorial on how to do ot I highly apreciated. Thanks! — Reply to this email directly, view it on GitHub <#326 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMMJUPEMMI3WWFVY5TY7A3WUBISLANCNFSM6AAAAAAS2EJKWE . You are receiving this because you commented.Message ID: @.>

rfnovo commented 1 year ago

Remote web terminal doesn't work either on Android 11, what version of Android are you running? Il mar 24 gen 2023, 23:20 BelowAvgTico @.> ha scritto: Was facing the same issue and here is how I solved: 1. in the app, go do Extensions and enable Remote Web Terminal. Connect using a browser and use root/octoprint as user/password 2. now execute the steps mentioned in the article. Hello All, A complete Noob here, trying to make Octo4a to work. I got the installation corrupted error every time I install the app on the phone I bought for this specifict purpose (Samsung A23). I was following the steps found here <#325 (comment)> and at first while i am runing the: pip3 install --upgrade setuptools wheel tornado --no-cache-dir command I was getting an error while "Preparing wheel metadata" Then it looked like it started to download older tornado versions one after the other until it gives these final 2 errors: - Could not find a version that satisfies the requierement tornado - No matching distribution found for tornado After doing some updates to python and following some other steps I am now able to run that command with no issues but now I am getting an error following the next step: curl -s https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh | bash -s I am including an screenshot of the error that I am getting now. [image: Octo4a error] https://user-images.githubusercontent.com/123507885/214398846-6f4a0b09-9c1d-45d1-8fcb-5637bb5b1172.png I feel that I am way out of my technical confort zone trying to get this resolved and I really apreciate any help to get Octo4a working. Thanks in advance! PS: Sorry if I am not explaining myself clearly or for any grammar error, english is not my first language Thanks for the help! Sadly I do not know how to connect using a web browser, if you have a link with a tutorial on how to do ot I highly apreciated. Thanks! — Reply to this email directly, view it on GitHub <#326 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMMJUPEMMI3WWFVY5TY7A3WUBISLANCNFSM6AAAAAAS2EJKWE . You are receiving this because you commented.Message ID: @.>

12

jstarnet commented 1 year ago

FWIW I was able to get Octoprint installed. I had to manually install it (through SSH connection):

localhost:~# pip install Octoprint

The install ran, I then tried running localhost:~# cd Octo* && pip3 install . and got the same error -ash: cd: can't cd to Octo*: No such file or directory

I restarted the phone, started up Octoprint and it worked. I'm using a Nexus 5X running Android 8. Hope it helps someone. Now I just need to find an OTG cable that actually works...

chadrebuck commented 1 year ago

My moto g7 (i think that is the one I have) doesn't have pip3 so I can't do the manual fix I guess. Any suggestions? Thanks.

RickzFPV commented 1 year ago

@chadrebuck when you are doing step 5 are you doing the commands one at a time or all at once I was getting that error with my Samsung phones trying to run them 1 at a time when I ran them all at one time it worked flawless

chadrebuck commented 1 year ago

I was going to follow the steps @ https://github.com/feelfreelinux/octo4a/issues/325#issuecomment-1345426359

but found that pip3 wasn't installed when attempting to run

pip3 install --upgrade setuptools wheel tornado --no-cache-dir

RickzFPV commented 1 year ago

Yeah my Samsung phones didn’t have it either but when I ran step 5 it installed it

RickzFPV commented 1 year ago

@chadrebuck What I did was as soon as I connected through ssh I ran update and upgrade on the packages already on the phone then ran step 5 and it worked perfectly

chadrebuck commented 1 year ago

thanks - what command are you using to do the update of packages? I'm familiar with linux but not as much on android. Does it matter that I'm using a different app to ssh into my phone? I'm using sshelper because the ssh server from octo print did not work. Wonder if I get different privileges or app access if the octo print ssh server was working.

RickzFPV commented 1 year ago

@chadrebuck I use putty to ssh into devices. As far as the update and upgrade commands mine are on alpine so command is APK update APK upgrade but yours may be different depending on which Linux you have on your phone

chadrebuck commented 1 year ago

I am using a stock moto g7 running android 10

u0_a216@localhost:SDCard$ uname -a Linux localhost 4.9.206-perf+ #1 SMP PREEMPT Wed Jan 27 11:44:53 CST 2021 aarch64 Android

chadrebuck commented 1 year ago

ok, I just tried to access via the octoprint ssh server and I can run pip3 from there so I think I can follow the steps now

localhost:~# pip3 --version pip 20.3.4 from /usr/lib/python3.9/site-packages/pip (python 3.9)

RickzFPV commented 1 year ago

Yeah you should be able to follow the steps now and get it going

chadrebuck commented 1 year ago

Yeah you should be able to follow the steps now and get it going

yes, thanks. It is working fine now. Unfortunately my phone or otg cable (which has a usb c input and usb output) will not allow the printer to to remain connected when its charging.

RickzFPV commented 1 year ago

Yeah mine won’t either that is one of the big downsides to this program for me

rfnovo commented 1 year ago

Yeah mine won’t either that is one of the big downsides to this program for me

This USB OTG cable works great. Charge and connects to printer at same time: https://a.co/d/4DQJTBM

RickzFPV commented 1 year ago

@rfnovo yeah the problem with mine is they don’t have usb c they are older phones and have micro usb

RickzFPV commented 1 year ago

So got a couple questions guys because I don’t know a lot about android. I have octo4a running on 4 devices total 2 Lenovo tablets running android 10, and 2 Samsung J3 phones running android 9, I was able to ssh into them with only minimal troubles and get them going. I have 2 devices now on android 11 and no matter what I try I can not ssh into them at all. There has to be something I am doing wrong, do I need to put a ssh client on them like termux or something like that. I know there was a post above that said he changed ports to be able to ssh into his but then still couldn’t access octo4a to do the fix, so that is really of no use. Could use some help here that knows more than I do about android.

Thanks Rick

wtaelewis commented 1 year ago

@RickzFPV this is the current issue (besides all the other install issues), on Android 11 ssh won't run to allow you to log in and apply all the other fixes. I don't possess the knowledge to suggest a solution. I'm just waiting, like all the others on this thread, for someone who does to post a solution. Until then, we're limited to running Octo4a on devices with Android 10 or lower, with the fix provided.

RickzFPV commented 1 year ago

@wtaelewis Thank you for responding I will just put those devices away for now lol, and hopefully we will get a fix soon.

TechWithMikeD commented 1 year ago

@RickzFPV this is the current issue (besides all the other install issues), on Android 11 ssh won't run to allow you to log in and apply all the other fixes. I don't possess the knowledge to suggest a solution. I'm just waiting, like all the others on this thread, for someone who does to post a solution. Until then, we're limited to running Octo4a on devices with Android 10 or lower, with the fix provided.

But SSH on Android 12 is fine, so that doesn't make sense. (I have it working here - Pixel 3) So no. What I believe we are seeing is that some devices have SSH blocked. I don't think it is a one-to-one thing w/ the version of Android.

sneedger commented 1 year ago

From what I can tell ssh on Android 12 works 90% of the times, I personally tried a lot of Android 12 and Android 11 (also 10) devices and Android 11 is definitely the problem. Maybe your specific Android 12 device is one of the few exceptions but not the other way around

Il dom 29 gen 2023, 13:51 TechWithMikeD @.***> ha scritto:

@RickzFPV https://github.com/RickzFPV this is the current issue (besides all the other install issues), on Android 11 ssh won't run to allow you to log in and apply all the other fixes. I don't possess the knowledge to suggest a solution. I'm just waiting, like all the others on this thread, for someone who does to post a solution. Until then, we're limited to running Octo4a on devices with Android 10 or lower, with the fix provided.

But SSH on Android 12 is fine? No, what I believe we are seeing is that some devices have SSH blocked. I don't think it is a one-to-one thing w/ the version of Android.

— Reply to this email directly, view it on GitHub https://github.com/feelfreelinux/octo4a/issues/326#issuecomment-1407655229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMMJUL6VJYTEYQ6EGLSNMDWUZRUHANCNFSM6AAAAAAS2EJKWE . You are receiving this because you commented.Message ID: @.***>

alufers commented 1 year ago

FIxed in 1.2.0