SeleniumHQ / docker-selenium

Provides a simple way to run Selenium Grid with Chrome, Firefox, and Edge using Docker, making it easier to perform browser automation
http://www.selenium.dev/docker-selenium/
Other
7.86k stars 2.51k forks source link

vnc is not working with helm template deployment on gke used 5900 port can you please help on it #2260

Open rahulnadikattu opened 3 months ago

rahulnadikattu commented 3 months ago

What happened?

i have provided below values in values.yaml and applied helm template chromeNode: port: 6666 # Update SE_NODE_PORT to 6666 nodePort: 30666 # Specify a NodePort to expose SE_NODE_PORT to outside traffic ports:

video uploader is also not working , i am not seeing the videos in gcs bucket videoRecorder: enabled: true

imageRegistry: selenium

Image of video recorder

imageName: video

Image of video recorder

imageTag: ffmpeg-6.1.1-20240505

Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images)

imagePullPolicy: IfNotPresent

Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)

targetFolder: "/videos" uploader: enabled: true

Where to upload the video file e.g. remoteName://bucketName/path. Refer to destination syntax of rclone https://rclone.org/docs/

destinationPrefix: "gcs://seleniumgrid_bucket/vnc"
# What uploader to use. See .videRecorder.rclone for how to create a new one.
name:

configFileName: upload.conf

entryPointFileName: upload.sh

# For environment variables used in uploader which contains sensitive information, store in secret and refer envFrom
# Set config for rclone via ENV var with format: RCLONE_CONFIG_ + name of remote + _ + name of config file option (make it all uppercase)
#secrets:
secrets:
  RCLONE_CONFIG_GCS_TYPE: "s3"
  RCLONE_CONFIG_GCS_PROVIDER: "GCS"
  RCLONE_CONFIG_GCS_ENV_AUTH: "true"
  RCLONE_CONFIG_GCS_ACL: "private"
  RCLONE_CONFIG_GCS_PROJECT_NUMBER: "856041249079"
  RCLONE_CONFIG_GCS_OBJECT_ACL: "private"
secretName: "gcs-service-account"
secretKey: "key.json"
image

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

helm repo add docker-selenium https://www.selenium.dev/docker-selenium
helm search repo docker-selenium
helm install/upgrade selenium-grid docker-selenium/selenium-grid

Relevant log output

video browsing and video recorder and uploader need to work

Operating System

gke

Docker Selenium version (image tag)

4.9.0-20230421

Selenium Grid chart version (chart version)

4.9.0-20230421

github-actions[bot] commented 3 months ago

@rahulnadikattu, 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 commented 3 months ago

I see you are using latest video recorder image, however the Selenium Grid image mentioned 4.9.0-20230421 Can you share a full you own chart values as YAML file for me to reproduce? You can hide the credentials part, and I will replace it with my own.

rahulnadikattu commented 3 months ago

valusel.json

tried to attach yaml file but it is not taking so i converted to json and attched the file.

VietND96 commented 1 month ago

I saw values file is fine, from the test, did you run with headless mode? Since with the screenshot, novnc is able to access and preview is there, just browser not open (headless capabilities is set) image