Skip to content

Raspberry Pi 32bit - error due to PermissionError: [Errno 1] Operation not permitted #285

@fmarkos

Description

@fmarkos

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions