ratos-configurator: 502 bad gateway (RatOS 2.0.2 on a custom Ender)
I cannot access the configurator anymore: it seems it somehow switched to a different version (v0.0.0-67-gc5b78c02-inferred) as that is the only thing different compared to my other 2 printers (they are on v2.0.2 deployment). I have never touched anything other then the printer.cfg file, and only ever updated using the update manager. how can I fix this? Id prefer to not do a re-flash as this particular printer needs a partial electronics disassembly to access the SD card.
26 Replies
thinking about it now, this PI was once configured with a USB accelerometer, so that has changed other then the printer.cfg
"only ever updated using update manager" did you ever use update all or did you always update in the proper order?
Restart moonraker, do a “hard refresh” with Ctrl+shift+r, check for updates and update (starting with RatOS).
You are not on the latest versions.
If that does not solve it, ssh do the machine and try running
ratos doctor
yeah all in correct order, Ratos and all other Ratos components before any others
will try!
where am I suposed to run this? all i get is command not found
note that I am purposefully on 2.0.2 with this machine, I dont want to update just yet to 2.1
Oh, ok.
This only work on 2.1
i figured something like that, but thanks anyway
My bad, didn’t see ratos version
np!
But 2.1 is already way better than 2.0.2
im aware! and i will totally update in the near future but i want to wait till the IDEX mod for the printer is finished and redo the entire machine and electronics together with the 2.1 software
for now it just needs to get going again as the control board needs to be reflashed from the configurator
i supose the issue is mentioned here in the moonraker log?
none of this did anything sadly, still 502
moment...
Try this, line by line:
ssh to the machine
cd printer_data/config/RatOS
git fetch origin
git checkout -b v2.1.x origin/v2.1.x
sudo ./scripts/ratos-update.sh
cd ~/ratos-configurator
git fetch origin
git checkout -b v2.1.x-deployment origin/v2.1.x-deployment
sudo ./scripts/update.sh
sudo systemctl restart ratos-configurator
sudo systemctl restart klipper
sudo systemctl restart moonraker
oh sorry for the ping
I’m not sure it will work on 2.0
But maybe
And you can change directly to 2.1 and later change the configuratir to IDEX. Nothing easier now 🙂
doesnt it have to be 2.0.x versions?
2.0 is just a short name 😉
yeah that did not work
Yep. Maybe for only 2.1, sorry
@miklschmidt can you give us a hand, please?
You want this https://discord.com/channels/582187371529764864/1325269926126162031/1325847812721606678
but with
v2.x-deployment
instead of v2.1.x-deployment
.
Actually probably too late now
Was a really bad idea running the 2.1 update script on an uprepared 2.0 machine..yeah i can no longer even connect to mainsail anymore
it seems it somehow switched to a different version (v0.0.0-67-gc5b78c02-inferred)This happens because you ran hard recovery using a very old version of moonraker which caused it to delete the configurator, reclone it and checkout the development branch. The above should restore 2.0..
i will try this now, thankyou!
Actually that won’t be enough. There’s no easy way to rollback all the system changes that was done when you ran the v2.1.x update script.
I’m afraid it’s a bit of a lost cause. I don’t have time to help you undo it all. I suggest copying your configuration and reinstall 2.0 (i would encourage you to update to 2.1 though).
for as far as I can see it seems to be running again in the state of before the 2.1 update scripts, with configurator resolving to the 502 again, but I suppose I wouldnt notice any deeper system changes?
alright, ill go for the teardown and reflash it with a clean 2.0 so I dont need to rebuild any configs, im going to update all machines to 2.1 when i have more time available, the features look amazing.
thanks for your efforts people!
Most of them revolves around the configurator, that won't run again without undoing those changes.
alright, ill go for the teardown and reflash it with a clean 2.0 so I dont need to rebuild any configs,There's a lot less to worry about config wise in 2.1 though, 95% is auto generated from the hardware selection 🙂