Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Could not mount /sys/kernel/security #40

Closed
1 task done
TheZoker opened this issue Oct 11, 2023 · 6 comments
Closed
1 task done

[BUG] Could not mount /sys/kernel/security #40

TheZoker opened this issue Oct 11, 2023 · 6 comments

Comments

@TheZoker
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to install the latest version of kasm, I get the following error:

mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and --privileged mode might break.
time="2023-10-12T01:29:49.749588880+02:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"

Expected Behavior

No response

Steps To Reproduce

  1. Create docker-compose file:
version: '3.8'
services:
  kasm:
    image: lscr.io/linuxserver/kasm
    container_name: Kasm
    restart: always
    privileged: true
    ports:
      - 443:443
      - 3000:3000
    volumes:
      - ~/files/kasm/data:/opt
      - ~/files/kasm/profiles:/profiles
    environment:
      - TZ=Europe/Berlin
      - KASM_PORT=443
      - PUID=1000
      - PGID=1000

Environment

- OS: alpine OS as LXC
- How docker service was installed: `apk install docker docker-compose`

CPU architecture

x86-64

Docker creation

docker-compose up

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[ls.io-init] done.
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and --privileged mode might break.
time="2023-10-12T01:29:49.749588880+02:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca
Copy link
Member

aptalca commented Oct 11, 2023

Lxc is most likely the issue here. We don't recommend or support docker in lxc

@TheZoker
Copy link
Author

Hmm weird, because with 1.13 it worked for a good amount of time.

@thelamer
Copy link
Member

Does it work with --security-opt apparmor=unconfined ?

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@LinuxServer-CI LinuxServer-CI closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jan 18, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants