Open Avalancs opened 5 hours ago
Update: Running Mysession2 Workspace with the root user seems to make it work.
Docker Run Config Override:
{
"hostname": "kasm",
"user": "root",
"environment": {
"KASM_DEBUG": 1
}
}
So it looks like once you have used a Workspace as root you cannot go back to being a regular user. I did forgot to mention that I did chown -R kasm-user:kasm-user $HOME
before saving the session to an image, so it should not be the home directory's access rights (especially since I mounted a brand new home directory when I started up Mysession2)
Existing Resources
Describe the bug When creating an image from a session (with root user) and using that image in a newly created workspace (as non-root user and persistent profile) the container does not start up because of vnc:
Attached log file: vncissue.log
To Reproduce Steps to reproduce the behavior:
sudo
in the terminaldocker logs (containername) >& vncissue.log
Expected behavior When the container starts up as non-root it will clear out vnc files from previous run
Workspaces Version Version 1.16
Workspaces Installation Method Single Server, all docker containers in a single KVM
Client Browser (please complete the following information):
Workspace Server Information (please provide the output of the following commands):
uname -a
Linux (Hostname) 6.8.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-2 (2024-04-10T17:36Z) x86_64 GNU/Linux
cat /etc/os-release
sudo docker info
Client: Docker Engine - Community Version: 27.3.1 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.17.1 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.5.0 Path: /usr/local/lib/docker/cli-plugins/docker-composeServer: Containers: 11 Running: 10 Paused: 0 Stopped: 1 Images: 25 Server Version: 27.3.1 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: true Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan kasmweb/sidecar:1.0 macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: runc io.containerd.runc.v2 Default Runtime: runc Init Binary: docker-init containerd version: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c runc version: v1.1.14-0-g2c9f560 init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 6.8.4-2-pve Operating System: Debian GNU/Linux 12 (bookworm) OSType: linux Architecture: x86_64 CPUs: 30 Total Memory: 29.3GiB Name: ***** ID: 87fc8f6c-b1c0-4745-aa37-087b2e886b28 Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
5be0ed59eae7 kasmweb/proxy:1.16.0 "/docker-entrypoint.…" 46 hours ago Up 44 hours 80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp kasm_proxy 2f88ff8e19c0 kasmweb/agent:1.16.0 "/bin/sh -c '/usr/bi…" 46 hours ago Up 44 hours (healthy) 4444/tcp kasm_agent 2310b962d2bc kasmweb/rdp-https-gateway:1.16.0 "/opt/rdpgw/rdpgw" 46 hours ago Up 44 hours (healthy) kasm_rdp_https_gateway 48d5c5411126 kasmweb/share:1.16.0 "/bin/sh -c '/usr/bi…" 46 hours ago Up 44 hours (healthy) 8182/tcp kasm_share aba2b8411c69 redis:5-alpine "docker-entrypoint.s…" 46 hours ago Up 44 hours 6379/tcp kasm_redis 6709900fe0b5 kasmweb/manager:1.16.0 "/usr/bin/startup.sh…" 46 hours ago Up 44 hours (healthy) 8181/tcp kasm_manager 1c61b719c148 kasmweb/kasm-guac:1.16.0 "/dockerentrypoint.sh" 46 hours ago Up 44 hours (healthy) kasm_guac e02b5eeca03d kasmweb/rdp-gateway:1.16.0 "/start.sh" 46 hours ago Up 44 hours (healthy) 0.0.0.0:3389->3389/tcp, :::3389->3389/tcp kasm_rdp_gateway c361c95474f7 kasmweb/api:1.16.0 "/bin/sh -c '/usr/bi…" 2 days ago Up 44 hours (healthy) 8080/tcp kasm_api e9c006e4120f postgres:14-alpine "docker-entrypoint.s…" 2 days ago Up 44 hours (healthy) 5432/tcp kasm_db