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]: xmessage in VNC #2125

Closed
parholmdahl opened this issue Feb 5, 2024 · 4 comments
Closed

[🐛 Bug]: xmessage in VNC #2125

parholmdahl opened this issue Feb 5, 2024 · 4 comments

Comments

@parholmdahl
Copy link

What happened?

After updating our nodes to 4.17 i get an errormessage with "xmessage" that is visible with VNC that says "fbsetbg: I can't find an app to set the wallpaper with. You can install one in many many ways but I will give you some simple advice: install Eterm and you're set. Eterm provides Esetroot and thats a great wallpaper setter. I recommend you install the package provided by your distro."

MicrosoftTeams-image

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

apiVersion: apps/v1
kind: Deployment
metadata:
  name: selenium-node-combo-personal1
  labels:
    app: selenium-node-combo-personal1
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 1
  selector:
    matchLabels:
      app: selenium-node-combo-personal1
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate      
  template:
    metadata:
      labels:
        app: selenium-node-combo-personal1
    spec:
      volumes:
      - name: dshm
        emptyDir:
          medium: Memory
          sizeLimit: 2Gi          
      containers:
      - name: selenium-node-combo-personal1
        image: IMAGENAME-IN-PRIVATE-REPOSITORY
        imagePullPolicy: Always
        ports:
          - containerPort: 5555
          - containerPort: 5900
        volumeMounts:
          - mountPath: /dev/shm
            name: dshm
        env:
          - name: SE_EVENT_BUS_HOST
            value: "selenium-hub"
          - name: SE_EVENT_BUS_SUBSCRIBE_PORT
            value: "4443"
          - name: SE_EVENT_BUS_PUBLISH_PORT
            value: "4442"
          - name: GENERATE_CONFIG
            value: "false"
          - name: SE_SCREEN_WIDTH
            value: "1920"
          - name: SE_SCREEN_HEIGHT
            value: "1080"
          - name: SE_VNC_PORT
            value: "5900"
          - name: TZ
            value: "Europe/Stockholm"
          - name: STEREOTYPEENV
            value: "personal"
          - name: SE_NODE_SESSION_TIMEOUT
            value: "300"            
          - name: SE_ENABLE_MANAGED_DOWNLOADS
            value: "true"
          - name: SE_VNC_NO_PASSWORD
            value: "1"
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /status
            port: 5555
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        startupProbe:
          failureThreshold: 3
          httpGet:
            path: /status
            port: 5555
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /status
            port: 5555
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            memory: "4Gi"
            cpu: "2"
          requests:
            memory: "1Gi"
            cpu: "100m"
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      imagePullSecrets:
      - name: docker-credentials
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

Relevant log output

See picture in VNC. Can not find anything in logs. 
Also see that it produces many of thees messages. Not just one.

Operating System

Kubernetes

Docker Selenium version (image tag)

4.17.0 (revision e52b1be057*)

Selenium Grid chart version (chart version)

Copy link

github-actions bot commented Feb 5, 2024

@parholmdahl, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@VietND96
Copy link
Member

VietND96 commented Feb 5, 2024

Thank you for your report! When searching the message, it is similar to JanitorTechnology/dockerfiles#182
RCA: Eterm (suggested by fbsetbg to set the wallpaper in noVNC's Fluxbox[1])
The background of this is due to a practice recently added, a flag --no-install-recommends to all commands apt-get install (following https://avd.aquasec.com/misconfig/dockerfile/general/avd-ds-0029/)
I believe that it does not break the main function of fbsetbg since the message mentioned "Eterm provides Esetroot and thats a great wallpaper setter. I recommend you install the package provided by your distro."
To clear this xmessage, we will transparency define to install eterm in NodeBase Dockerfile

VietND96 added a commit that referenced this issue Feb 6, 2024
Signed-off-by: Viet Nguyen Duc <[email protected]>
@VietND96
Copy link
Member

VietND96 commented Feb 6, 2024

@parholmdahl, you can use nightly image tag for the preview.

@VietND96 VietND96 closed this as completed Feb 6, 2024
Copy link

github-actions bot commented Mar 8, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants