linuxserver / docker-webtop

Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.
GNU General Public License v3.0
1.77k stars 175 forks source link

[BUG] Chromium doesn't start in latest version (Alpine) #192

Closed ch4ox closed 6 months ago

ch4ox commented 9 months ago

Is there an existing issue for this?

Current Behavior

I updated to the latest version (ghcr.io/linuxserver/webtop:latest). Chromium doesn't start with this new version. When chromium is run from console, the following error is displayed:

67bdb9356cbb:~$ chromium
[723:751:1207/124931.011676:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[723:751:1207/124931.011732:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[723:743:1207/124931.015536:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1207/124931.024036:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1207/124931.024443:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.024608:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.024683:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.024816:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.024924:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025053:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025159:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025228:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025288:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025424:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025500:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025581:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025634:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025682:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025730:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025784:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025842:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025922:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.025975:WARNING:process_reader_linux.cc(95)] sched_getscheduler: Function not implemented (38)
[1207/124931.027043:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1207/124931.027066:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Segmentation fault (core dumped)

Expected Behavior

Chromium should start without errors.

Steps To Reproduce

Use given docker-compose.yml and start webtop. Then try to open pre-installed web browser (Chromium).

Environment

- OS: Ubuntu 22.04.3 LTS
- How docker service was installed: apt get with official Docker repo and manual

CPU architecture

x86-64

Docker creation

docker-compose.yml:

version: '2.2'
services:
  webtop:
    image: ghcr.io/linuxserver/webtop:latest
    container_name: webtop
    environment:
      - "TZ=Europe/Berlin"
      - "PUID=1000"  # 1000
      - "PGID=33"    # www-data
      - "UMASK=002"  # rw-rw-r
      - "KEYBOARD=de-de-qwertz"
    shm_size: '2gb'
    security_opt:
      - "seccomp:unconfined"
    restart: always
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "./_data:/config"
    networks:
      dockernet:
        ipv4_address: 172.18.0.5
networks:
  dockernet:
    external: true

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:    33
───────────────────────────────────────

[custom-init] No custom files found, skipping...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Dec  2 2023 18:50:17
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[ls.io-init] done.
 2023-12-07 13:19:02,501 [INFO] websocket 0: got client connection from 127.0.0.1
 2023-12-07 13:19:02,517 [PRIO] Connections: accepted: @xxx.xxx.xx.xxx_1701951542.502088::websocket
github-actions[bot] commented 9 months ago

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

d3vr commented 9 months ago

Can confirm I am experiencing the same issue under latest (bcb997a6-ls135).

As a temporary solution, I reverted back to the previous version (05f32cdf-ls134) and it works fine now.

  webtop:
    image: lscr.io/linuxserver/webtop:05f32cdf-ls134
    container_name: webtop
    # ...
Aterfax commented 8 months ago

Issue also noted here: https://github.com/Aterfax/DCS-World-Dedicated-Server-Docker/issues/36

Issue present with and without:

    security_opt:
      - seccomp:unconfined 

Mitigations include:

ch4ox commented 8 months ago

I've switched to webtop:arch-xfce for now. ArchLinux is not such a big difference RAM-wise compared to Alpine, so that works for me. I'm still hoping for a solution for Alpine, of course.

thelamer commented 8 months ago

Linking: https://github.com/linuxserver/docker-chromium/issues/19

thelamer commented 6 months ago

We have migrated to Firefox in Alpine images, I do not think this is solvable, it seems that musl built Chromium simply does not run in a Docker container anymore.