502 Bad Gateway error with RatOS v2.1-RC2

I followed the instruction here https://os.ratrig.com/docs/installation I updated ratos, then ratos-configurator, then all components, updating went fine, but after they finished, I cannot access configurator, RA or VAOC, just 502 bad gateway screen
Installing RatOS | RatOS
This is preliminary documentation for the upcoming v2.1.0 release. The work is still ongoing and the documentation is not yet complete.
Solution:
Try balena etcher again, but an earlier version
Jump to solution
18 Replies
TheTik
TheTik5d ago
Are you able to ssh into the pi? If you power cycle the printer, does the hotspot come up or does it connect to your wifi?
hainguyen13
hainguyen13OP5d ago
i can access ratos.local (mainsail), but ratos.local/configure is 502 yes I am able to ssh into the pi
TheTik
TheTik5d ago
try running ratos doctor if that doesn't work, try
cd ~/ratos-configurator
git fetch
git switch -f v2.1.x-deployment
ratos doctor
cd ~/ratos-configurator
git fetch
git switch -f v2.1.x-deployment
ratos doctor
hainguyen13
hainguyen13OP5d ago
it says ratos: command not found
No description
TheTik
TheTik5d ago
that is VERY puzzling
hainguyen13
hainguyen13OP5d ago
yeah kinda weird, I tried some wget download before and it timed out so often, so I disabled ipv6 and it's fine. Im thinking of there is issue with the ipv6 that prevent updating to work, should I fresh flash the os, then disable ipv6 and repeat the installation steps? how do you think?
TheTik
TheTik5d ago
I would start fresh, yes. Did you have to do something to force ipv6?
blacksmithforlife
try with the IP address instead of ratos.local
hainguyen13
hainguyen13OP5d ago
no it enabled by default still not work
TheTik
TheTik5d ago
I haven't heard of anyone specifically using ipv6 for their ratos, but I don't know your networking situation
blacksmithforlife
yeah, I don't think it is really setup for it - I recall others having ipv6 issues before if I remember correctly, they needed to make a moonraker config change, but this was years ago
hainguyen13
hainguyen13OP5d ago
i think its missing something btw moonraker shows this in notifications
hainguyen13
hainguyen13OP5d ago
No description
TheTik
TheTik5d ago
Did you change anything with the writing to sd card? That isn't looking like the install nor update worked, despite everything saying it did
hainguyen13
hainguyen13OP5d ago
I did not make any change, fresh install. if I dont update ratos and ratos-configurator, it still fine and I can setup my printer normally. I opened an git issue https://github.com/Rat-OS/RatOS/issues/178 3 months ago and some guys had this issue too
GitHub
502 Bad getway after updating RatOS core packages (v2.1.0-RC2) · I...
What happened Error 502 Bad Getway when access http://ratos.local/configure after updating ratos core packages What did you expect to happen I want to try new ratos version, so I downloaded https:/...
Solution
TheTik
TheTik5d ago
Try balena etcher again, but an earlier version
TheTik
TheTik5d ago
I think 1.8 is the latest that works, I used 1.7 successfully
hainguyen13
hainguyen13OP4d ago
@Tiki man it worked! I tried to use balena v1.8. So the problem is from the writing the os to the sd card. thank you very much!

Did you find this page helpful?