Moonraker can't connect to klipper after update

I just updated all my dependencies, and suddently I got this error saying Moonraker can't connect to klipper. I checked the logs, and it would seem this "Access to .git folders is forbidden" error is the problem:
2023-02-21 10:54:36,182 [websockets.py:build_error()] - JSON-RPC Request Error: 403
Access to .git folders is forbidden
Traceback (most recent call last):
File "/home/pi/moonraker/moonraker/websockets.py", line 300, in execute_method
result = await callback(params)
File "/home/pi/moonraker/moonraker/websockets.py", line 416, in func
ip_addr=sc.ip_addr, user=sc.user_info))
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 409, in _handle_directory_request
dir_info = self._list_directory(dir_path, root, is_extended)
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 656, in _list_directory
self.check_reserved_path(path, False)
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 286, in check_reserved_path
"Access to .git folders is forbidden", 403
utils.ServerError: Access to .git folders is forbidden
2023-02-21 10:54:36,182 [websockets.py:build_error()] - JSON-RPC Request Error: 403
Access to .git folders is forbidden
Traceback (most recent call last):
File "/home/pi/moonraker/moonraker/websockets.py", line 300, in execute_method
result = await callback(params)
File "/home/pi/moonraker/moonraker/websockets.py", line 416, in func
ip_addr=sc.ip_addr, user=sc.user_info))
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 409, in _handle_directory_request
dir_info = self._list_directory(dir_path, root, is_extended)
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 656, in _list_directory
self.check_reserved_path(path, False)
File "/home/pi/moonraker/moonraker/components/file_manager/file_manager.py", line 286, in check_reserved_path
"Access to .git folders is forbidden", 403
utils.ServerError: Access to .git folders is forbidden
Any clues what the cause of this is and how to solve it?
3 Replies
mute-gold
mute-goldOP2y ago
There's also a bunch of "unparsed config option" warnings, that I don't think are really the cause of it, but they may be related?
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'primary_branch: v2.x' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'origin: https://github.com/Rat-OS/RatOS-configuration.git' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'install_script: scripts/ratos-install.sh' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'managed_services:
klipper
moonraker' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'primary_branch: v2.x' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'origin: https://github.com/Rat-OS/RatOS-configuration.git' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'install_script: scripts/ratos-install.sh' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
2023-02-21 10:54:10,658 [moonraker.py:add_warning()] - Unparsed config option 'managed_services:
klipper
moonraker' detected in section [update_manager client RatOS]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.
This one does feel like something bad though:
2023-02-21 10:54:10,622 [moonraker.py:add_warning()] - [update_manager]: Failed to load extension RatOS: Invalid path for option `path` in section [update_manager client RatOS]: Path `/home/pi/klipper_config/RatOS` does not exist
2023-02-21 10:54:10,622 [moonraker.py:add_warning()] - [update_manager]: Failed to load extension RatOS: Invalid path for option `path` in section [update_manager client RatOS]: Path `/home/pi/klipper_config/RatOS` does not exist
miklschmidt
miklschmidt2y ago
You're running an old alpha release and trying to update to beta. You can't. Reflash.
mute-gold
mute-goldOP2y ago
Oh. Great, thank you I just reflashed to the latest beta and everything is back, I need to rerun the tunning stuff, but that was to be expected. Thanks again @miklschmidt!
Want results from more Discord servers?
Add your server