Skip to content

[🐛 Bug]: noVNC does not start due to malfunctioning -x check #2416

@sergeygrigorev

Description

@sergeygrigorev

What happened?

noVNC does not start. Investigation showed that startup script fails on executable attribute check though it's set correctly.
The closest issue I managed to find is an old one in Alpine linux bug tracker. I think Ubuntu image might have something similar now.

Command used to start Selenium Grid with Docker (or Kubernetes)

version: '3'
services:
  selenium:
    image: selenium/standalone-chrome:4.25.0
    restart: unless-stopped
    shm_size: 2g
    ports:
      - "4444:4444"
      - "7900:7900"
    environment:
      - START_XVFB=true

Relevant log output

# docker logs <image-id>

WARN exited: novnc (exit status 1; not expected)

# docker exec -it <image-id> bash

seluser@host:/$ /opt/bin/start-novnc.sh
Trying to update the open file descriptor limit from 1048576 to 100000.
Successfully updated the open file descriptor limit.
Warning: could not find self.pem
The path /opt/bin/noVNC/utils/websockify exists, but /opt/bin/noVNC/utils/websockify/run either does not exist or is not executable.
If you intended to use an installed websockify package, please remove /opt/bin/noVNC/utils/websockify.

seluser@host:/$ ls -l /opt/bin/noVNC/utils/websockify/run
-rwxr-xr-x 1 root root 78 Aug 29 17:35 /opt/bin/noVNC/utils/websockify/run

seluser@host:/$ [ -x /opt/bin/noVNC/utils/websockify/run ]; echo $?
1

Operating System

Linux host 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 x86_64 x86_64 GNU/Linux

Docker Selenium version (image tag)

4.25.0

Selenium Grid chart version (chart version)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions