Failed to detect NetworkManager Service
My printer decided today to stop showing the web interface and when i checked on the kipper screen, it shows that it failed to detect network service.
So now i can't view mainsail web interface nor i can SSH into my printer.
I'm not sure how i managed to break the network as i properly shutdown klipper before turning the printer off and I always update Ratos first if available.
Is there other way to fix this issue without reinstalling Ratos?
I'm running latest Ratos 2.1
Thank you
49 Replies
klipperscreen broke/changed some stuff, if you do a search in here you'll see lots of posts.
You should still be able to navigate to
ratos.local
from your computer or phone thoughI was able to initially access SSH through [email protected] but then i reinstalled klipper screen and now even rato.local does not work 😅
I have the exact same issue. If I unplug the screen and reboot the printer, the printer connects to my wifi. If I turn the printer on with the screen connected I get the same network manager issue and the printer doesn't connect. Network manager is installed and up to date aswell
Network manager doesn't work with Rat-OS wifi
@miklschmidt didn't you pin the specific version of klipper screen that works?
So do we know why it's asking for it and why it's installed on my ratrig from a default install of ratos
See the post by thetik above
So are we saying in the newer versions of klipperscreen and we should revert back to an older version?
Newest should work. I have no idea how klipperscreen affects network connectivity when
NetworkManager
is not available, that would be a klipperscreen bug. FWIW i can't reproduce that on my machines, but i'm running 2.1.
Klipperscreen dropped support for everything but NetworkManager. We don't use NetworkManager, so the klipperscreen network panel doesn't work. That's intentional by the klipperscreen author (and i prefer it like this as it always killed the wpa-supplicant symlink before, imo you should not use it for networking, use the configurator). It should not kill your network connection though.So I'm completely up to date on ratos and all the other programmes. Still running 2.0.x version not 2.1
I know you mentioned the configurator, but where would this be fixed in that? Little lost in this as I don't use it for networking. On first boot I logged into ratos and gave it my wifi, screen came later. When screen is connected it works fine, but stops the printer connecting to WiFi. If I unplug it, it connects to my wifi
That might be the issue. I believe klipperscreen force installed network manager at one point. If network manager exists, klipperscreen probably tries to start it, killing everything else in the process. You can try this:
I know you mentioned the configurator, but where would this be fixed in that?Nothing about klipperscreen is fixed in the configurator, but the wifi configuration should be done through the configurator, just like instructed in the docs.
Thinking about this, a while back I did have connection issues where I was able to see my router from the network tab on the screen and reconnected through that wonder if this caused it to use the screen for connection
Yep this is bad
sec
OK, I understand this now. Will deleted network manager and rerun the wifi connection via ratos local. Cheers for your help
Klipperscreen would have broken that functionality if you used that to connect to a network
You can restore it like this:
One of these problems, where it being sometimes working doesn't help debug the problem.
indeed
Should I only run this, or run this after uninstalling network manager
Uninstalling
first disable network manager:
then restore the symlink
Then reboot (that's what
sudo reboot now
does). That should restore the ratos configurator wifi setup functionality and stop klipperscreen from busting the wifi connection.Awesome. Thanks for you help on this. Been driving me mad
You don't need the second
ssh [email protected]
if you're already connected via ssh obviously, i just copy pasted the previous stuff 😄
Np, hopefully it works too.. 😅Haha. Yeah I understood that bit
Ran the commands via shh, which has made it go to the ratos configurator, unfortunately it keeps on saying my credentials are invalid. Any clue why this maybe as its the correct password. I did see in the root directory on the sd card their is a wpa txt file I can manually add my credentials?
Thinking I might start from scratch with ratos 2.1 and see if this fixes everything
My Pi started a wifi with Ratos and when I tried to join the network to configure my home network, it says incorrect password for "raspberry". I think i will just reinstalled Ratos again at this point and I hope this issue won't come back again from klipper screen.
did see in the root directory on the sd card their is a wpa txt file I can manually add my credentials?That'll work yes, that's essentially what the configurator does.
unfortunately it keeps on saying my credentials are invalidThat means it can't save the password to the ratos-wpa-supplicant.txt file, most likely because the password isn't accepted by the
wpa_passphrase
command. Could be a special character thing for the SSID or Password, earlier versions of 2.0 didn't properly escape/quote the strings.
it says incorrect password for "raspberry"Then you've somehow changed it, or you didn't enter it correctly?
GitHub
RatOS/src/modules/hotspot/config at 2d118e8fa4d4d9f1cf1bdd128bd9df6...
The preconfigured Raspberry Pi image that makes it easy to run Klipper + Moonraker + Mainsail on your printer. - Rat-OS/RatOS
That makes sense as my password for the WiFi does use special characters. I can access that file from the sd card, if I changed it in their and plug in my sd card would you think it would work? Don't particularly want to change my password as that's alot of updating other devices
Yep that should work
Then likely it got changed when i reinstalled klipper screen which prompt me to install Network Manager at the end. I clicked Yes thinking it will fix the issue but apeparently not
Yeah that breaks everything
Just to let you know, installed ratos 2.1 which had the same issue with special characters in my wifi password. Edited the wpa text file on the sd card and manually added my details under WPA and it works perfectly. Thanks for your help
hmmm... that's annoying. Did the password written to the wpa file by the configurator look correct?
Or did it not actually get that far?
It wouldn't get that far as it said invalid credentials. I did try the normal way first then reverted to inputing them manually directly on the sd card. You need to take the sd card out and write it from your PC as that text file is locked while in the pi
You need to take the sd card out and write it from your PC as that text file is locked while in the piJust
sudo nano /boot/ratos-wpa-supplicant.txt
. It's not locked it's just not modifiable by anyone but root 🙂
Can you construct a password using the problematic characters (that is obviously very different from your actual password) so i have something to test with?Ahh OK. That's my lack of knowledge on Linux. Other than that ratos 2.1 works beautifully. I won my printer from the formnext giveaway you did so hadn't gone through the configurator before. It's very well thought out
Aah nice! congratulations on the win 🙂
Appreciate it
So my password just has an @ in it. The rest is just normal upper and lower case letters
got it, thank you, will look into what's happening 👍
Happy to help.
Can you also please check the "!" character as well?
i reckon both require the same fix, but yes will include a test for that 👍
TDD?
It's bash, and though there are bash testing libraries, it's really awful to use 😂
But i might be able to write them from typescript. I'm not big on TDD (i never get anything done), but i do regression tests and integration tests.
Yeah, I'm trying it out in a personal project, wish we did more at work. Anyway, sorry to derail the thread 😄
If I have to I can change password. It was assigned to me by ISP but I can change it if necessary. Means updating every device in house but no big deal.
You can input the password manually via a txt file on the sd card
Y'all are making this old man dig deep as RPi and Bullseye are my biggest weaknesses. I can do this. I will do this.
fortunately you don't need to know any of those, just put your pi's SD card in a card reader and edit the ratos-wpa-supplicant.txt file with a simple text editor (ie notepad or preferably vscode or notepad++, but not wordpad) on windows.
Yeah I do use Notepad++. I assume I do this after first boot of RPi not before.
either works
Haha, hope it works. I didn't fancy changing my wifi password, so this way is easier