Internal error on command:"G28"

Hi all : PRUSA MK3S. Been running Ratos for a serious while; SD went corrupt so reinstalled. I've first tried 2.1 RC3 but wizard would fail systematically (same symptoms as : https://discord.com/channels/582187371529764864/1328642949373755482/1328642949373755482 ), so went-back to Ratos 2 Any help would be great, I have 4 of these bad boys nervously waiting for a fresh SD..... Many thanks in advance
No description
56 Replies
TheTik
TheTik•2mo ago
Did you update ratos first, making sure it had a good internet connection?
3DBoomer
3DBoomerOP•2mo ago
Yes, in the right order
TheTik
TheTik•2mo ago
Got a screenshot of the actual error? What actions are you taking that trigger it? Include your config files as requested in the pinned post
3DBoomer
3DBoomerOP•2mo ago
3DBoomer
3DBoomerOP•2mo ago
No description
TheTik
TheTik•2mo ago
hm. How about the klippy.log? Hopefully it'll show what the "internal error" actually is
3DBoomer
3DBoomerOP•2mo ago
3DBoomer
3DBoomerOP•2mo ago
I've gone as far as I could in the investigation but the klippy log is beyond my skills
TheTik
TheTik•2mo ago
Internal error on command:"G28"
Traceback (most recent call last):
File "/home/pi/klipper/klippy/gcode.py", line 212, in _process_commands
handler(gcmd)
File "/home/pi/klipper/klippy/extras/ratos_homing.py", line 42, in cmd_G28
toolhead.set_position(pos, homing_axes=[2])
File "/home/pi/klipper/klippy/toolhead.py", line 466, in set_position
self.kin.set_position(newpos, homing_axes)
File "/home/pi/klipper/klippy/kinematics/cartesian.py", line 69, in set_position
axis = "xyz".index(axis_name)
TypeError: must be str, not int
Transition to shutdown state: Internal error on command:"G28"
Internal error on command:"G28"
Traceback (most recent call last):
File "/home/pi/klipper/klippy/gcode.py", line 212, in _process_commands
handler(gcmd)
File "/home/pi/klipper/klippy/extras/ratos_homing.py", line 42, in cmd_G28
toolhead.set_position(pos, homing_axes=[2])
File "/home/pi/klipper/klippy/toolhead.py", line 466, in set_position
self.kin.set_position(newpos, homing_axes)
File "/home/pi/klipper/klippy/kinematics/cartesian.py", line 69, in set_position
axis = "xyz".index(axis_name)
TypeError: must be str, not int
Transition to shutdown state: Internal error on command:"G28"
something is not right about how you installed or updated ratos. If you're on 2.0.2 then you don't have the convenience of ratos doctor. I'd recommend starting over again with flashing.
3DBoomer
3DBoomerOP•2mo ago
Ok. But flashing fails. Via ssh ? Make flash etc ? Installing 2.1? I had not heard /read anything about ratos doctor, I'll give it a try Hummm... I have raspberries 3a+ in my mk3s.... I'm afraid they're too weak to run 2.1. I must stay on 2.0.2
TheTik
TheTik•2mo ago
Docs say that 3A+ should be enough
3DBoomer
3DBoomerOP•2mo ago
Yep 3A+ should be fine.... I don't get it : I've gone through klipper and RatOS install so many times over the last 2/3 years.... It's usually straightforward. Should I roll back to RC1 ? I've succeeded 3 full installs with it recently. Could that help ? Just the initial updates after connecting to the net takes ages
TheTik
TheTik•2mo ago
"flashing fails" how?
3DBoomer
3DBoomerOP•2mo ago
OK : just spend hours on RC2. Looks better (updates more easily) but still same bug
No description
3DBoomer
3DBoomerOP•2mo ago
3DBoomer
3DBoomerOP•2mo ago
3DBoomer
3DBoomerOP•2mo ago
Just tried adding the following (early in the printer.cfg file), nos success : [MCU] serial: /dev/serial/by-id/usb-Prusa_Researchprusa3d.comOriginal_Prusa_i3_MK3__-if00
3DBoomer
3DBoomerOP•2mo ago
I might be completely beside the point, but I see this :
No description
3DBoomer
3DBoomerOP•2mo ago
And this is weird as well, I can't soft or hard recover anything from the Ratos github (that's on a V-core 3.1 / Rasp 3b+ I'm trying to update as well)
No description
3DBoomer
3DBoomerOP•2mo ago
No description
blacksmithforlife
blacksmithforlife•2mo ago
don't hard or soft recover a repo, it messes everything up
3DBoomer
3DBoomerOP•2mo ago
OK. What should you do then when it appears as broken ?
blacksmithforlife
blacksmithforlife•2mo ago
mainsail for some reason shows it as invalid, but really that is just that it hasn't been able to get the updates yet. Try refreshing the updates and wait but now that you are in a bad state, it is easier to start over with a fresh Pi image
3DBoomer
3DBoomerOP•2mo ago
I have tried to refresh / Wait / reboot many times.
blacksmithforlife
blacksmithforlife•2mo ago
I would start investigating your network setup
3DBoomer
3DBoomerOP•2mo ago
No... Network is is fine, I have several other printers running fine (Ratos 2.0.2 mostly, 2 x 2.10 printers.... WIFI 2.4, same SSID for everyone. Been running it for years
blacksmithforlife
blacksmithforlife•2mo ago
I can only point to what mainsail is doing. Drop your debug.zip into the chat
3DBoomer
3DBoomerOP•2mo ago
Where can I find this guy ? (Many thanks for being here by the way 😉
blacksmithforlife
blacksmithforlife•2mo ago
the pinned comment in #ratos-support details how to get it
3DBoomer
3DBoomerOP•2mo ago
OK ! That's from the V-Core 3.1 / Rasp 3b+ / RC1 I'm currently trying
3DBoomer
3DBoomerOP•2mo ago
Interresting : we've just wired it to the network rather than wifi : looks much faster. Previous releases or RatOS were notthat slow on wifi
TheTik
TheTik•2mo ago
might have something wrong with the wifi on that particular raspi if the others on your networks are fine
3DBoomer
3DBoomerOP•2mo ago
Both rasps I'm currently trying have been running Ratos 2.0.2 for a while on wifi, same network (Same Unify relays, using just the 2.4 ghz SSID)
3DBoomer
3DBoomerOP•2mo ago
This one is on proper RJ45 now, directly to the router. I've let them run quietly for a while, all items look ready for upgrade now, except these 2 guys :
No description
TheTik
TheTik•2mo ago
Ctrl+R to refresh the page?
3DBoomer
3DBoomerOP•2mo ago
No impact, even tried rebooting every 30' or so...
3DBoomer
3DBoomerOP•2mo ago
Tempted to update just the System's 135 packages 🤔
No description
3DBoomer
3DBoomerOP•2mo ago
No description
TheTik
TheTik•2mo ago
ew, AI
3DBoomer
3DBoomerOP•2mo ago
Thx guys 😉 we'll let them reflect on life philosophy and the importance of updates and upgrades all night and will try to go further in the morning. May the Force be with you.
TheTik
TheTik•2mo ago
Best of luck!
3DBoomer
3DBoomerOP•2mo ago
Well.... It's been running all night with a few ctrl-F5 along the way... All super green except this guy
No description
3DBoomer
3DBoomerOP•5w ago
A few moments later..... Back on a new SD card, flashed with latest RC 2. Left it run for a while, when all updates available, I just udapted Ratos, waited for a while, rebooted, refreshed updates, waited, Updates Ratos-Configurator, it failed. Waited a long moment after closing failed update window, rebooted, now Ratos-Configurator has disappeared from the list.
No description
3DBoomer
3DBoomerOP•5w ago
I then tried to update just moonraker, waited, rebooted, still no ratos-configurator in the list. I'm going nuts, I've been on this all week now.
blacksmithforlife
blacksmithforlife•5w ago
its supposed to have disappeared, they have been combined
3DBoomer
3DBoomerOP•5w ago
Ahhhhh.. Thanks man ! For being here and for the answer 🙂 Would you advise any specific order for the following updates ?
blacksmithforlife
blacksmithforlife•5w ago
yes, always update ratos first, then you can update the others until RC4 comes out, you will have to deal with https://discord.com/channels/582187371529764864/844364874216898562/1319098058016821349
3DBoomer
3DBoomerOP•5w ago
OK, in no specific order then. I'll go step by step to be on the safe side Thx again 😉
3DBoomer
3DBoomerOP•5w ago
Arg...... 1 full day on it and then.....
No description
MDFPereira
MDFPereira•4w ago
Ssh to the pi and send ratos doctor It should correct it for you
3DBoomer
3DBoomerOP•4w ago
Ok : I did a complete check with Ratos Doctor followig this thread : https://discord.com/channels/582187371529764864/1330240060519616512/1330522101215658128
3DBoomer
3DBoomerOP•4w ago
Di work great, went through the usual config wizard till the end, back to mainsail with a proper MK3 config, then :
No description
3DBoomer
3DBoomerOP•4w ago
Error message, so tried refresh available updates, tried soft recovery and .... failed again
MDFPereira
MDFPereira•4w ago
Either hard or soft recovery will mess RatOS. This has been said plenty of times. Ssh to the rpi and send ratos doctor

Did you find this page helpful?