octoprint-docker
octoprint-docker copied to clipboard
[BUG] and proposed fix for "PermissionError: [Errno 1] Operation not permitted" due to libseccomp2
Here is what I've encountered and how to fix:
Describe the bug
Clean clone of the repo does not work. Docker logs show PermissionError: [Errno 1] Operation not permitted
error. See the screenshot below for full trace.
~~Fix~~
Upgrade libseccomp2
on your host device to newest version from buster backports.
- Install gpg keys:
If you need to enter different key IDs, you will know them after running step 3. In such case, just copy them and repeat this step using those IDs (I am talking about 0E98404D386FA1D9 and 6ED0E7B82643E131), and proceed to step 3 again.sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
- Add buster backports repo
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list.d/buster-backports.list
- Update apt index and upgrade libseccomp2 from buster backports
sudo apt update sudo apt install -t buster-backports libseccomp2
Container Details
Don't have the host up right now, but it was a clean clone of version bbe57839
.
To Reproduce Steps to reproduce the behavior:
- Clone the repo
- Run
docker compose up -d
Expected behavior Octoprint runs.
Screenshots
Desktop (please complete the following information):
- OS: Raspbian Buster
- Browser: Chrome
This issue has been mentioned on OctoPrint Community Forum. There might be relevant details there:
https://community.octoprint.org/t/octoprint-stuck-in-starting-up-mode-from-new-docker-install/55431/2
The added repository caused errors when updating, and I had to edit /etc/apt/sources.list.d/buster-backports.list
and replace deb.debian.org
by archive.debian.org
to make the proposed solution work. Source