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β€’6mo ago
Looks like the script is bad, which is very odd. Hasn't changed. Which flashing method did you use?
spoown
spoownOPβ€’6mo ago
I tryed automatic, the first one on the left.
miklschmidt
miklschmidtβ€’6mo ago
Ah, do you have an sd card in the board?
spoown
spoownOPβ€’6mo ago
yes
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
Just to give as input, It didnt show any erro flashing with old configurator on 2.0.2
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
well, I can try to go ahead on config with mismatch versions ?
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
Thanks for fast reply btw
miklschmidt
miklschmidtβ€’6mo ago
sure thing πŸ‘ @spoown fix pushed, update "RatOS" and try the configurator again, should flash now πŸ™‚
spoown
spoownOPβ€’6mo ago
Ok. I’ll try. It’s slower because I use a zero2 πŸ˜…
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
btw RatOS repo says corrupt. is it the configurator repo ?
miklschmidt
miklschmidtβ€’6mo ago
No it's a bug in moonraker that was fixed after RC1
spoown
spoownOPβ€’6mo ago
Hard recoverytime maybe?
miklschmidt
miklschmidtβ€’6mo ago
It should fix itself if you update moonraker and reboot. If that doesn't fix it do:
cd ~/printer_data/config/RatOS
git pull
sudo systemctl restart moonraker
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
spoownOPβ€’6mo ago
@miklschmidt I'm sorry, but new error..
No description
miklschmidt
miklschmidtβ€’6mo ago
oh boy lol another fix incoming
spoown
spoownOPβ€’6mo ago
It means I managed to update repo πŸ˜„
miklschmidt
miklschmidtβ€’6mo ago
indeed! πŸ˜„ Should be actually fixed now, if you update yet again πŸ˜…
spoown
spoownOPβ€’6mo ago
pushed, trying to flash already.... I have faith 🀞
spoown
spoownOPβ€’6mo ago
This error I don't fully inderstand the problem
No description
spoown
spoownOPβ€’6mo ago
@miklschmidt ping πŸ™ˆ
spoown
spoownOPβ€’6mo ago
I ran again the version check and I don't get any version warinin, so it may be fine
No description
miklschmidt
miklschmidtβ€’6mo ago
Oh that's interesting, it actually flashed it just didn't exit properly God my bash sucks
spoown
spoownOPβ€’6mo 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β€’6mo 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
spoownOPβ€’6mo ago
No description
spoown
spoownOPβ€’6mo ago
No description
spoown
spoownOPβ€’6mo 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β€’6mo ago
No description
miklschmidt
miklschmidtβ€’6mo ago
Not sure where the PE13 is coming from That would be Z
spoown
spoownOPβ€’6mo ago
not by hand πŸ˜„
miklschmidt
miklschmidtβ€’6mo ago
ie, the one that is used for E by default in the RatOS wiring diagrams did you actually save this?
spoown
spoownOPβ€’6mo ago
yeah, i tryed to reconfigurate but it tells no change
miklschmidt
miklschmidtβ€’6mo ago
because the screenshot you posted matches the default config Is this in RatOS.cfg?
spoown
spoownOPβ€’6mo ago
yeah
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
this part is good
No description
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
spoown
spoownOPβ€’6mo ago
I had to change the default assigment I have on the wizzard
miklschmidt
miklschmidtβ€’6mo ago
oh jesus christ i'm not including the files i actually need in the god damn debug zip :facepalm:
spoown
spoownOPβ€’6mo ago
it was using Z on the extruder as I remember Helping to help for some debugging πŸ˜„
miklschmidt
miklschmidtβ€’6mo ago
Unfortunately i have to go and won't be back for like 5 or so hours can you grab the contents of
cat ~/printer_data/ratos/last-printer-settings.json
cat ~/printer_data/ratos/last-printer-settings.json
spoown
spoownOPβ€’6mo ago
will try np, i should receive VC4, will be busy with other things
miklschmidt
miklschmidtβ€’6mo ago
thank you!
spoown
spoownOPβ€’6mo ago
ping me when you're back with something to try. Thanks for your help
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
No description
spoown
spoownOPβ€’6mo ago
No description
spoown
spoownOPβ€’6mo ago
still
No description
spoown
spoownOPβ€’6mo ago
I tryed to put E1 to provoke changes and then I saw
No description
spoown
spoownOPβ€’6mo ago
it's reading as it was already PE14
miklschmidt
miklschmidtβ€’6mo ago
That's good. Can you send me the debug zip again?
spoown
spoownOPβ€’6mo ago
@miklschmidt Didn’t apply the changes, I can try that and apply and send you debug
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
changed to E1, saved, same duplicate pinout
miklschmidt
miklschmidtβ€’6mo ago
Ah it keeps fuckin it up in the extruder section Reproduced! Aight i'll get it fixed
spoown
spoownOPβ€’6mo ago
I think I made it I put Z ->E2 no, same problemwith PE13 duplicate so it's a real bug? πŸ™‚
miklschmidt
miklschmidtβ€’6mo 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
spoownOPβ€’6mo ago
Yeah I don’t have tool board, yet.
miklschmidt
miklschmidtβ€’6mo ago
fix implemented, live in 10 minutes
spoown
spoownOPβ€’6mo ago
Worked πŸ˜‰ it's FIXED ! Good work πŸ‘πŸΌ if I find another thing I’ll open new topic
miklschmidt
miklschmidtβ€’6mo ago
Excellent, thanks for reporting!
Steef
Steefβ€’6mo ago
Ran into the repo corrupt on all repos issue. Updated Moonraker, which resolved the issue on all but one repo - RatOS
Steef
Steefβ€’6mo ago
No description
Steef
Steefβ€’6mo ago
I ran the update script, that allowed me to update ratos. Post ratos repo update, the repo corrupt message also disappeared
miklschmidt
miklschmidtβ€’6mo ago
Do you have the moonraker.log from this?
Steef
Steefβ€’6mo ago
certainly, will send over in private chat
miklschmidt
miklschmidtβ€’6mo 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
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
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β€’6mo ago
I haven't used hard recovery though and it's currently working as expected
miklschmidt
miklschmidtβ€’6mo 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β€’6mo ago
let me go through my SSH log, a moment
miklschmidt
miklschmidtβ€’6mo ago
The above should fix it
Steef
Steefβ€’6mo 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β€’6mo ago
that's safe to run, it'll restore setup stuff
Steef
Steefβ€’6mo ago
after using the update for RatOS, everything worked
miklschmidt
miklschmidtβ€’6mo ago
lol i think i missed this part πŸ˜‚
Steef
Steefβ€’6mo 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β€’6mo 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β€’6mo ago
unfuck itself
miklschmidt
miklschmidtβ€’6mo ago
πŸ˜‚
Steef
Steefβ€’6mo ago
I'll tell it to do so πŸ˜›
miklschmidt
miklschmidtβ€’6mo ago
If moonraker is up to date, all should be good πŸ™‚
Steef
Steefβ€’6mo ago
anyway, all fine, thanks for the hard work on 2.1 πŸ™‚
miklschmidt
miklschmidtβ€’6mo ago
Thank you for giving it a shot! πŸ™‚
Steef
Steefβ€’6mo 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β€’6mo ago
Welcome to real performance mode πŸ˜‚
AsicResistor
AsicResistorβ€’6mo 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 [email protected] 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β€’6mo ago
No description
blacksmithforlife
blacksmithforlifeβ€’6mo ago
please start your own post
Steef
Steefβ€’6mo 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