Skip to content

[🐛 Bug]: Relay Node unable to check service status of Appium service. #2612

@ghost

Description

What happened?

I have deployed a single relay node that connects to an Appium instance, both deployed in AKS. I have exec'd onto the pod and can confirm that the Appium instance /status endpoint is accessible. However, the relay node is unable to check the service status (see log below).

seluser@appium-android-relay-b5d7577cf-kgjfc:/$ curl -v http://appium-android:4723/status --noproxy '*'
* Host appium-android:4723 was resolved.
* IPv6: (none)
* IPv4: 192.168.155.183
*   Trying 192.168.155.183:4723...
* Connected to appium-android (192.168.155.183) port 4723
> GET /status HTTP/1.1> Host: appium-android:4723
> User-Agent: curl/8.5.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< X-Powered-By: Express
< Content-Type: application/json; charset=utf-8
< Content-Length: 111
< ETag: W/"6f-zzKZfRMJr2gw2xMw961KhvnKwiM"
< Date: Fri, 24 Jan 2025 10:06:30 GMT
< Connection: keep-alive
< Keep-Alive: timeout=600
< * Connection #0 to host appium-android left intact
{"value":{"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.15.0"}}}

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

crossBrowsers
  relayNode:
    - nameOverride: appium-android-relay
      enabled: true
      imageName: node-base
      port: 5555
      annotations:
        sidecar.istio.io/inject: "false"
      extraEnvironmentVariables:
        - name: SE_NODE_RELAY_URL
          value: "http://appium-android:4723"
        - name: SE_NODE_RELAY_STATUS_ENDPOINT
          value: "/status"
        - name: SE_NODE_RELAY_PROTOCOL_VERSION
          value: "HTTP/1.1"
        - name: SE_NODE_RELAY_MAX_SESSIONS
          value: "1"
        - name: SE_NODE_RELAY_BROWSER_NAME
          value: "chrome"
        - name: SE_NODE_RELAY_PLATFORM_NAME
          value: "Android"
        - name: SE_NODE_RELAY_PLATFORM_VERSION
          value: "13"

Relevant log output

09:45:14.978 WARN [RelaySessionFactory.isServiceUp] - Error checking service status http://appium-android:4723/status. java.net.ConnectException{"class": "RelaySessionFactory","log-level": "WARNING","log-message": "Error checking service status http:\u002f\u002fappium-android:4723\u002fstatus. java.net.ConnectException","log-name": "org.openqa.selenium.grid.node.relay.RelaySessionFactory","log-time-local": "2025-01-24T09:45:14.978Z","log-time-utc": "2025-01-24T09:45:14.978Z","method": "isServiceUp"}

Operating System

AKS

Docker Selenium version (image tag)

4.27.0

Selenium Grid chart version (chart version)

0.38.5

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