RatOS 2.1RC1 SKR pro 1.2 automatic flashing fail

Hello, having automatic flash failing during setup on a V-Minion. Board has an older RatOS version detect, I try do flash a more recent version and it fails after a while. What's your guess?
No description
No description
No description
95 Replies
miklschmidt
miklschmidtβ€’5w ago
Looks like the script is bad, which is very odd. Hasn't changed. Which flashing method did you use?
spoown
spoownβ€’5w ago
I tryed automatic, the first one on the left.
miklschmidt
miklschmidtβ€’5w ago
Ah, do you have an sd card in the board?
spoown
spoownβ€’5w ago
yes
miklschmidt
miklschmidtβ€’5w ago
aight let me check, i think this might just be because SKR Pro 1.2 only flashes automatically via a separate script. It's using an old borked bootloader. Can't figure out where that 'e' argument is coming from
spoown
spoownβ€’5w ago
Just to give as input, It didnt show any erro flashing with old configurator on 2.0.2
miklschmidt
miklschmidtβ€’5w ago
it's not in the script yeah there was some syntax fixes but i fail to see how that results in the error you're getting. I will find out.
spoown
spoownβ€’5w ago
well, I can try to go ahead on config with mismatch versions ?
miklschmidt
miklschmidtβ€’5w ago
yeah it's prolly fine. I'll see if i can find the bug in the mean time and let you know when there's something to test Oh well.. I found it πŸ˜‚
spoown
spoownβ€’5w ago
Thanks for fast reply btw
miklschmidt
miklschmidtβ€’5w ago
sure thing πŸ‘ @spoown fix pushed, update "RatOS" and try the configurator again, should flash now πŸ™‚
spoown
spoownβ€’5w ago
Ok. I’ll try. It’s slower because I use a zero2 πŸ˜…
miklschmidt
miklschmidtβ€’5w ago
Ah yeah. I should bust out mine and see how big the difference is, it's been a while since i tested on a zero 2.
spoown
spoownβ€’5w ago
btw RatOS repo says corrupt. is it the configurator repo ?
miklschmidt
miklschmidtβ€’5w ago
No it's a bug in moonraker that was fixed after RC1
spoown
spoownβ€’5w ago
Hard recoverytime maybe?
miklschmidt
miklschmidtβ€’5w ago
It should fix itself if you update moonraker and reboot. If that doesn't fix it do:
ssh pi@ratos.local
cd ~/printer_data/config/RatOS
git pull
sudo systemctl restart moonraker
ssh pi@ratos.local
cd ~/printer_data/config/RatOS
git pull
sudo systemctl restart moonraker
And it should stop being a dramaqueen πŸ˜‚ never use hard recovery it deletes the entire repository so you lose all the setup if there's no way around using hard recovery (this should be very very rare), you need to manually run the update.sh script on the repository before doing anything else.
spoown
spoownβ€’5w ago
@miklschmidt I'm sorry, but new error..
No description
miklschmidt
miklschmidtβ€’5w ago
oh boy lol another fix incoming
spoown
spoownβ€’5w ago
It means I managed to update repo πŸ˜„
miklschmidt
miklschmidtβ€’5w ago
indeed! πŸ˜„ Should be actually fixed now, if you update yet again πŸ˜…
spoown
spoownβ€’5w ago
pushed, trying to flash already.... I have faith 🀞
spoown
spoownβ€’5w ago
This error I don't fully inderstand the problem
No description
spoown
spoownβ€’5w ago
@miklschmidt ping πŸ™ˆ
spoown
spoownβ€’5w ago
I ran again the version check and I don't get any version warinin, so it may be fine
No description
miklschmidt
miklschmidtβ€’5w ago
Oh that's interesting, it actually flashed it just didn't exit properly God my bash sucks
spoown
spoownβ€’5w ago
If you need that I flash again to test something later tell me I think I found another mapping bug for the board... damn
miklschmidt
miklschmidtβ€’5w ago
I went back to the 2.0 style, it's pushed. If you could run it again at some point and let me know if that works, that would be nice! tell me
spoown
spoownβ€’5w ago
No description
spoown
spoownβ€’5w ago
No description
spoown
spoownβ€’5w ago
I told Z motor on Z, and extruder in E0 stepper pin is same and got error duplicate pin It may be a error pinmapping that board?
miklschmidt
miklschmidtβ€’5w ago
No description
miklschmidt
miklschmidtβ€’5w ago
Not sure where the PE13 is coming from That would be Z
spoown
spoownβ€’5w ago
not by hand πŸ˜„
miklschmidt
miklschmidtβ€’5w ago
ie, the one that is used for E by default in the RatOS wiring diagrams did you actually save this?
spoown
spoownβ€’5w ago
yeah, i tryed to reconfigurate but it tells no change
miklschmidt
miklschmidtβ€’5w ago
because the screenshot you posted matches the default config Is this in RatOS.cfg?
spoown
spoownβ€’5w ago
yeah
miklschmidt
miklschmidtβ€’5w ago
it doesn't have a slot assigned ... what the heck Can you send me the debug zip? need to look at the config it's using to generate this
spoown
spoownβ€’5w ago
this part is good
No description
miklschmidt
miklschmidtβ€’5w ago
the extruder isn't mapped to that slot when it generates the config, it's still mapped to Z (or nothing and it defaults to the original assignment)
spoown
spoownβ€’5w ago
I had to change the default assigment I have on the wizzard
miklschmidt
miklschmidtβ€’5w ago
oh jesus christ i'm not including the files i actually need in the god damn debug zip :facepalm:
spoown
spoownβ€’5w ago
it was using Z on the extruder as I remember Helping to help for some debugging πŸ˜„
miklschmidt
miklschmidtβ€’5w ago
Unfortunately i have to go and won't be back for like 5 or so hours can you grab the contents of
ssh pi@ratos.local
cat ~/printer_data/ratos/last-printer-settings.json
ssh pi@ratos.local
cat ~/printer_data/ratos/last-printer-settings.json
spoown
spoownβ€’5w ago
will try np, i should receive VC4, will be busy with other things
miklschmidt
miklschmidtβ€’5w ago
thank you!
spoown
spoownβ€’5w ago
ping me when you're back with something to try. Thanks for your help
miklschmidt
miklschmidtβ€’5w ago
This might explain it:
{"level":50,"time":1717771640219,"pid":6993,"hostname":"V-Minion","err":{"type":"TRPCError","message":"Couldn't find printer settings file: /home/pi/printer_data/ratos/last-printer-settings.json: Couldn't find printer settings file: /home/pi/printer_data/ratos/last-printer-settings.json"}
{"level":50,"time":1717771640219,"pid":6993,"hostname":"V-Minion","err":{"type":"TRPCError","message":"Couldn't find printer settings file: /home/pi/printer_data/ratos/last-printer-settings.json: Couldn't find printer settings file: /home/pi/printer_data/ratos/last-printer-settings.json"}
It's very strange since you literally just sent it to me @spoown can you try deleting RatOS.cfg and Printer.cfg, then go to the last page of the configurator and save the configuration again?
spoown
spoownβ€’5w ago
No description
spoown
spoownβ€’5w ago
No description
spoown
spoownβ€’5w ago
still
No description
spoown
spoownβ€’5w ago
I tryed to put E1 to provoke changes and then I saw
No description
spoown
spoownβ€’5w ago
it's reading as it was already PE14
miklschmidt
miklschmidtβ€’5w ago
That's good. Can you send me the debug zip again?
spoown
spoownβ€’5w ago
@miklschmidt Didn’t apply the changes, I can try that and apply and send you debug
miklschmidt
miklschmidtβ€’5w ago
If you apply the changes and then change it back it'll work Something went wrong somewhere in the process, and i'm not sure where I'll try and reproduce it .... i can't Does exactly what it should do in my case
spoown
spoownβ€’5w ago
changed to E1, saved, same duplicate pinout
miklschmidt
miklschmidtβ€’5w ago
Ah it keeps fuckin it up in the extruder section Reproduced! Aight i'll get it fixed
spoown
spoownβ€’5w ago
I think I made it I put Z ->E2 no, same problemwith PE13 duplicate so it's a real bug? πŸ™‚
miklschmidt
miklschmidtβ€’5w ago
Yes, and the generator. It looks for a toolboard pin specifically when the rail is assigned to an extruder axis, it then decides there is no toolboard in your case and then it falls back to default pin from the board pin map and never checks the slot assignment.
spoown
spoownβ€’5w ago
Yeah I don’t have tool board, yet.
miklschmidt
miklschmidtβ€’5w ago
fix implemented, live in 10 minutes
spoown
spoownβ€’5w ago
Worked πŸ˜‰ it's FIXED ! Good work πŸ‘πŸΌ if I find another thing I’ll open new topic
miklschmidt
miklschmidtβ€’5w ago
Excellent, thanks for reporting!
Steef
Steefβ€’4w ago
Ran into the repo corrupt on all repos issue. Updated Moonraker, which resolved the issue on all but one repo - RatOS
Steef
Steefβ€’4w ago
No description
Steef
Steefβ€’4w ago
I ran the update script, that allowed me to update ratos. Post ratos repo update, the repo corrupt message also disappeared
miklschmidt
miklschmidtβ€’4w ago
Do you have the moonraker.log from this?
Steef
Steefβ€’4w ago
certainly, will send over in private chat
miklschmidt
miklschmidtβ€’4w ago
Seems like hard recovery failed and further broke it Hard recovery kills all the setup so you have to run the update scripts manually
ssh pi@ratos.local
cd ~/printer_data/config/
rm -rf RatOS
git clone https://github.com/Rat-OS/RatOS-configuration.git RatOS
sudo ./RatOS/scripts/ratos-update.sh
sudo systemctl restart moonraker
sydo systemctl restart ratos-configurator
ssh pi@ratos.local
cd ~/printer_data/config/
rm -rf RatOS
git clone https://github.com/Rat-OS/RatOS-configuration.git RatOS
sudo ./RatOS/scripts/ratos-update.sh
sudo systemctl restart moonraker
sydo systemctl restart ratos-configurator
@Steef try that ☝️
Steef
Steefβ€’4w ago
I haven't used hard recovery though and it's currently working as expected
miklschmidt
miklschmidtβ€’4w ago
ah sorry i misread
024-06-14 21:26:55,195 [git_deploy.py:_repair_loose_objects()] - Attempt to repair loose objects failed, hard recovery is required
yeah i think the files are fine, just the repo is borked
Steef
Steefβ€’4w ago
let me go through my SSH log, a moment
miklschmidt
miklschmidtβ€’4w ago
The above should fix it
Steef
Steefβ€’4w ago
I used $ sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh after that, only RatOS reported as corrupt however, it did provide me with an update botton for RatOS
miklschmidt
miklschmidtβ€’4w ago
that's safe to run, it'll restore setup stuff
Steef
Steefβ€’4w ago
after using the update for RatOS, everything worked
miklschmidt
miklschmidtβ€’4w ago
lol i think i missed this part πŸ˜‚
Steef
Steefβ€’4w ago
so to summarize: 1. all repos report corrupted 2. $ sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh 3. RatOS reports corrupted 4. Update RatOS through interface 5. all working 6. profit?
miklschmidt
miklschmidtβ€’4w ago
It should be enough to just wait for moonraker to unfuck itself It's a bug in moonraker that was fixed a week or so after the image was released
Steef
Steefβ€’4w ago
unfuck itself
miklschmidt
miklschmidtβ€’4w ago
πŸ˜‚
Steef
Steefβ€’4w ago
I'll tell it to do so πŸ˜›
miklschmidt
miklschmidtβ€’4w ago
If moonraker is up to date, all should be good πŸ™‚
Steef
Steefβ€’4w ago
anyway, all fine, thanks for the hard work on 2.1 πŸ™‚
miklschmidt
miklschmidtβ€’4w ago
Thank you for giving it a shot! πŸ™‚
Steef
Steefβ€’4w ago
presets scared the everlasting crap out of me though 800 mm/s on cooled v3.1 was about tripple what I ran manually before, lol
miklschmidt
miklschmidtβ€’4w ago
Welcome to real performance mode πŸ˜‚
AsicResistor
AsicResistorβ€’3w ago
I'm at this exact step right now, first had everything corrupted, then updated moonraker I'll try to run the update script as well ssh pi@ratos.local cd ~/printer_data/config/RatOS git pull sudo systemctl restart moonraker I did this but still have the repo is corrupt showing up under ratos will I have to do the setup and pid calibration again if I run this script? ~/printer_data/config/RatOS/scripts/ratos-update.sh
AsicResistor
AsicResistorβ€’3w ago
No description
blacksmithforlife
blacksmithforlifeβ€’3w ago
please start your own post
Steef
Steefβ€’3w ago
@AsicResistor I did sudo ~/printer_data/config/RatOS/scripts/ratos-update.sh and rebooted, that gave me an update button for RatOS (though it was still reported as corrupted). After that update, all was well
Want results from more Discord servers?
Add your server
More Posts
configWhat do I need to change in the config to change the LGX Lite extruder to the LGX Lite ProIntermitent klipper shutdown - Unable to read tmc uart + Max31865 Overvoltage or undervoltage faultHello, I im facing some random shutdown from klipper on my vcore 3 / btt octopus / PT1000 thermistConsistently spaced, Uninstructed Y-axis movementsHello, I've got an odd one that hopefully someone can help me resolve. My printer has been working gIs it possible to edit board-definition.json (SKR 3 pin definition error)Is it at all possible to change the pin definitions in the primary config file, or would I have to rAfter update: Unable to read tmc uart 'stepper_x' register DRV_STATUSHi, i just updated RatOS and all components as well as firmware on my SKR 2 429, however got this erVcore 4 only has one large peak...Is this ok?Is this acceptable? I only really have one big peak here. Is something binding? New Vcore 4 500 builToolhead stopped below model rangeDuring Z homing I got this error. Klipper restart solved the issue, without restarting it kept cominQuestions About Light Theme and Multilingual SupportHi there, I have a couple of questions about your site and printer configurator: Are there any plansMCU 'toolboard' shutdown: ADC out of range. Suddenly I have changed nothing on the printer.While printing half way after about 8 hours i get this error. I also do not really understand why. ws2813 anschließenHallo zusammen, ich habe 2 Streifen ws2813 (5V) mit je 53 LED im Deckel montiert. Beide Streifen sol