Hi Team,
when my automation script is runnning. ı encounter EADDRINUSE message. I encounter only with iPhone devices.
[eae8da1f][DevCon Factory] Requesting connection for device 00008030-000425EC1E04802E on local port 64886, device port 64886
[eae8da1f][DevCon Factory] Cached connections count: 0
[eae8da1f][XCUITestDriver@963f] {“code”:“EADDRINUSE”,“errno”:-48,“syscall”:“listen”,“address”:“::”,“port”:64886}
[eae8da1f][DevCon Factory] Releasing connections for 00008030-000425EC1E04802E device on any port number
[eae8da1f][DevCon Factory] No cached connections have been found
[eae8da1f][AppiumDriver@ea3e] Event ‘newSessionStarted’ logged at 1726310994933 (13:49:54 GMT+0300 (GMT+03:00))
[eae8da1f][device-farm-main] b38e30a0-282e-443e-b59a-45b39e4b3986 Session response: {“protocol”:“W3C”,“error”:{“code”:“EADDRINUSE”,“errno”:-48,“syscall”:“listen”,“address”:“::”,“port”:64886}}
[eae8da1f][device-farm-main] Removing pending session with capability_id: b38e30a0-282e-443e-b59a-45b39e4b3986
My gist : gist:c707fb88f3eb1c08ae21b7021a50e383 · GitHub
wreed
September 16, 2024, 3:02pm
2
More info here:
opened 03:52AM - 09 Sep 24 UTC
Hi team,
My devices remain busy how can fix this problem. After the automatio… n running script, devices remain busy.
Appium version : 2.11.3
Device farm version: @9.2.10
- [email protected]
- [email protected]
My comment :
appium server -ka 800 -p 4723 -pa /wd/hub --use-plugins=device-farm --plugin-device-farm-platform=both
My capabilities:
:caps:
appium:udid: "00008030-001445A62E6A802E"
platformName: "ios"
bundleId: "com.digiturk.tod"
appium:automationName: "XCUITest"
appium:autoAcceptAlerts: true
:appiumVersion: 2.11.3
appium:noReset: false
appium:fullReset: false
appium:clearSystemFiles: true
appium:newCommandTimeout: 1800
df:liveVideo: true
df:recordVideo: false
df:saveDeviceLogs: false
df:skipReport: false
df:build: ""
:appium_lib:
:server_url: ""
<img width="1147" alt="image" src="https://github.com/user-attachments/assets/70119a09-977e-4b6b-8955-e6b41915baec">
Seems like you are getting good advice there. I don’t use Device Farm plugin, maybe someone else here does and can help. Make sure to give all info so people know what you are talking about and can give the best possible answer.
Hi @wreed ,
it is not the same problem… ı’ didn’t use appium-device-farm plugin ı encounter the same problem.
wreed
September 17, 2024, 4:15pm
4
Advice is the same though:
This may happen if the automation tests are failing to quit the session at the end of the test. Can you confirm if the issue still observed even after clearing the sessions?
Like @sudharsan-selvaraj mentioned device free happens in 3 situations
When driver.quit is called from the test code.
When appium server thrown any unexpected error.
If the device is ideal for certain time.
Hi @wreed ,
okay ı understand you, however, if there is a problem in my code, why ı encounter this problem in the appium-inspector?
wreed
September 23, 2024, 3:25pm
6
Inspector is just another client. If you have an open session it will behave in the same way.