Advertisement
ToanTK

Appium Device Farm - connect iOS

Mar 3rd, 2025 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Visual Pro Log 33.88 KB | Software | 0 0
  1. npm run hub
  2. npm info using npm@10.7.0
  3. npm info using node@v20.14.0
  4.  
  5. > hub
  6. > appium server -ka 800 --use-plugins=device-farm -pa /wd/hub --config ./configs/hub.json --allow-insecure=adb_shell --log $PWD/appium.log --log-level debug
  7.  
  8. [Appium] Attempting to load plugin device-farm...
  9. [Appium] Requiring plugin at /Users/mbhealth/Workspace/appium-server/node_modules/appium-device-farm/lib/src/main.js
  10. Using Metadata Path:  /Users/mbhealth/.cache/appium-device-farm
  11. Using Metadata Path:  /Users/mbhealth/.cache/appium-device-farm
  12. { DeviceFarmProLoader: [class F], default: [class F] }
  13. [Appium] WD has been successfully loaded in 0.188s
  14. [Appium] Welcome to Appium v2.16.2 (REV 018cf7d73ced32b2e0fcbaf95ca488d37148969f)
  15. [Appium] Non-default server args:
  16. [Appium] {
  17.   allowInsecure: [
  18.     'adb_shell'
  19.   ],
  20.   basePath: '/wd/hub',
  21.   keepAliveTimeout: 800,
  22.   port: 31337,
  23.   usePlugins: [
  24.     'device-farm'
  25.   ],
  26.   plugin: {
  27.     'device-farm': {
  28.       iosDeviceType: 'real'
  29.     }
  30.   }
  31. }
  32. [Appium] The autodetected Appium home path: /Users/mbhealth/Workspace/appium-server
  33. [Appium] Attempting to load driver uiautomator2...
  34. [Appium] Attempting to load driver xcuitest...
  35. [Appium] Requiring driver at /Users/mbhealth/Workspace/appium-server/node_modules/appium-uiautomator2-driver/build/index.js
  36. [Appium] AndroidUiautomator2Driver has been successfully loaded in 0.182s
  37. [Appium] Requiring driver at /Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/build/index.js
  38. [Appium] XCUITestDriver has been successfully loaded in 0.366s
  39. [device-farm-main] 📱 Update server with CLI Args: {"subcommand":"server","address":"0.0.0.0","allowInsecure":["adb_shell"],"basePath":"/wd/hub","keepAliveTimeout":800,"logFile":"/Users/mbhealth/Workspace/appium-server/appium.log","loglevel":"debug","port":31337,"usePlugins":["device-farm"],"configFile":"./configs/hub.json","extraArgs":[],"plugin":{"device-farm":{"platform":"both","iosDeviceType":"real","wdaBundleId":"com.facebook.WebDriverAgentRunner.xctrunner","preBuildWDAPath":"/Users/mbhealth/Documents/AppiumGuide/WebDriverAgentRunner-Runner.app","deviceAvailabilityTimeoutMs":300000,"newCommandTimeoutSec":60,"enableDashboard":false,"androidDeviceType":"both"}},"allowCors":false,"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"requestTimeout":3600,"localTimezone":false,"logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/j_/xqm821ws0w33t4xzl4cp938w0000gn/T"}
  40. { DeviceFarmProLoader: [class F], default: [class F] }
  41. [ADB] Found 2 'build-tools' folders under '/Users/mbhealth/Android/sdk' (newest first):
  42. [ADB]     /Users/mbhealth/Android/sdk/build-tools/35.0.0
  43. [ADB]     /Users/mbhealth/Android/sdk/build-tools/34.0.0
  44. [ADB] Using 'adb' from '/Users/mbhealth/Android/sdk/platform-tools/adb'
  45. [ADB] Running '/Users/mbhealth/Android/sdk/platform-tools/adb -P 5037 start-server'
  46. [device-farm-main] Cli Args: {"subcommand":"server","address":"0.0.0.0","allowInsecure":["adb_shell"],"basePath":"/wd/hub","keepAliveTimeout":800,"logFile":"/Users/mbhealth/Workspace/appium-server/appium.log","loglevel":"debug","port":31337,"usePlugins":["device-farm"],"configFile":"./configs/hub.json","extraArgs":[],"plugin":{"device-farm":{"platform":"both","iosDeviceType":"real","wdaBundleId":"com.facebook.WebDriverAgentRunner.xctrunner","preBuildWDAPath":"/Users/mbhealth/Documents/AppiumGuide/WebDriverAgentRunner-Runner.app","deviceAvailabilityTimeoutMs":300000,"newCommandTimeoutSec":60,"enableDashboard":false,"androidDeviceType":"both"}},"allowCors":false,"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"requestTimeout":3600,"localTimezone":false,"logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/j_/xqm821ws0w33t4xzl4cp938w0000gn/T"}
  47. [device-farm-main] 📱 Update server with Plugin Args: {"platform":"both","iosDeviceType":"real","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.100.62","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":true,"wdaBundleId":"com.facebook.WebDriverAgentRunner.xctrunner","preBuildWDAPath":"/Users/mbhealth/Documents/AppiumGuide/WebDriverAgentRunner-Runner.app"}
  48. [device-farm-main] Initializing storage
  49. [device-farm-main] Initializing database
  50. [device-farm-main] Creating new database: ./temp-appium/db.json
  51. [device-farm-main] Database loaded
  52. [device-farm-main] proxy is not required for axios
  53. [device-farm-main] Registering proxy middleware
  54. [device-farm-main] Registering websocket handler for Android Streaming
  55. [device-farm-main] Registering websocket handler for iOS Streaming
  56. Inside get streaming server
  57. [device-farm-main] 📣📣📣 I'm a hub and I'm listening on 192.168.100.62:31337
  58. [device-farm-main] Found 0 device candidates to be released
  59. [device-farm-main] Hub will clean pending sessions every 30000 ms with pending session timeout: 310000 ms
  60. [ADB] Using 'adb' from '/Users/mbhealth/Android/sdk/platform-tools/adb'
  61. [ADB] Running '/Users/mbhealth/Android/sdk/platform-tools/adb -P 5037 start-server'
  62. [ADB] Getting connected devices
  63. [ADB] No connected devices have been detected
  64. [device-farm-main] fetchAndroidDevices from host: undefined. Found 0 android devices
  65. [device-farm-main] Found 0 android devices
  66. [device-farm-main] Getting device info for 00008020-00012D112106002E
  67. [device-farm-main] Getting device info for 8c91b5cc121b597d563947817e6ef790c44bf18e
  68. [device-farm-main] Found GO_IOS in env
  69. [device-farm-main] Added 2 new devices to local database
  70. [device-farm-main] 📣📣📣 Device Farm Plugin will be served at 🔗 http://192.168.100.62:31337/device-farm with id 47b8f099-7c3f-4cd5-9b04-8954ecea71c7
  71. [Appium] Appium REST http interface listener started on http://0.0.0.0:31337/wd/hub
  72. [Appium] You can provide the following URLs in your client code to connect to this server:
  73.     http://127.0.0.1:31337/wd/hub (only accessible from the same host)
  74.     http://192.168.100.62:31337/wd/hub
  75.     http://192.168.191.14:31337/wd/hub
  76.     http://169.254.48.212:31337/wd/hub
  77. [Appium] Available drivers:
  78. [Appium]   - uiautomator2@4.1.0 (automationName 'UiAutomator2')
  79. [Appium]   - xcuitest@8.3.3 (automationName 'XCUITest')
  80. [Appium] Available plugins:
  81. [Appium]   - device-farm@9.8.2 (ACTIVE)
  82. [device-farm-main] iOS device with udid 8c91b5cc121b597d563947817e6ef790c44bf18e plugged! updating device list...
  83. [device-farm-main] Added 0 new devices to local database
  84. [HTTP] --> GET /device-farm/ {}
  85. [device-farm-main] Received non-webdriver request with url /device-farm/. So, not proxying it to downstream.
  86. [HTTP] <-- GET /device-farm/ 304 17 ms - -
  87. [HTTP] --> GET /device-farm/ui-assets/index-C0yVyUTw.js {}
  88. [device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-C0yVyUTw.js. So, not proxying it to downstream.
  89. [HTTP] --> GET /device-farm/ui-assets/index-BoTh_KCm.css {}
  90. [device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-BoTh_KCm.css. So, not proxying it to downstream.
  91. [HTTP] <-- GET /device-farm/ui-assets/index-C0yVyUTw.js 304 5 ms - -
  92. [HTTP] <-- GET /device-farm/ui-assets/index-BoTh_KCm.css 304 1 ms - -
  93. [HTTP] --> GET /device-farm/api/device {}
  94. [device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
  95. [HTTP] --> GET /dashboard/api/ping {}
  96. [device-farm-main] Received non-webdriver request with url /dashboard/api/ping. So, not proxying it to downstream.
  97. [HTTP] No route found for /dashboard/api/ping
  98. [HTTP] <-- GET /dashboard/api/ping 404 1 ms - 211
  99. [HTTP] <-- GET /device-farm/api/device 200 34 ms - 1240
  100. [HTTP] --> GET /device-farm/api/queue/length {}
  101. [device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
  102. [HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
  103. [HTTP] --> GET /device-farm/ {}
  104. [device-farm-main] Received non-webdriver request with url /device-farm/. So, not proxying it to downstream.
  105. [HTTP] <-- GET /device-farm/ 304 3 ms - -
  106. [HTTP] --> GET /device-farm/ui-assets/index-C0yVyUTw.js {}
  107. [device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-C0yVyUTw.js. So, not proxying it to downstream.
  108. [HTTP] --> GET /device-farm/ui-assets/index-BoTh_KCm.css {}
  109. [device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-BoTh_KCm.css. So, not proxying it to downstream.
  110. [HTTP] <-- GET /device-farm/ui-assets/index-C0yVyUTw.js 304 2 ms - -
  111. [HTTP] <-- GET /device-farm/ui-assets/index-BoTh_KCm.css 304 1 ms - -
  112. [HTTP] --> GET /device-farm/api/device {}
  113. [device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
  114. [HTTP] <-- GET /device-farm/api/device 304 1 ms - -
  115. [HTTP] --> GET /device-farm/api/queue/length {}
  116. [device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
  117. [HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
  118. [HTTP] --> GET /device-farm/api/device {}
  119. [device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
  120. [HTTP] <-- GET /device-farm/api/device 304 2 ms - -
  121. [HTTP] --> POST /device-farm/api/block {"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","host":"http://192.168.100.62:31337"}
  122. [device-farm-main] Received non-webdriver request with url /device-farm/api/block. So, not proxying it to downstream.
  123. [device-farm-main] Updated devices with filter: {"udid":{"$in":"8c91b5cc121b597d563947817e6ef790c44bf18e"}}
  124. [HTTP] <-- POST /device-farm/api/block 200 3 ms - 16
  125. [HTTP] --> POST /device-farm/api/dashboard/installiOSWDA {"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e"}
  126. [device-farm-main] Received non-webdriver request with url /device-farm/api/dashboard/installiOSWDA. So, not proxying it to downstream.
  127. [device-farm-main] Updated devices with filter: {"udid":{"$in":["8c91b5cc121b597d563947817e6ef790c44bf18e"]}}
  128. stdout:
  129. stderr: {"level":"warning","msg":"failed to get tunnel info","time":"2025-03-03T17:48:38+07:00","udid":"8c91b5cc121b597d563947817e6ef790c44bf18e"}
  130. {"appPath":"/Users/mbhealth/.cache/appium-device-farm/assets/wda-resign.ipa","device":"8c91b5cc121b597d563947817e6ef790c44bf18e","level":"info","msg":"installing","time":"2025-03-03T17:48:38+07:00"}
  131. {"level":"info","msg":"installing","percentComplete":5,"status":"CreatingStagingDirectory","time":"2025-03-03T17:48:39+07:00"}
  132. {"level":"info","msg":"installing","percentComplete":15,"status":"ExtractingPackage","time":"2025-03-03T17:48:39+07:00"}
  133. {"level":"info","msg":"installing","percentComplete":20,"status":"InspectingPackage","time":"2025-03-03T17:48:39+07:00"}
  134. {"level":"info","msg":"installing","percentComplete":20,"status":"TakingInstallLock","time":"2025-03-03T17:48:39+07:00"}
  135. {"level":"info","msg":"installing","percentComplete":30,"status":"PreflightingApplication","time":"2025-03-03T17:48:39+07:00"}
  136. {"level":"info","msg":"installing","percentComplete":30,"status":"InstallingEmbeddedProfile","time":"2025-03-03T17:48:39+07:00"}
  137. {"level":"info","msg":"installing","percentComplete":40,"status":"VerifyingApplication","time":"2025-03-03T17:48:39+07:00"}
  138. {"level":"info","msg":"installing","percentComplete":50,"status":"CreatingContainer","time":"2025-03-03T17:48:39+07:00"}
  139. {"level":"info","msg":"installing","percentComplete":60,"status":"InstallingApplication","time":"2025-03-03T17:48:39+07:00"}
  140. {"level":"info","msg":"installing","percentComplete":70,"status":"PostflightingApplication","time":"2025-03-03T17:48:39+07:00"}
  141. {"level":"info","msg":"installing","percentComplete":80,"status":"SandboxingApplication","time":"2025-03-03T17:48:39+07:00"}
  142. {"level":"info","msg":"installing","percentComplete":90,"status":"GeneratingApplicationMap","time":"2025-03-03T17:48:39+07:00"}
  143. {"level":"info","msg":"installation successful","time":"2025-03-03T17:48:39+07:00"}
  144.  
  145. [device-farm-main] Updated devices with filter: {"udid":{"$in":["8c91b5cc121b597d563947817e6ef790c44bf18e"]}}
  146. /Users/mbhealth/Workspace/appium-server/.bin/go-ios runwda --udid=8c91b5cc121b597d563947817e6ef790c44bf18e --bundleid=com.facebook.WebDriverAgentRunner.xctrunner --testrunnerbundleid=com.facebook.WebDriverAgentRunner.xctrunner --xctestconfig=WebDriverAgentRunner.xctest --env USE_PORT=51024 --env MJPEG_SERVER_PORT=51025
  147. [HTTP] <-- POST /device-farm/api/dashboard/installiOSWDA 200 1839 ms - 106
  148. [HTTP] --> POST /device-farm/api/dashboard/appiumSession {"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","origin":"http://localhost:31337"}
  149. [device-farm-main] Received non-webdriver request with url /device-farm/api/dashboard/appiumSession. So, not proxying it to downstream.
  150. [device-farm-main] Updated devices with filter: {"udid":{"$in":["8c91b5cc121b597d563947817e6ef790c44bf18e"]}}
  151. [DevCon Factory Device Farm] Requesting connection for device 8c91b5cc121b597d563947817e6ef790c44bf18e on local port 51024, device port 51024
  152. [DevCon Factory Device Farm] Cached connections count: 0
  153. [DevCon Factory Device Farm] Successfully requested the connection for 8c91b5cc121b597d563947817e6ef790c44bf18e:51024
  154. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  155. [device-farm-main]Waiting for WDA to be up and running!!
  156. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  157. [device-farm-main]Waiting for WDA to be up and running!!
  158. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  159. [device-farm-main]Waiting for WDA to be up and running!!
  160. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  161. [device-farm-main]Waiting for WDA to be up and running!!
  162. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  163. [device-farm-main]Waiting for WDA to be up and running!!
  164. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  165. [device-farm-main]Waiting for WDA to be up and running!!
  166. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  167. [device-farm-main]Waiting for WDA to be up and running!!
  168. [iProxy@8c91b5cc:51024] Connection was refused to port 51024
  169. [device-farm-main]Waiting for WDA to be up and running!!
  170. [HTTP] --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":120,"appium:udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","df:skipReport":true,"df:liveVideo":true,"appium:mjpegServerPort":51088,"appium:waitForQuiescence":false,"appium:wdaEventloopIdleDelay":0,"appium:eventLoopIdleDelaySec":0,"appium:waitForIdleTimeout":0,"appium:settings":{"mjpegServerFramerate":10,"mjpegServerScreenshotQuality":0,"mjpegScalingFactor":50,"animationCoolOffTimeout":0}},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":120,"appium:udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","df:skipReport":true,"df:liveVideo":true,"appium:mjpegServerPort":51088,"appium:waitForQuiescence":false,"appium:wdaEventloopIdleDelay":0,"appium:eventLoopIdleDelaySec":0,"appium:waitForIdleTimeout":0,"appium:settings":{"mjpegServerFramerate":10,"mjpegServerScreenshotQuality":0,"mjpegScalingFactor":50,"animationCoolOffTimeou...
  171. [AppiumDriver@fdb3] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":120,"appium:udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","df:skipReport":true,"df:liveVideo":true,"appium:mjpegServerPort":51088,"appium:waitForQuiescence":false,"appium:wdaEventloopIdleDelay":0,"appium:eventLoopIdleDelaySec":0,"appium:waitForIdleTimeout":0,"appium:settings":{"mjpegServerFramerate":10,"mjpegServerScreenshotQuality":0,"mjpegScalingFactor":50,"animationCoolOffTimeout":0},"appium:webDriverAgentUrl":"http://192.168.100.62:51024"},null,{"alwaysMatch":{"platformName":"iOS","appium:automationName":"XCUITest","appium:newCommandTimeout":120,"appium:udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","df:skipReport":true,"df:liveVideo":true,"appium:mjpegServerPort":51088,"appium:waitForQuiescence":false,"appium:wdaEventloopIdleDelay":0,"appium:eventLoopIdleDelaySec":0,"appium:waitForIdleTimeout":0,"appium:settings":{"mjpegServerFramerate":10,"mjpegServerScreenshotQuality":0,"mjpegScalingFactor":50,"animationCoolOff...
  172. [device-farm-main] 📱 Plugin Args: {"platform":"both","iosDeviceType":"real","wdaBundleId":"com.facebook.WebDriverAgentRunner.xctrunner","preBuildWDAPath":"/Users/mbhealth/Documents/AppiumGuide/WebDriverAgentRunner-Runner.app","deviceAvailabilityTimeoutMs":300000,"newCommandTimeoutSec":60,"enableDashboard":false,"androidDeviceType":"both"}
  173. [AppiumDriver@fdb3] Plugins which can handle cmd 'createSession': device-farm
  174. [AppiumDriver@fdb3] Plugin device-farm is now handling cmd 'createSession'
  175. [device-farm-main] 📱 pluginArgs: {"platform":"both","iosDeviceType":"real","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.100.62","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":true,"wdaBundleId":"com.facebook.WebDriverAgentRunner.xctrunner","preBuildWDAPath":"/Users/mbhealth/Documents/AppiumGuide/WebDriverAgentRunner-Runner.app"}
  176. [device-farm-main] Receiving session request at host: 192.168.100.62
  177. [device-farm-main] 📱 Creating temporary session capability_id: 1905c9c4-b00d-4b90-aebe-964a3606f21f
  178. [device-farm-main] Merged Capabilities: {
  179. [device-farm-main]   "platformName": "iOS",
  180. [device-farm-main]   "appium:automationName": "XCUITest",
  181. [device-farm-main]   "appium:newCommandTimeout": 120,
  182. [device-farm-main]   "appium:udid": "8c91b5cc121b597d563947817e6ef790c44bf18e",
  183. [device-farm-main]   "df:skipReport": true,
  184. [device-farm-main]   "df:liveVideo": true,
  185. [device-farm-main]   "appium:mjpegServerPort": 51088,
  186. [device-farm-main]   "appium:waitForQuiescence": false,
  187. [device-farm-main]   "appium:wdaEventloopIdleDelay": 0,
  188. [device-farm-main]   "appium:eventLoopIdleDelaySec": 0,
  189. [device-farm-main]   "appium:waitForIdleTimeout": 0,
  190. [device-farm-main]   "appium:settings": {
  191. [device-farm-main]     "mjpegServerFramerate": 10,
  192. [device-farm-main]     "mjpegServerScreenshotQuality": 0,
  193. [device-farm-main]     "mjpegScalingFactor": 50,
  194. [device-farm-main]     "animationCoolOffTimeout": 0
  195. [device-farm-main]   }
  196. [device-farm-main] }
  197. Acquiring Lock with name aacdeeegiimnorsv
  198. [device-farm-main] Max session count: 8, Busy device count: 0
  199. [device-farm-main] Waiting for free device. Filter: {"platform":"ios","udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","busy":false,"userBlocked":false}}
  200. [device-farm-main] Updated devices with filter: {"platform":"ios","udid":{"$in":"8c91b5cc121b597d563947817e6ef790c44bf18e"}}
  201. [device-farm-main] Updated devices with filter: {"platform":"ios","udid":{"$in":"8c91b5cc121b597d563947817e6ef790c44bf18e"}}
  202. [device-farm-main] 📱 Blocking device 8c91b5cc121b597d563947817e6ef790c44bf18e at host http://192.168.100.62:31337 for new session
  203. [device-farm-main] Updating allocated device: "{"userBlocked":true,"offline":false,"wdaLocalPort":51132,"mjpegServerPort":51131,"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","sdk":"15.8.3","name":"iPhone 7+ ","busy":false,"realDevice":true,"deviceType":"real","platform":"ios","host":"http://192.168.100.62:31337","wdaBundleId":"","productModel":"iPhone9,4","totalUtilizationTimeMilliSec":41532,"sessionStartTime":0,"width":"414","height":"736","tags":[],"webDriverAgentHost":"http://192.168.100.62","webDriverAgentUrl":"http://192.168.100.62:51132","nodeId":"47b8f099-7c3f-4cd5-9b04-8954ecea71c7","meta":{"revision":1,"created":1740998913840,"version":0,"updated":1740998917976},"$loki":2}"
  204. [device-farm-main] Updated allocated device: "[{"userBlocked":true,"offline":false,"wdaLocalPort":51024,"mjpegServerPort":51025,"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","sdk":"15.8.3","name":"iPhone 7+ ","busy":true,"realDevice":true,"deviceType":"real","platform":"ios","host":"http://192.168.100.62:31337","wdaBundleId":"","productModel":"iPhone9,4","totalUtilizationTimeMilliSec":41532,"sessionStartTime":0,"width":"414","height":"736","tags":[],"webDriverAgentHost":"http://192.168.100.62","webDriverAgentUrl":"http://192.168.100.62:51024","nodeId":"47b8f099-7c3f-4cd5-9b04-8954ecea71c7","meta":{"revision":3,"created":1740998913840,"version":0,"updated":1740998923959},"$loki":2,"newCommandTimeout":120}]"
  205. [device-farm-main] device.host: http://192.168.100.62:31337 and pluginArgs.bindHostOrIp: 192.168.100.62
  206. [device-farm-main] 📱 Creating session on the same node
  207. [AppiumDriver@fdb3] Executing default handling behavior for command 'createSession'
  208. [AppiumDriver@fdb3] Event 'newSessionRequested' logged at 1740998923960 (17:48:43 GMT+0700 (Indochina Time))
  209. [Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
  210. [Appium] The 'xcuitest' driver was installed and matched caps.
  211. [Appium] Will require it at /Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver
  212. [Appium] Requiring driver at /Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/build/index.js
  213. [AppiumDriver@fdb3] Appium v2.16.2 creating new XCUITestDriver (v8.3.3) session
  214. [AppiumDriver@fdb3] Checking BaseDriver versions for Appium and XCUITestDriver
  215. [AppiumDriver@fdb3] Appium's BaseDriver version is 9.16.2
  216. [AppiumDriver@fdb3] XCUITestDriver's BaseDriver version is 9.16.2
  217. [AppiumDriver@fdb3] Explicitly enabling use of insecure features:
  218. [AppiumDriver@fdb3]     adb_shell
  219. [XCUITestDriver@a729]
  220. [XCUITestDriver@a729] Creating session with W3C capabilities: {
  221.   "alwaysMatch": {
  222.     "platformName": "iOS",
  223.     "df:skipReport": true,
  224.     "df:liveVideo": true,
  225.     "appium:automationName": "XCUITest",
  226.     "appium:newCommandTimeout": 120,
  227.     "appium:waitForQuiescence": false,
  228.     "appium:wdaEventloopIdleDelay": 0,
  229.     "appium:eventLoopIdleDelaySec": 0,
  230.     "appium:waitForIdleTimeout": 0,
  231.     "appium:udid": "8c91b5cc121b597d563947817e6ef790c44bf18e",
  232.     "appium:deviceName": "iPhone 7+ ",
  233.     "appium:platformVersion": "15.8.3",
  234.     "appium:mjpegServerPort": 51131,
  235.     "appium:webDriverAgentUrl": "http://192.168.100.62:51132"
  236.   },
  237.   "firstMatch": [
  238.     {}
  239.   ]
  240. }
  241. [BaseDriver] The 'waitForQuiescence' capability has been deprecated and must not be used anymore. Please check the driver documentation for possible alternatives.
  242. [BaseDriver] The 'waitForQuiescence' capability has been deprecated and must not be used anymore. Please check the driver documentation for possible alternatives.
  243. [XCUITestDriver@a729] The following provided capabilities were not recognized by this driver:
  244. [XCUITestDriver@a729]   df:skipReport
  245. [XCUITestDriver@a729]   df:liveVideo
  246. [XCUITestDriver@a729]   eventLoopIdleDelaySec
  247. [XCUITestDriver@a729] The desired capabilities include neither an app nor a bundleId. WebDriverAgent will be started without the default app
  248. [b811339b][XCUITestDriver@a729] Session created with session id: b811339b-9a92-4acb-be07-1b3fc99d3702
  249. [b811339b][XCUITest] Current user: 'mbhealth'
  250. [b811339b][XCUITestDriver@a729] Skipping checking of the real devices availability since the session specifies appium:webDriverAgentUrl
  251. [b811339b][XCUITestDriver@a729] Creating iDevice object with udid '8c91b5cc121b597d563947817e6ef790c44bf18e'
  252. [b811339b][XCUITestDriver@a729] Determining device to run tests on: udid: '8c91b5cc121b597d563947817e6ef790c44bf18e', real device: true
  253. [b811339b][XCUITestDriver@a729] Normalized platformVersion capability value '15.8.3' to '15.8'
  254. [b811339b][XCUITestDriver@a729] Event 'xcodeDetailsRetrieved' logged at 1740998924319 (17:48:44 GMT+0700 (Indochina Time))
  255. [b811339b][XCUITestDriver@a729] Event 'appConfigured' logged at 1740998924319 (17:48:44 GMT+0700 (Indochina Time))
  256. [b811339b][XCUITestDriver@a729] Event 'resetStarted' logged at 1740998924319 (17:48:44 GMT+0700 (Indochina Time))
  257. [b811339b][XCUITestDriver@a729] Reset: running ios real device reset flow
  258. [b811339b][XCUITestDriver@a729] Event 'resetComplete' logged at 1740998924320 (17:48:44 GMT+0700 (Indochina Time))
  259. [b811339b][XCUITestDriver@a729] Using WDA path: '/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
  260. [b811339b][XCUITestDriver@a729] Using WDA agent: '/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
  261. [b811339b][XCUITestDriver@a729] The pyidevice tool is not present in PATH. Skipping crash logs collection for real devices.
  262. [b811339b][XCUITestDriver@a729] Event 'logCaptureStarted' logged at 1740998924506 (17:48:44 GMT+0700 (Indochina Time))
  263. [b811339b][XCUITestDriver@a729] Setting up real device
  264. [b811339b][DevCon Factory] Requesting connection for device 8c91b5cc121b597d563947817e6ef790c44bf18e on local port 51132
  265. [b811339b][DevCon Factory] Cached connections count: 0
  266. [b811339b][DevCon Factory] Successfully requested the connection for 8c91b5cc121b597d563947817e6ef790c44bf18e:51132
  267. [b811339b][XCUITestDriver@a729] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
  268. [b811339b][XCUITestDriver@a729] Trying to start WebDriverAgent once since at least one of webDriverAgentUrl,usePreinstalledWDA capabilities is provided
  269. [b811339b][XCUITestDriver@a729] Event 'wdaStartAttempted' logged at 1740998924508 (17:48:44 GMT+0700 (Indochina Time))
  270. [b811339b][XCUITestDriver@a729] Using provided WebdriverAgent at 'http://192.168.100.62:51132'
  271. [b811339b][WD Proxy] Matched '/status' to command name 'getStatus'
  272. [b811339b][WD Proxy] Proxying [GET /status] to [GET http://192.168.100.62:51132/status] with no body
  273. [b811339b][WD Proxy] connect ECONNREFUSED 192.168.100.62:51132
  274. [b811339b][XCUITestDriver@a729] WDA is not listening at 'http://192.168.100.62:51132/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.100.62:51132
  275. [b811339b][XCUITestDriver@a729] Event 'wdaSessionAttempted' logged at 1740998924551 (17:48:44 GMT+0700 (Indochina Time))
  276. [b811339b][XCUITestDriver@a729] Sending createSession command to WDA
  277. [b811339b][XCUITestDriver@a729] Matched '/status' to command name 'getStatus'
  278. [b811339b][XCUITestDriver@a729] Proxying [GET /status] to [GET http://192.168.100.62:51132/status] with no body
  279. [b811339b][XCUITestDriver@a729] connect ECONNREFUSED 192.168.100.62:51132
  280. [b811339b][XCUITestDriver@a729] Event 'wdaSessionFailed' logged at 1740998924558 (17:48:44 GMT+0700 (Indochina Time))
  281. [b811339b][XCUITestDriver@a729] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.100.62:51132
  282.     at JWProxy.command (/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:353:13)
  283.     at processTicksAndRejections (node:internal/process/task_queues:95:5)
  284.     at XCUITestDriver.proxyCommand (/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:103:35)
  285.     at /Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/lib/driver.js:926:59
  286.     at wrapped (/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
  287.     at retry (/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
  288.     at retryInterval (/Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
  289.     at /Users/mbhealth/Workspace/appium-server/node_modules/appium-xcuitest-driver/lib/driver.js:881:7
  290. [b811339b][XCUITestDriver@a729] {}
  291. [b811339b][DevCon Factory] Releasing connections for 8c91b5cc121b597d563947817e6ef790c44bf18e device on any port number
  292. [b811339b][DevCon Factory] Found cached connections to release: ["8c91b5cc121b597d563947817e6ef790c44bf18e:51132"]
  293. [b811339b][DevCon Factory] Cached connections count: 0
  294. [b811339b][AppiumDriver@fdb3] Event 'newSessionStarted' logged at 1740998924558 (17:48:44 GMT+0700 (Indochina Time))
  295. [b811339b][device-farm-main] 📱 Forwarding ios port to real device 8c91b5cc121b597d563947817e6ef790c44bf18e for manual interaction
  296. [b811339b][DevCon Factory Device Farm] Requesting connection for device 8c91b5cc121b597d563947817e6ef790c44bf18e on local port 51131, device port 51131
  297. [b811339b][DevCon Factory Device Farm] Cached connections count: 0
  298. [b811339b][DevCon Factory Device Farm] Successfully requested the connection for 8c91b5cc121b597d563947817e6ef790c44bf18e:51131
  299. [b811339b][device-farm-main] 📱 1905c9c4-b00d-4b90-aebe-964a3606f21f Session response:
  300. [b811339b][device-farm-main] {"protocol":"W3C","error":{}}
  301. [b811339b][device-farm-main] 📱 Removing pending session with capability_id: 1905c9c4-b00d-4b90-aebe-964a3606f21f
  302. [b811339b][device-farm-main] 1905c9c4-b00d-4b90-aebe-964a3606f21f 📱 Device UDID 8c91b5cc121b597d563947817e6ef790c44bf18e unblocked. Reason: Failed to create session
  303. [b811339b][AppiumDriver@fdb3] Encountered internal error running command: Error: Error: Unable to start WebDriverAgent session. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 192.168.100.62:51132
  304.     at WD.this (/Users/mbhealth/Workspace/appium-server/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/plugin.js:369:23)
  305.     at WD.generator (/Users/mbhealth/Workspace/appium-server/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/plugin.js:355:17)
  306.     at Generator.next (<anonymous>)
  307.     at WT (/Users/mbhealth/Workspace/appium-server/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/plugin.js:28:48)
  308. [b811339b][HTTP] <-- POST /wd/hub/session 500 655 ms - 1010
  309. [device-farm-main] Received error from remote node: {"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500\n    at settle (/Users/mbhealth/Workspace/appium-server/node_modules/axios/lib/core/settle.js:19:12)\n    at IncomingMessage.handleStreamEnd (/Users/mbhealth/Workspace/appium-server/node_modules/axios/lib/adapters/http.js:589:11)\n    at IncomingMessage.emit (node:events:531:35)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at Axios.request (/Users/mbhealth/Workspace/appium-server/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.2","Content-Length":"1085","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"http://localhost:31337/wd/hub/session","data":"{\"capabilities\":{\"alwaysMatch\":{\"platformName\":\"iOS\",\"appium:automationName\":\"XCUITest\",\"appium:newCommandTimeout\":120,\"appium:udid\":\"8c91b5cc121b597d563947817e6ef790c44bf18e\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:mjpegServerPort\":51088,\"appium:waitForQuiescence\":false,\"appium:wdaEventloopIdleDelay\":0,\"appium:eventLoopIdleDelaySec\":0,\"appium:waitForIdleTimeout\":0,\"appium:settings\":{\"mjpegServerFramerate\":10,\"mjpegServerScreenshotQuality\":0,\"mjpegScalingFactor\":50,\"animationCoolOffTimeout\":0}},\"firstMatch\":[{}]},\"desiredCapabilities\":{\"platformName\":\"iOS\",\"appium:automationName\":\"XCUITest\",\"appium:newCommandTimeout\":120,\"appium:udid\":\"8c91b5cc121b597d563947817e6ef790c44bf18e\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:mjpegServerPort\":51088,\"appium:waitForQuiescence\":false,\"appium:wdaEventloopIdleDelay\":0,\"appium:eventLoopIdleDelaySec\":0,\"appium:waitForIdleTimeout\":0,\"appium:settings\":{\"mjpegServerFramerate\":10,\"mjpegServerScreenshotQuality\":0,\"mjpegScalingFactor\":50,\"animationCoolOffTimeout\":0},\"appium:webDriverAgentUrl\":\"http://192.168.100.62:51024\"}}"},"code":"ERR_BAD_RESPONSE","status":500}
  310. [HTTP] <-- POST /device-farm/api/dashboard/appiumSession 400 4783 ms - 1010
  311. [HTTP] --> POST /device-farm/api/unblock {"udid":"8c91b5cc121b597d563947817e6ef790c44bf18e","host":"http://192.168.100.62:31337"}
  312. [device-farm-main] Received non-webdriver request with url /device-farm/api/unblock. So, not proxying it to downstream.
  313. [device-farm-main] Updated devices with filter: {"udid":{"$in":"8c91b5cc121b597d563947817e6ef790c44bf18e"}}
  314. [HTTP] <-- POST /device-farm/api/unblock 200 1 ms - 16
  315. ^C[Appium] Received SIGINT - shutting down
  316. [AppiumDriver@fdb3] There are no active sessions for cleanup
  317. [HTTP] Closing Appium HTTP server
  318. [HTTP] Appium HTTP server has been succesfully closed after 0ms
  319. npm info ok
Tags: ios appium
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement