alcounit / selenosis

Scalable, stateless selenium hub for Kubernetes cluster
Apache License 2.0
81 stars 24 forks source link

Tests are failing with Session ID is required #48

Closed madhank93 closed 3 years ago

madhank93 commented 3 years ago

Hi @alcounit, Thank you creating and maintaining this project.

My tests are failing with Error: A sessionId is required for this command.

Strange thing this when I specify HPA minReplica -2 or Selenosis replicas - 2. For first set of tests all the tests are failed and for the second time all the tests are getting passed.

My assumption is --session-wait-timeout and --browser-wait-timeout doesn't works.

Selenosis.yml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: selenosis
  namespace: selenosis
spec:
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  replicas: 1
  selector:
    matchLabels:
      app: selenosis
  template:
    metadata:
      labels:
        app: selenosis
        selenosis.app.type: worker
      namespace: selenosis
    spec:
      containers:
        - args:
            [
              "/selenosis",
              "--browsers-config",
              "./config/browsers.yaml",
              "--namespace",
              "selenosis",
              "--service-name",
              "seleniferous",
              "--browser-limit",
              "20",
              "--proxy-image",
              "alcounit/seleniferous:v1.0.2",
              "--session-wait-timeout",
              "5m0s",
              "--browser-wait-timeout",
              "5m0s",
            ]
          image: alcounit/selenosis:v1.0.5
          name: selenosis
          resources:
            limits:
              cpu: "0.5"
              memory: "512Mi"
            requests:
              cpu: "0.2"
              memory: "128Mi"
          ports:
            - containerPort: 4444
              name: selenium
              protocol: TCP
          volumeMounts:
            - mountPath: ./config
              name: browsers-config
          imagePullPolicy: IfNotPresent
          readinessProbe:
            httpGet:
              path: /healthz
              port: 4444
            periodSeconds: 2
            initialDelaySeconds: 30
          livenessProbe:
            httpGet:
              path: /healthz
              port: 4444
            periodSeconds: 2
            initialDelaySeconds: 3
      volumes:
        - name: browsers-config
          configMap:
            name: selenosis-config

e2e.yml

apiVersion: batch/v1
kind: Job
metadata:
  name: e2e
  namespace: selenosis
spec:
  template:
    spec:
      containers:
        - name: e2e
          imagePullPolicy: IfNotPresent
          image: gcr.io/wdio-gke/e2e:latest
          resources:
            limits:
              cpu: "2"
              memory: "2Gi"
            requests:
              cpu: "1"
              memory: "1Gi"
      dnsPolicy: ClusterFirst
      restartPolicy: Never
      terminationGracePeriodSeconds: 0

browser.yml

chrome:
  defaultVersion: "91.0"
  path: "/"
  kernelCaps:
    - SYS_ADMIN
  versions:
    "91.0":
      image: "selenoid/chrome:91.0"
firefox:
  defaultVersion: "88.0"
  path: "/wd/hub"
  kernelCaps:
    - SYS_ADMIN
  versions:
    "88.0":
      image: "selenoid/firefox:88.0"

wdio.conf.ts

  hostname: "selenosis",
  port: 4444,
  path: "/wd/hub",

Full log - https://gist.github.com/f563647e56374e46101c5b27a29afc84 Error log - https://gist.github.com/madhank93/40b35660ca0db481a014c608e15f51a9 Application log - https://gist.github.com/cfc2edb65b362f1169b142e03629dcae

alcounit commented 3 years ago

