ratos-configurator: invalid
I ran into an issue, I can't recall exactly what it was, but when searching here there was an explaination that a bug slipped through and to update to the latest. I went into
Machine
and clicked UPDATE ALL COMPONENTS
, this seemed to complete, but then I'm left with ratos-configurator
invalid
. I did some searching and found some information about ratos doctor
, I tried running it and got command not found
, I searched that and came to this post: https://discord.com/channels/582187371529764864/1329115674215448616/1336836562381570149
I tried those instructions, mainly switching to v2.1.x-deployment
branch, however even after that I still get:
At some point in here I also read another thread about updating klipper
so I did update that independent of everything else.
I figure, before I make it worse I should ask for help.
Solution:Jump to solution
I reimagined the sd card a little bit ago and am currently installing things in the prescribed order.
15 Replies
At this point I'd personally start over. Grab your printer.cfg for reference of any manual changes you may have needed, but start over with these instructions:
https://discord.com/channels/582187371529764864/1324058506193797131/1324138855162581046
Will I need to redo any of the beacon calibration process or is that all stored in my
printer.cfg
?
Flashing the SD card now
I got RatOS loaded, connected to Wifi, I added my printer.cfg back, and now I'm updating all components again.@TheTik Is this expected?


Make sure to update in the prescribed order
Do I need to reimage now that RatOS is in an invalid state? I guess I didn't realize there was a specific order.
Always Rat-OS first
Also this from a while ago
https://discord.com/channels/582187371529764864/844364874216898562/1319098058016821349

Seems like an unfortunate land mine waiting for people to step on it. I likely read this months ago and likely did it in the correct order and then it exited my memory. I'm surprised
UPDATE ALL COMPONENTS
doesn't do all this by default, that would be the ideal user experience. Seems like if UPDATE ALL COMPONENTS
had some way to take installOrder
or something of that sort it would save a lot of users a lot of time and frustration.The landmine only bursts when people don’t see it. What means exactly that this problem only happens when people don’t read. Neither the docs nor the announcements 😉
That is part of mainsail. Can’t be removed from RatOs. And the order of the update manager is the same. Would be nice to change it but there is no possibility
Right, that is how landmines work 😉 .
Agreed. Unfortunately RTFM is the answer.
Anything is possible, but I assume it would take changes beyond the scope of what RatRig has direct control over. I am not familiar with the whole stack, so I can't comment on how, but it is possible. It sounds like mainsail would need to support
installOrder
.If we could change the order of operations would be a must. And a solution to a recurring issue.
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
Then hard refresh the brwoser (ctrl/cmd+shift+r) and refresh updates
Solution
I reimagined the sd card a little bit ago and am currently installing things in the prescribed order.
I installed as prescribed.
RatOS
, then ratos-configurator
, then UPDATE ALL COMPONENTS
. Everything is up to date. I also updated my printer.cfg
. I'm getting this error:
Include file '/home/pi/printer_data/config/RatOS.cfg' does not exist
You meed to do the configurator again.
Sounds good, will do
Seems like things are fixed now. I'm about to run a test print, but everything seems right.
Seems to be working as expected. Thanks for the help 😁.