appium: Appium server crashes and shuts down on first test

Hi, I have absolutely no idea why this is happening, the appium servers on the node machines connect fine to the hub, but the test will run for about 10 seconds and then close down the Appium server resulting in Unable to execute request: java.net.ConnectException: Connection refused: /127.0.0.1:4723 errors. Can’t see much info from the log, just seems to get cut off.

appium.log

node.log

Appium1.yml

server:
  port: 4723
  use-drivers:
    - xcuitest
  default-capabilities:
    appium:wdaLocalPort: 8100
    appium:derivedDataPath: ~/nodeData4
    appium:wdaLaunchTimeout: 720000 # 2 minutes per Simulator
    appium:usePrebuiltWDA: true
    appium:settings[pageSourceExcludedAttributes]: "visible"
    appium:newCommandTimeout: 9999
    appium:mjpegServerPort: 9103
    appium:mjpegScreenshotUrl: "http://127.0.0.1:9103"

Node file

# node4.toml
[server]
port = 5555

[node]
detect-drivers = false
session-timeout=900

[relay]
url = "http://127.0.0.1:4723"
status-endpoint = "/status"
configs = [
    "1", "{\"platformName\": \"iOS\", \"appium:platformVersion\": \"17.0\", \"appium:deviceName\": \"iPhone 15 Pro Max\", \"appium:automationName\": \"XCUITest\"}"
]

Edit: Adding the run command as well

_env/bin/py.test \
    tests \
    --html=${REPORT_HTML_FILENAME} \
    --junitxml=${REPORT_XML_FILENAME} \
    --reruns 1 \
    --variables variables/pytest/ios_test_parallel_caps.json \
    --capability appium:app "${APP_PATH}" \
    --capability appium:isHeadless true \
    --brand "${BRAND}" \
    --appium_port 4444 \
    -k "${TEST_REGEX}" \
    -n ${NODE_COUNT}
    #--appium_wait_for_condition appium \
    #--appium_wait_for_seconds 60 \

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (2 by maintainers)

Most upvoted comments

@alokkr016, what you are commenting is not related to this issue; please create an issue as I mentioned above. This will help the Appium maintainers focus on what they need to check.