@madhank93 thanks for the feedback, would you be so kind to provide logs directly from pods (selenosis, browser), logs that you have provided really hard to read :( You can use stern for this.

madhank93 commented 3 years ago

I have never used stern before, let me work on that and will get back to you with the logs.

madhank93 commented 3 years ago

Here are the logs. Browser log - https://gist.github.com/8d23c6d6199c980ca63659cfd538e59f Selenosis log - https://gist.github.com/f8eca8eeb94c33a3e79e3aaf44c645b9

alcounit commented 3 years ago

@madhank93 thanks! I see in your config --browser-wait-timeout and --browser-wait-timeout are set to 5 minutes but your test framework client is disconnected earlier:

selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:30Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=fbfdc2e3-f53d-4b58-a65f-fffa82d7efa1 time_elapsed=100.72s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:33Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=74bc079e-1634-4082-bef9-16f4bf4f4380 time_elapsed=103.26s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:36Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=377d62e9-9316-42fc-8665-dd103078bc56 time_elapsed=106.11s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:39Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=f4261b1d-d0a3-486e-9d45-8048a4432c7f time_elapsed=109.34s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:41Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=53ea279e-c99a-4c09-a502-df334f5491f5 time_elapsed=110.60s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:44Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=d00bc09d-2831-456e-822f-f6dc079408ec time_elapsed=113.52s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:47Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=53ccf9c5-b0d1-47ca-ae33-2674d5b01dc9 time_elapsed=111.40s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:50Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=004622ab-2b00-4ba8-bf4b-418226413dfb time_elapsed=114.34s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:53Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=ec47fc95-fe44-4fea-92f4-02227ed2cccb time_elapsed=117.31s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:54:55Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=2032fdba-aeb1-4727-90ce-7341f48d85bc time_elapsed=118.57s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:58Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=3acbfda9-a976-4d20-b42e-8a842a454046 time_elapsed=121.04s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:55:01Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=25e420b2-6943-4256-8f23-d76265d35004 time_elapsed=125.25s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:55:04Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=53485bf4-0b67-431a-975d-113f86a8b96e time_elapsed=126.62s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:55:07Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=638bd83a-a19e-4849-9e2a-3313c199bbfa time_elapsed=129.66s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:55:10Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=2ecd90cc-efa4-4c1b-ba4d-8971c4f8c1f9 time_elapsed=132.31s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:55:12Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=85d29606-1f6b-441f-ba40-9cba7dee3b3a time_elapsed=134.68s
selenosis-6767fbd76f-6nm9k selenosis time="2021-09-13T12:55:15Z" level=warning msg="Client disconnected" request="POST /wd/hub/session" request_id=9178318f-6fc7-402b-9b90-a4f979209681 time_elapsed=137.17s

If it is not possible to increase timeout for test client you can push browser images to the local registry or pre pull them on k8s nodes before starting tests.

Bdw is there any pods not related to selenosis running in selenosis namespace? There is some exceeded quota errors in logs files provided by you.

selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:25Z" level=info msg=session request="POST /wd/hub/session" request_id=38febc59-1b0e-458a-a275-74bdce083c2e time_elapsed=0.00s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:25Z" level=info msg="starting browser from image: selenoid/firefox:88.0" request="POST /wd/hub/session" request_id=38febc59-1b0e-458a-a275-74bdce083c2e time_elapsed=0.00s
selenosis-6767fbd76f-trcnz selenosis time="2021-09-13T12:54:25Z" level=error msg="failed to start browser: failed to create pod pods \"firefox-88-0-15c73334-c9bf-4efa-8b79-d1670597e3b0\" is forbidden: exceeded quota: selenosis-pod-limit, requested: pods=1, used: pods=22, limited: pods=22" request="POST /wd/hub/session" request_id=38febc59-1b0e-458a-a275-74bdce083c2e time_elapsed=0.02s
madhank93 commented 3 years ago

If it is not possible to increase timeout for test client you can push browser images to the local registry or pre pull them on k8s nodes before starting tests.

I'll try this out.

Bdw is there any pods not related to selenosis running in selenosis namespace? There is some exceeded quota errors in logs files provided by you.

Yes, I am running my test framework inside inside the selenosis namespace. Will it cause a problem ?

alcounit commented 3 years ago

I'll try this out.

Please let me know about the results.

Yes, I am running my test framework inside inside the selenosis namespace. Will it cause a problem ?

Yes, because selenosis creates resourcequota based on browser limits + workers (selenosis itself and selenoid-ui if deployed), you can add selenosis.app.type: worker label to your framework pods this will help selenosis to set right quota limit.

madhank93 commented 3 years ago

Thanks a ton. Increasing wait time and pre pulling the browser image solved the issue.

I have one question though, Let's say I am going to run 100 tests at a time in parallel.

Selenosis config:

 replica: 1
 browser limit - 25

Selenosis HPA config:

minReplicas: 1
maxReplicas: 10

Will it automatically scale and spawn 100 browsers ? Or how does this works ?

alcounit commented 3 years ago

Will it automatically scale and spawn 100 browsers ? Or how does this works ?

--browser-limit flag is limiting browsers pods in selenosis namespace, once you set it doesn't matter how many selenosis instances you have. in other words, if you want to run 100 sessions then you need to set --browser-limit to 100.

madhank93 commented 3 years ago

My issues got resolved and am closing this ticket.

Thank you so much 🙏 @alcounit . I am half way through writing an article using this Selenosis. Soon will share it. Hope you are active on Linkedin.

madhank93 commented 3 years ago

If I increase the browser limit sometimes it getting failed with below error

selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:16:34Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=051ab885-fd1f-444a-b931-a02280e2585f time_elapsed=194.22s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:16:39Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=09ea8a99-99b7-4915-9ee1-5b4297e4d332 time_elapsed=198.07s
selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:16:50Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=69a28e83-a246-4136-bcb4-2b872b92f419 time_elapsed=62.53s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:31Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=97f290d5-092f-485f-8354-75b7fbed078e time_elapsed=57.59s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:31Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=9b8c4d02-fec7-4745-be74-4f5947bf3d59 time_elapsed=59.70s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:31Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=d6bc31b3-ba35-47fa-96b4-b497878e2465 time_elapsed=58.15s
selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:19:33Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=cfe46d59-2448-415f-a874-b92181e1a91b time_elapsed=59.52s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:33Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=79485471-1a34-448e-b4fd-de2a5e893770 time_elapsed=59.58s
selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:19:33Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=26b92adc-51fc-41ac-80fc-5570f561b2ce time_elapsed=60.25s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:33Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=b44d89b5-ce44-4dfd-aaa0-6cc4f4eac88d time_elapsed=60.67s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:34Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=fef724f5-b17f-412f-b572-aa519d4eeed0 time_elapsed=60.84s
selenosis-79b465bbf4-89qlh selenosis time="2021-09-15T07:19:34Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=42818127-2529-4e84-af48-77a17b718a07 time_elapsed=61.85s
selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:19:34Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=6a3fe3f8-cd2c-4568-81c2-0f8551e30da3 time_elapsed=60.91s
selenosis-79b465bbf4-6hvv4 selenosis time="2021-09-15T07:19:34Z" level=error msg="unable to read service response: EOF" request="POST /wd/hub/session" request_id=65d23843-c0d5-4c9f-a145-7e01823d90f5 time_elapsed=61.64s

In general browser images like chrome and firefox will be downloaded only when a test has been started ?

alcounit commented 3 years ago

If I increase the browser limit sometimes it getting failed with below error

Interesting, can you please share browser pod logs?

In general browser images like chrome and firefox will be downloaded only when a test has been started ?

Yes, Pod starts with imagePullPolicy: IfNotPresent for seleniferous and browser images.

madhank93 commented 3 years ago

Selenosis log - https://gist.github.com/f795b81cc2431bfa7c55e5f144814082 Seleniferous log - https://gist.github.com/0d917dc4efdebf61e87c6f0af6a3916a

alcounit commented 3 years ago

See is that some firefox browsers failed to start and as a result session failed. Maybe try to play with resource limits for browsers.

firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 20
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Logging to: /dev/null
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"starting seleniferous v1.0.2","time":"2021-09-15T07:15:53Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"pod hostname firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1","time":"2021-09-15T07:15:53Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"kubernetes client created","time":"2021-09-15T07:15:53Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser Waiting X server...
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [INIT] [Loading configuration files...]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [INIT] [Loaded configuration from /tmp/browsers.json]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [INIT] [Timezone: Asia/Kolkata]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [INIT] [Listening on :4444]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"new session request","request":"POST /wd/hub/session","request_by":"selenosis-79b465bbf4-6hvv4","request_id":"7f976741-f25e-444c-97a9-d4f9ee7bc685","time":"2021-09-15T07:16:20Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [NEW_REQUEST] [unknown] [10.0.0.12]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [NEW_REQUEST_ACCEPTED] [unknown] [10.0.0.12]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [LOCATING_SERVICE] [firefox] []
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [-] [DEFAULT_VERSION] [Using default version: 88.0]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [USING_DRIVER] [firefox] [88.0]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [ALLOCATING_PORT]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [ALLOCATED_PORT] [36815]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [STARTING_PROCESS] [[/usr/bin/geckodriver --port=36815]]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 1631690180267 geckodriver INFO    Listening on 127.0.0.1:36815
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [PROCESS_STARTED] [436] [0.07s]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [PROXY_TO] [http://127.0.0.1:36815]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:20 [0] [SESSION_ATTEMPTED] [http://127.0.0.1:36815] [1]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 1631690180662 mozrunner::runner   INFO    Running command: "/usr/bin/firefox" "--marionette" "--window-size=1280x1024x24" "-headless" "--disable-gpu" "-remote-debugging-port" "33351" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile0dTmQE"
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser *** You are running in headless mode.
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: glxtest: libpci missing
firefox-88-0-f25ef509-5f6b-4e45-8a91-4cd3990a2f53 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: glxtest: libEGL missing
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: glxtest: libEGL missing
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 1631690186147 Marionette  INFO    Marionette enabled
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser (/usr/lib/firefox/firefox:533): GLib-GObject-CRITICAL **: 12:46:32.754: g_object_set: assertion 'G_IS_OBJECT (object)' failed
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser (/usr/lib/firefox/firefox:554): GLib-GObject-CRITICAL **: 12:46:33.505: g_object_set: assertion 'G_IS_OBJECT (object)' failed
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser (/usr/lib/firefox/firefox:594): GLib-GObject-CRITICAL **: 12:46:44.243: g_object_set: assertion 'G_IS_OBJECT (object)' failed
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser console.error: Region.jsm: "Error fetching region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 772))
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser console.error: Region.jsm: "Failed to fetch region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 419))
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:50 [0] [SESSION_ATTEMPT_TIMED_OUT] [30s]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"error","msg":"unable to extract sessionId from response","request":"POST /wd/hub/session","request_by":"selenosis-79b465bbf4-6hvv4","request_id":"7f976741-f25e-444c-97a9-d4f9ee7bc685","time":"2021-09-15T07:16:50Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"stopping seleniferous: failed to extract sessionId from response","time":"2021-09-15T07:16:50Z"}
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:50 [0] [SESSION_FAILED] [http://127.0.0.1:36815] [New session attempts retry count exceeded]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:50 [0] [TERMINATING_PROCESS] [436]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 browser 2021/09/15 12:46:50 [0] [TERMINATED_PROCESS] [436] [0.00s]
firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1 seleniferous {"level":"info","msg":"deleting pod firefox-88-0-0009b8d3-4a36-44e5-9524-9f987e5959b1","time":"2021-09-15T07:16:50Z"}
madhank93 commented 3 years ago

🙏 thanks again. I'll increase the resource limit and test it.