#Can’t uninstall OpenCentauri

1 messages · Page 1 of 1 (latest)

ocean shoal
#

Hi, trying to take one of my printers back to stock so it can returned as it has a fault with a sensor. But no matter what I try I get this error.

No open SSH session, uninstalled OctoEverywhere that was connected via Docker container, tried all the versions on the stick. Thanks!

bronze rover
#

@ocean shoal it's a bug in 0.3.0, you can safely skip that step in the uninstaller

#

On your usb, edit config.toml in notepad, remove all the lines with uninstall opencentauri

#

Out of curiousity, why are you uninstalling?

ocean shoal
bronze rover
#

Ah

#

Ok hm

#

Then you may not want to skip the uninstaller

#

As it leaves residual files if you do

ocean shoal
#

There’s a way to SSH in and delete those first right?

#

Then run the patcher for stock with uninstall disabled

bronze rover
#

Technically you could do the same steps as the script yea

#

Can you edit the uninstall script with fen's version?

ocean shoal
#

Ha yeah I hadn’t quite got round to checking the GitHub, I’ll give it a go now

bronze rover
#

You don't have to use vi btw to edit the file

#

You can install nano with opkg

ocean shoal
#

Can I edit the script via the file on the USB?

#

Or is it calling files moved to the printer

#

i currently cant ssh to it, i get connection refused on the port

#

oh no never mind, i forgot i took away its static ip

#

@bronze rover ok that worked, using above github link, however now it wont install the stock firmware, just X's on that?

bronze rover
#

uhhhh

#

that's scary

ocean shoal
#

I havent replaced the key to the original elegoo one actually, could be why?

bronze rover
#

no the uninstaller does that for you

ocean shoal
#

it cant have, i have it open in vi and its the OC one still

bronze rover
#

well ok

#

it invokes the updater with a different cert

#

located at /user-resource/update_tmp

#

after getting the X on the uninstaller, can you ssh or nc in and run the following commands:

curr=$(fw_printenv boot_partition | awk -F= '{ print $2 }' | tr -d '[:space:]')
echo $curr
ocean shoal
#

i just manually changed the key back i could just try it again

bronze rover
#

swupdate -i /user-resource/update_tmp/update.swu -e stable,now_A_next_B -k /user-resource/update_tmp/swupdate_public_elegoo.pem

#

(that only works if you've not rebooted but are just sitting on the x screen)

ocean shoal
#

ah ok

#

want me to reboot the printer, try it again using the USB file and report back?

#

(now ive changed the key back myself)

bronze rover
#

you could i suppose, a reboot won't really matter here

#

neither does /etc/swupdate_public.pem

ocean shoal
#

ok ill go try it again now, unless you have another suggestion

bronze rover
#

(as that's only used by the official updater)

ocean shoal
#

oh sure

bronze rover
#

i suspect the official updater will also break here btw

ocean shoal
#

as in, the failed install page, after the now successful uninstall?

bronze rover
#

failed to install update

#

i guess you could run the uninstall script yourself then try using the official installer (you do need to replace /etc/swupdate_public.pem with the official one then)

#

(or did i make the uninstaller do that don't remember)

ocean shoal
#

so where im at now is, trying it again via the USB stick, then SSHing when it fails the re-install and running above via SSH?

bronze rover
#

yes the uninstaller does replace /etc/swupdate_public.pem

ocean shoal
#

roger that, will try that now

bronze rover
#

you may not be able to ssh in

you may need to use nc ip.of.your.printer 4567

ocean shoal
#

Its thinking about it

#

it worked!

bronze rover
#

oh cool

#

run rm /board-resource/printer.cfg

#

then sync

#

then reboot

#

huh

#

that's very strange then

ocean shoal
#

ok done, ill go watch it

bronze rover
#

why did the script fail

ocean shoal
#

see what happens

bronze rover
#

as those commands are copy pasted from the step where your thing failed

#

😭

ocean shoal
#

ok it worked, it reports being on 1.1.40 or whatever the official version is called

#

the opencentauri folder is still there, but thats fine

bronze rover
#

🎉

#

oh

#

huh

#

that's what the uninstaller is supposed to uninstall

ocean shoal
#

im not super fussed about that

#

would a factory reset get rid?

bronze rover
#

no

#

one second

ocean shoal
#

sure

bronze rover
#

i'll dm you how to get into the official firmware

vast quail
bronze rover
#

Have you ever questioned why we have a 0.0.0 release on oc

vast quail
#

I wonder if that's an unpatched version yea

keen saffron
#

Is there a solution to this problem? I have to take my printer back to get a replacement tomorrow....