logs said:
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 402, in __init__ octoprint-1 | self._clock_resolution = time.get_clock_info('monotonic').resolution octoprint-1 | PermissionError: [Errno 1] Operation not permitted
I solved it by adding:
`services:
octoprint:
image: octoprint/octoprint
restart: unless-stopped
privileged: true # Add this line
ports:
- 80:80
- 8080:8080
cap_add: # Add this line
- SYS_TIME # Add this line
- SYS_NICE # Add this line
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/video0:/dev/video0
volumes:
- octoprint:/octoprint
environment:
- ENABLE_MJPG_STREAMER=true
`
Hope it saves someone the 6 hours I put in this :-)
logs said:
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 402, in __init__ octoprint-1 | self._clock_resolution = time.get_clock_info('monotonic').resolution octoprint-1 | PermissionError: [Errno 1] Operation not permittedI solved it by adding:
`services:
octoprint:
image: octoprint/octoprint
restart: unless-stopped
privileged: true # Add this line
ports:
- 80:80
- 8080:8080
cap_add: # Add this line
- SYS_TIME # Add this line
- SYS_NICE # Add this line
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/video0:/dev/video0
volumes:
- octoprint:/octoprint
environment:
- ENABLE_MJPG_STREAMER=true
`
Hope it saves someone the 6 hours I put in this :-)