i can not upload, download or edit files in mainsail (solved)
i can not edit 'machine/config/printer.cfg'. by klicking on it this little dialog pops up for ~0.5 sec, but nothings happens.
when trying to download it a new tab opens with a 401 error...
6 Replies
extended-salmonOP•3y ago
i read about a [virtual_sdcard] entry in the printer.cfg, but how to get it there when editing is not working?
It is saying not authorized. What's the IP address of the computer you are using to access mainsail interface?
extended-salmonOP•3y ago
thank you! that was the correct hint: the ipv6 IP was missing in the config, so the rights were missing and download & edit & upload was restricted. wifi/rights problem
rare-sapphire•2y ago
I'm running into this issue now but found T.O.M's solution unclear. I tried SSHing into my raspi, and editing
~/klipper_config/moonraker.conf
. Using nano
, I added my laptop's IPv4 address to the list of trusted clients, saved, and rebooted the Pi.
I did something wrong, because now Moonraker won't initialize at all; every GET request to ws://ratos.local/websocket
returns a "401 Unauthorized" code.
Changing moonraker.conf
back to its original state means I can connect to RatOS again, but I still can't download any files.
EDIT: I made no changes to moonraker.conf
but was suddenly able to download files. However, after restarting the server again it went back to the "401 Unauthorized" errors.You don't need to add anything if everything is running on IPv4. If IPv6 is the issue, everything should work fine if you just use the IPv4 address of the pi instead of ratos.local.
Also the changes you made were probably invalid.
Please create a separate thread and explain exactly what the issue is, if it was working earlier and what you did in between.
Also attach your klipper and moonraker logs
rare-sapphire•2y ago
Will do, thank you!