Configurating Machine

I am working on getting my Pi up and running, I am following the instructions on the following page: https://os.ratrig.com/docs/installation I have connected to the pi via ethernet and completed the updates in the order as mentioned in the documentation. I am trying to now configure the machine using the configuration tab, when I click on the configuration tab it takes me to http://ratos.local/configure but the page gives a 502 Bad Gateway error. I have tried this while connecting to the pi through the ratos wifi and without connecting through wifi. Feeling stuck!
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.
75 Replies
TheTik
TheTik•2w ago
What url are you using to view the dashboard at all?
hussainsail2002
hussainsail2002OP•2w ago
This is the URL to view the dashboard: http://ratos.local/config My local IP is 192.168.0.163 I used that initially to connect
TheTik
TheTik•2w ago
Are you able to open http://192.168.0.163/config?
hussainsail2002
hussainsail2002OP•2w ago
yes, its takes me to the machine tab
TheTik
TheTik•2w ago
cool. Don't know why your network name resolution is having troubles with ratos.local for some paths, but that should let you keep moving forward.
hussainsail2002
hussainsail2002OP•2w ago
yes I completed all the updates on the config but when I go to configuration it gives me the bad gateway error
TheTik
TheTik•2w ago
sorry, are you able to go to http://192.168.0.163/configure ?
hussainsail2002
hussainsail2002OP•2w ago
configure does not work for me it gives the error
TheTik
TheTik•2w ago
that makes no sense. hm
hussainsail2002
hussainsail2002OP•2w ago
The tabs highlighted give me the bad gateway error
No description
hussainsail2002
hussainsail2002OP•2w ago
others are working okay
TheTik
TheTik•2w ago
How did you install ratos to the sd card initially?
hussainsail2002
hussainsail2002OP•2w ago
I used balena etcher to flash the image then connected pi to power and checked if I was getting the wifi hotspot the connectd my ethernet cable, I used a octopi to get the IP address
TheTik
TheTik•2w ago
cool, so the login is stll pi / raspberry ?
hussainsail2002
hussainsail2002OP•2w ago
yes that was the login
TheTik
TheTik•2w ago
kk did you get the pi connected to your wifi as well?
hussainsail2002
hussainsail2002OP•2w ago
not sure what the issue is My office does not have wifi I can only use ethernet cables
TheTik
TheTik•2w ago
I'm wondering if there is something weird like those pages are only looking at the wifi interface
hussainsail2002
hussainsail2002OP•2w ago
I was able to connect to the ratos hotspot
TheTik
TheTik•2w ago
@blacksmithforlife I'm out of ideas for now, you have any suggestions? I would like to see the address bar while you're viewing mainsail
hussainsail2002
hussainsail2002OP•2w ago
My office uses a VPN of some sort could that be causing an issue ? let me send you a screenshot
hussainsail2002
hussainsail2002OP•2w ago
No description
hussainsail2002
hussainsail2002OP•2w ago
this is with config
hussainsail2002
hussainsail2002OP•2w ago
No description
hussainsail2002
hussainsail2002OP•2w ago
with configure
TheTik
TheTik•2w ago
SO weird that one page works and another doesn't
hussainsail2002
hussainsail2002OP•2w ago
that sucks, thanks for your help !
blacksmithforlife
blacksmithforlife•2w ago
the configurer is hosted on the pi as a separate process than mainsail I believe it uses nginx
hussainsail2002
hussainsail2002OP•2w ago
is it being blocked by firewall or something?
blacksmithforlife
blacksmithforlife•2w ago
if you are getting a bad gateway that is usually due to the configurer not running
hussainsail2002
hussainsail2002OP•2w ago
is there something I can do to get it up and running?
TheTik
TheTik•2w ago
ohh, interesting! and good to know I'm assuming you've tried rebooting
hussainsail2002
hussainsail2002OP•2w ago
Yes a few times
TheTik
TheTik•2w ago
Other thing im curious about is where KlipperScreen came from. Didn't think that came with ratos but I haven't installed 2.1 yet.
hussainsail2002
hussainsail2002OP•2w ago
I am not sure what that is
TheTik
TheTik•2w ago
that answers that then 🙂
hussainsail2002
hussainsail2002OP•2w ago
?
TheTik
TheTik•2w ago
means you didn't add it, which means it came with ratos
hussainsail2002
hussainsail2002OP•2w ago
thanks for your response, is there any method to check the root cause of this issue? Should I try with another raspberry pi ? or maybe check on another network
blacksmithforlife
blacksmithforlife•2w ago
Sorry, I work was busy and I couldn't answer. I believe you can check the status of it running with sudo systemctl status ratos-configurator.service
hussainsail2002
hussainsail2002OP•2w ago
no issues at all ! Where do I type the sudo systemctl status ratos-configurator.service ? can I type it into the console box ?
blacksmithforlife
blacksmithforlife•2w ago
no, you will have to ssh into the pi
hussainsail2002
hussainsail2002OP•2w ago
oh okay, let me try that sorry for the newbie questions, is there a specific way to ssh into the pi? like I need a cable or something ?
blacksmithforlife
blacksmithforlife•2w ago
you need to connect the pi to your network, and then if using a windows machine you can type in the CMD ssh pi@<YOUR PI'S IP ADDRESS, password by default is raspberry and it will not show you typing the password which is normal
hussainsail2002
hussainsail2002OP•2w ago
my Pi is already connected by ethernet cable can I use putty to ssh into it ?
hussainsail2002
hussainsail2002OP•2w ago
No description
hussainsail2002
hussainsail2002OP•2w ago
this is what I get
blacksmithforlife
blacksmithforlife•2w ago
@miklschmidt - help
miklschmidt
miklschmidt•7d ago
So first of all, the screenshot shows old packages, looks like they have not been updated, start there. Refresh the update manager. You may also want to do a hard refresh of mainsail, it's on 2.13 so it should show the custom package descriptions and not the client names. If that does nothing, show me the output of:
cd ratos-configurator
git status
cd ratos-configurator
git status
You may somehow have ended up on the wrong branch.
miklschmidt
miklschmidt•7d ago
This should not exist on an updated installation.
No description
miklschmidt
miklschmidt•7d ago
In so far as the ratos-configurator is on v2.1.x-deployment, doing a git pull followed by ratos doctor should get everything into work order. If there are any errors, post them here, i'll get you sorted.
hussainsail2002
hussainsail2002OP•7d ago
Thank you for your detailed response, I hit the refresh icon on the update manager and it still shows all packages are up to date.
I am not sure what hard refresh of mainsail means or how to do it. I hit refresh on all the buttons that are visible after hitting the power icon on the top right corner. I typed in the code above after ssh-ing into the Pi: see image for details
No description
hussainsail2002
hussainsail2002OP•7d ago
when I tried git pull I got the following error after a while:
No description
hussainsail2002
hussainsail2002OP•7d ago
I tried the rat doctor as well after reconnecting to the pi as the connection timed out
No description
miklschmidt
miklschmidt•7d ago
I am not sure what hard refresh of mainsail means or how to do it.
Ctrl + shift + r .. That clears the cache and reloads the browser, it's a generic browser feature. This explains the crux of your issues, you have network problems. It's still processing in your screenshot, should fix your issues
hussainsail2002
hussainsail2002OP•7d ago
My office uses a vpn, could that be an issue ?
miklschmidt
miklschmidt•7d ago
depends on the specifics
hussainsail2002
hussainsail2002OP•7d ago
can I complete the configuration at another location that does not have a VPN and then bring it back to my office to complete the rest of the setup ?
miklschmidt
miklschmidt•7d ago
Sure!
hussainsail2002
hussainsail2002OP•7d ago
okay I think that will be easier for me to try
miklschmidt
miklschmidt•7d ago
Just run ratos doctor, it'll report the status as it goes (once it's gotten over the initial package installation) Once that's happy you can go ahead and configure 🙂
hussainsail2002
hussainsail2002OP•7d ago
okay, thanks. the ratos doctor is still at the same spot for the last hour, is that normal ?
hussainsail2002
hussainsail2002OP•7d ago
No description
hussainsail2002
hussainsail2002OP•6d ago
I took my pi home and used my wifi to connect to the pi but I get the same issue. I was able to connect to the configure page initially but after doing the updates it stopped working. I am planning to start fresh again. Which img would you recommend flashing on the SD? Thanks!
TheTik
TheTik•6d ago
2024-07-27-RatOS-2.1.0-RC2-raspberry-rpi32.img.xz Then run the updates in the prescribed order
hussainsail2002
hussainsail2002OP•4d ago
thank you I flashed a fresh img onto a new SD card and the configuration page is now visible, but I have not yet updated the items on my update manager. I did follow the order last time
hussainsail2002
hussainsail2002OP•4d ago
No description
hussainsail2002
hussainsail2002OP•4d ago
as per the online guide I need to do ratos first and then ratos configurator
hussainsail2002
hussainsail2002OP•4d ago
This is my configuration page currently before any updates
No description
hussainsail2002
hussainsail2002OP•4d ago
I have completed the 2 updates first for Ratos and then ratos configurator
No description
hussainsail2002
hussainsail2002OP•4d ago
My configuration page has stopped working again.....
No description
hussainsail2002
hussainsail2002OP•4d ago
what did I do wrong ???
PetrT
PetrT•4d ago
Same issue here. Also VAOC and RealTime Analysis don't work edit: fixed. I had to delete chopper_tune.cfg -> ../../chopper-resonance-tuner/chopper_tune.cfg . I tried Chopper_tune months ago and after tests, I deleted it. But this .cfg file remains somewhere and made this issues.
No description
No description
hhes
hhes•4d ago
Had the same 502 Bad Gateway after installing RatOS 2.1. ratos doctor solved the issue
hussain
hussain•4d ago
When I use ratos doctor nothing happens I ssh into the pi and use ratos doctor and it did not do anything for the whole day Is there a previous more stable version that does not have this issue ?? Cause I am having this issues only after updating

Did you find this page helpful?