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

Unable to start automation and manual session on Node machine devices from Host URL #1474

Closed
Hammad1954 opened this issue Dec 16, 2024 · 12 comments

Comments

@Hammad1954
Copy link

Hammad1954 commented Dec 16, 2024

Unable to start automation and manual session on Node machine devices from Host URL

Link to Appium logs
https://gist.github.com/Hammad1954/895c14578cb4946d57f614e83b040e0e

@luprochazka-cen63872
Copy link

I see a similar problem after upgrade from 9.4.5.

node:events:514:28)\n at Socket.socketErrorListener (node:_http_client:501:9)\n at Socket.emit (node:events:514:28)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (/Users/coet_admin/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":260000,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","User-Agent":"axios/1.7.9","Content-Length":"1168","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"http://xxx.cz:4723/wd/hub/session","data":"{\"capabilities\":{\"alwaysMatch\":{\"platformName\":\"iOS\",\"appium:automationName\":\"XCUITest\",\"appium:newCommandTimeout\":120,\"appium:udid\":\"00008112-XXXX\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:mjpegServerPort\":63303,\"appium:waitForQuiescence\":false,\"appium:wdaEventloopIdleDelay\":0,\"appium:eventLoopIdleDelaySec\":0,\"appium:waitForIdleTimeout\":0,\"appium:settings\":{\"mjpegServerFramerate\":34,\"mjpegServerScreenshotQuality\":75,\"mjpegScalingFactor\":100,\"animationCoolOffTimeout\":0}},\"firstMatch\":[{}]},\"desiredCapabilities\":{\"platformName\":\"iOS\",\"appium:automationName\":\"XCUITest\",\"appium:newCommandTimeout\":120,\"appium:udid\":\"00008112-XXXX\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:mjpegServerPort\":63303,\"appium:waitForQuiescence\":false,\"appium:wdaEventloopIdleDelay\":0,\"appium:eventLoopIdleDelaySec\":0,\"appium:waitForIdleTimeout\":0,\"appium:settings\":{\"mjpegServerFramerate\":34,\"mjpegServerScreenshotQuality\":75,\"mjpegScalingFactor\":100,\"animationCoolOffTimeout\":0},\"appium:usePreinstalledWDA\":true,\"appium:updatedWDABundleId\":\"com.facebook.WebDriverAgentRunner.xctrunner\",\"appium:updatedWDABundleIdSuffix\":\"\",\"df:portForward\":true}}"},"code":"ENOTFOUND"} [HTTP] <-- POST /device-farm/api/dashboard/appiumSession 400 10 ms - 2 [HTTP] --> POST /device-farm/api/unblock {"udid":"00008112-XXX","host":"http://10.X.X:X:4723"} [device-farm-main] Received non-webdriver request with url /device-farm/api/unblock. So, not proxying it to downstream.

@sudharsan-selvaraj
Copy link
Member

@Hammad1954 @luprochazka-cen63872 Is the same issue observed in the latest version(v9.4.12) as well?

@luprochazka-cen63872
Copy link

Yes, i`ve tried the v9.4.12 today.

@sudharsan-selvaraj
Copy link
Member

Share the full server logs as gist.

@Hammad1954
Copy link
Author

@sudharsan-selvaraj

https://gist.github.com/Hammad1954/895c14578cb4946d57f614e83b040e0e

please refer this GIST for the HUB server logs

@sudharsan-selvaraj
Copy link
Member

Unable to start automation and manual session on Node machine devices from Host URL

Link to Appium logs https://gist.github.com/Hammad1954/895c14578cb4946d57f614e83b040e0e

Based on the above logs, the node machine unreachable from the hub. I can see the the below logs

[device-farm-main] Device Farm is not running at http://192.168.56.1:4723. Error: AxiosError: timeout of 30000ms exceeded
[device-farm-main] Removing device 192.168.43.103:5555 from host http://192.168.56.1:4723 from device list.
[device-farm-main] Removing device with udid(s): 192.168.43.103:5555 because the node is not alive

Can you make sure the node is up and its accessible from the hub.

@sudharsan-selvaraj
Copy link
Member

sudharsan-selvaraj commented Dec 16, 2024

@luprochazka-cen63872 Your issue seems different from this thread and would be great if you could open a new issue and lets continue there.

@luprochazka-cen63872
Copy link

@luprochazka-cen63872 Your issue seems different from this thread and would be great if you could open a new issue and lets continue there.

done: #1479

@Hammad1954
Copy link
Author

@sudharsan-selvaraj is it mandatory that node and hub should be on same network?
and device list is getting refreshed after 30 sec so node devices getting reconnected after 30sec could this be issue?

@Hammad1954
Copy link
Author

@sudharsan-selvaraj for your understanding I am using MAC machine as a HUB and a Ubuntu LTS inside my Windows Machine as Node.

@saikrishna321
Copy link
Member

@Hammad1954 hub and node machines should be able to ping each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants