dimalo / klipper-web-control-docker

Klipper with Moonraker shipped with Fluidd and/or Mainsail
GNU General Public License v3.0
162 stars 86 forks source link

Moonraker fails to run #16

Closed Denniso2 closed 3 years ago

Denniso2 commented 3 years ago

Fresh raspbian install using the docker-compose file.Moonraker seems to be getting an error similar to this project https://github.com/xirixiz/dsmr-reader-docker/issues/186

klipper     | 2021-10-08 21:53:14,569 - supervisord_dependent_startup - [INFO   ]
klipper     | 2021-10-08 21:53:14,570 - supervisord_dependent_startup - [INFO   ] New event: Service moonraker went from STOPPED to STARTING
klipper     | 2021-10-08 21:53:14,582 - supervisord_dependent_startup - [INFO   ] Services:
klipper     | 2021-10-08 21:53:14,590 - supervisord_dependent_startup - [INFO   ]  - klipper           RUNNING                         dependent_startup: True
klipper     | 2021-10-08 21:53:14,598 - supervisord_dependent_startup - [INFO   ]  - moonraker         STARTING                        dependent_startup: True   wait_for: 'klipper:RUNNING'
klipper     | 2021-10-08 21:53:14,606 - supervisord_dependent_startup - [INFO   ] Services not yet running (1): moonraker
klipper     | RESULT 2
klipper     | OKREADY
klipper     | 2021-10-08 21:53:15,610 INFO success: moonraker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
klipper     | Traceback (most recent call last):
klipper     |   File "/home/klippy/moonraker/moonraker/moonraker.py", line 789, in <module>
klipper     | [utils.py:setup_logging()] - config_file: /home/klippy/.config/moonraker.conf
klipper     | 2021-10-08 21:53:16,305 - supervisord_dependent_startup - [INFO   ]
klipper     | 2021-10-08 21:53:16,306 - supervisord_dependent_startup - [INFO   ] New event: Service moonraker went from STARTING to RUNNING
klipper     | [utils.py:setup_logging()] - log_file: /var/log/klipper/moonraker.log
klipper     | [utils.py:setup_logging()] - software_version: v0.7.1-64-gc3f1b29
klipper     |     main()
klipper     |   File "/home/klippy/moonraker/moonraker/moonraker.py", line 757, in main
klipper     |     event_loop = EventLoop()
klipper     |   File "/home/klippy/moonraker/moonraker/eventloop.py", line 27, in __init__
klipper     |     self.aioloop = asyncio.get_event_loop()
klipper     |   File "/usr/local/lib/python3.9/asyncio/events.py", line 639, in get_event_loop
klipper     |     self.set_event_loop(self.new_event_loop())
klipper     |   File "/usr/local/lib/python3.9/asyncio/events.py", line 659, in new_event_loop
klipper     |     return self._loop_factory()
klipper     |   File "/usr/local/lib/python3.9/asyncio/unix_events.py", line 54, in __init__
klipper     | 2021-10-08 21:53:16,325 - supervisord_dependent_startup - [INFO   ] Services:
klipper     |     super().__init__(selector)
klipper     |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 55, in __init__
klipper     |     super().__init__()
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 397, in __init__
klipper     | 2021-10-08 21:53:16,337 - supervisord_dependent_startup - [INFO   ]  - klipper           RUNNING                         dependent_startup: True
klipper     |     self._clock_resolution = time.get_clock_info('monotonic').resolution
klipper     | PermissionError: [Errno 1] Operation not permitted
klipper     | 2021-10-08 21:53:16,346 - supervisord_dependent_startup - [INFO   ]  - moonraker         RUNNING                         dependent_startup: True   wait_for: 'klipper:RUNNING'
klipper     | 2021-10-08 21:53:16,362 - supervisord_dependent_startup - [INFO   ] No more processes to start for initial startup, ignoring all future events.
klipper     | RESULT 2
klipper     | OKException ignored in: <function BaseEventLoop.__del__ at 0x75f9a2b0>
klipper     | Traceback (most recent call last):
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 681, in __del__
klipper     |     _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 419, in __repr__
klipper     |     f'closed={self.is_closed()} debug={self.get_debug()}>'
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1909, in get_debug
klipper     |     return self._debug
klipper     | AttributeError: '_UnixSelectorEventLoop' object has no attribute '_debug'
klipper     | 2021-10-08 21:53:16,530 INFO exited: dependentstartup (exit status 0; expected)
klipper     | 2021-10-08 21:53:16,569 INFO exited: moonraker (exit status 1; not expected)
klipper     | 2021-10-08 21:53:17,579 INFO spawned: 'moonraker' with pid 24
klipper     | 2021-10-08 21:53:18,583 INFO success: moonraker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
klipper     | Traceback (most recent call last):
klipper     |   File "/home/klippy/moonraker/moonraker/moonraker.py", line 789, in <module>
klipper     |     main()
klipper     |   File "/home/klippy/moonraker/moonraker/moonraker.py", line 757, in main
klipper     | [utils.py:setup_logging()] - config_file: /home/klippy/.config/moonraker.conf
klipper     |     event_loop = EventLoop()
klipper     |   File "/home/klippy/moonraker/moonraker/eventloop.py", line 27, in __init__
klipper     |     self.aioloop = asyncio.get_event_loop()
klipper     |   File "/usr/local/lib/python3.9/asyncio/events.py", line 639, in get_event_loop
klipper     |     self.set_event_loop(self.new_event_loop())
klipper     |   File "/usr/local/lib/python3.9/asyncio/events.py", line 659, in new_event_loop
klipper     |     return self._loop_factory()
klipper     |   File "/usr/local/lib/python3.9/asyncio/unix_events.py", line 54, in __init__
klipper     |     super().__init__(selector)
klipper     |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 55, in __init__
klipper     |     super().__init__()
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 397, in __init__
klipper     | [utils.py:setup_logging()] - log_file: /var/log/klipper/moonraker.log
klipper     |     self._clock_resolution = time.get_clock_info('monotonic').resolution
klipper     | PermissionError: [Errno 1] Operation not permitted
klipper     | Exception ignored in: <function BaseEventLoop.__del__ at 0x75f4b2f8>
klipper     | Traceback (most recent call last):
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 681, in __del__
klipper     |     _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 419, in __repr__
klipper     |     f'closed={self.is_closed()} debug={self.get_debug()}>'
klipper     |   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1909, in get_debug
klipper     |     return self._debug
klipper     | AttributeError: '_UnixSelectorEventLoop' object has no attribute '_debug'
klipper     | 2021-10-08 21:53:18,922 INFO exited: moonraker (exit status 1; not expected)
klipper     | 2021-10-08 21:53:19,933 INFO spawned: 'moonraker' with pid 29
Denniso2 commented 3 years ago

Fixed using the solution from https://github.com/esphome/issues/issues/2450 .More details can be found here https://docs.linuxserver.io/faq .Maybe include this in the readme for the raspberry pi users?