octoprint-docker icon indicating copy to clipboard operation
octoprint-docker copied to clipboard

[BUG] and proposed fix for "PermissionError: [Errno 1] Operation not permitted" due to libseccomp2

Open bkakilli opened this issue 1 year ago • 2 comments

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.

  1. Install gpg keys:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
    
    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.
  2. 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
    
  3. 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:

  1. Clone the repo
  2. Run docker compose up -d

Expected behavior Octoprint runs.

Screenshots image

Desktop (please complete the following information):

  • OS: Raspbian Buster
  • Browser: Chrome

bkakilli avatar Dec 07 '23 04:12 bkakilli

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

GitIssueBot avatar Jan 08 '24 00:01 GitIssueBot

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

Chocorean avatar Aug 17 '24 17:08 Chocorean