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 selenium test video #2369

Closed
johndaniel7 opened this issue Aug 23, 2024 · 5 comments
Closed

[🐛 Bug]: xmessage in selenium test video #2369

johndaniel7 opened this issue Aug 23, 2024 · 5 comments

Comments

@johndaniel7
Copy link

What happened?

After starting the Selenium Grid with the setup provided, the tests execute successfully and a video is uploaded to Azure Blob Storage. However, the video is only 1 second long and does not actually show the test execution.
The error message "fbsetbg: Something went wrong while setting the wallpaper. Run 'Esetroot -c /usr/share/images/fluxbox/ubuntu-light.png' from an xterm to find out what suggests there’s a problem with the wallpaper setting process." This issue is likely preventing the video from being recorded properly. please check the attached video

c8e42fd40b6ee1a6ec88b5277bf0fcad.mp4

In summary:
Tests run but are not recorded.
The video is only 1 second long.
An error with setting the wallpaper is causing the problem.
Screenshot from 2024-08-23 21-39-52

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

#hub
services:
   selenium-hub:
    image: selenium/hub:4.23.0-20240727
    container_name: selenium-hub
    environment:
      - SE_ENABLE_TRACING=false
    ports:
      - "4442:4442"
      - "4443:4443"
      - "4444:4444"
#chrome 
services:

  chrome:
    image: selenium/node-chrome:4.23.1-20240813
    shm_size: 1gb
    environment:
      - SE_EVENT_BUS_HOST=selenium-hub
      - SE_EVENT_BUS_PUBLISH_PORT=4442
      - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
      - SE_NODE_MAX_SESSIONS=1
      - SE_ENABLE_TRACING=false
    deploy:
      resources:
        limits:
          cpus: "1"
          memory: "1g"

  chrome_video:
    image: selenium/video:ffmpeg-7.0.1-20240813
    shm_size: 1gb
    depends_on:
      - chrome
    environment:
      - DISPLAY_CONTAINER_NAME=chrome
      - SE_NODE_GRID_URL=http://selenium-hub:4444
      - SE_VIDEO_FILE_NAME=auto
      - SE_VIDEO_UPLOAD_ENABLED=true
      - SE_VIDEO_INTERNAL_UPLOAD=true
      - SE_VNCENABLED=false
      - SE_VIDEO_END_SCREEN_ENABLED=false
      - SE_UPLOAD_DESTINATION_PREFIX=azureblob://${AZURE_CONTAINER_NAME}
      - RCLONE_CONFIG_AZUREBLOB_TYPE=azureblob
      - RCLONE_CONFIG_AZUREBLOB_ACCOUNT=${AZURE_ACCOUNT_NAME}
      - RCLONE_CONFIG_AZUREBLOB_KEY=${AZURE_ACCOUNT_KEY}
    deploy:
      resources:
        limits:
          cpus: "1"
          memory: "1g"

Relevant log output

the error message is posted above in the video . The error message "fbsetbg: Something went wrong while setting the wallpaper. Run 'Esetroot -c /usr/share/images/fluxbox/ubuntu-light.png' from an xterm to find out what suggests there’s a problem with the wallpaper setting process." This issue is likely preventing the video from being recorded properly

Operating System

ubuntu 20.04

Docker Selenium version (image tag)

selenium/video:ffmpeg-7.0.1-20240813

Selenium Grid chart version (chart version)

No response

Copy link

@johndaniel7, 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

      - SE_VNCENABLED=false
      - SE_VIDEO_END_SCREEN_ENABLED=false

These 2 env vars are customized in your deployment?

@johndaniel7
Copy link
Author

johndaniel7 commented Aug 24, 2024

yes, they are. sorry for late reply, was off work

@VietND96
Copy link
Member

I update the command to set background. However, ensure that VNC is enabled

@VietND96 VietND96 added this to the 4.24.0 milestone Aug 26, 2024
Copy link

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 Sep 28, 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