Skip to content

Instantly share code, notes, and snippets.

@sai-tirunagiri
Created May 5, 2021 18:55
Show Gist options
  • Save sai-tirunagiri/83189c2f37cc6c3c11645adb21c9c31b to your computer and use it in GitHub Desktop.
Save sai-tirunagiri/83189c2f37cc6c3c11645adb21c9c31b to your computer and use it in GitHub Desktop.
appium logs for webdriveragent crash
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa","automationName":"XCUITest","deviceName":"5126be31cfff436356a1627c09c9268136513a67","platformName":"iOS","platformVersion":"14.1","udid":"5126be31cfff436356a1627c09c9268136513a67","useJSONSource":true,"newCommandTimeout":0,"connectHardwareKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa","automationName":"XCUITest","deviceName":"5126be31cfff436356a1627c09c9268136513a67","platformName":"iOS","platformVersion":"14.1","udid":"5126be31cfff436356a1627c09c9268136513a67","useJSONSource":true,"newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1620240867041 (00:24:27 GMT+0530 (India Standard Time))
[Appium] Appium v1.20.2 creating new XCUITestDriver (v3.33.1) session
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {
[debug] [BaseDriver] "app": "/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa",
[debug] [BaseDriver] "automationName": "XCUITest",
[debug] [BaseDriver] "deviceName": "5126be31cfff436356a1627c09c9268136513a67",
[debug] [BaseDriver] "platformName": "iOS",
[debug] [BaseDriver] "platformVersion": "14.1",
[debug] [BaseDriver] "udid": "5126be31cfff436356a1627c09c9268136513a67",
[debug] [BaseDriver] "useJSONSource": true,
[debug] [BaseDriver] "newCommandTimeout": 0,
[debug] [BaseDriver] "connectHardwareKeyboard": true
[debug] [BaseDriver] }
[BaseDriver] Session created with session id: 373d8e57-0121-4acf-8525-ec7823c5301c
[debug] [XCUITest] Current user: 'saiprasadt'
[debug] [XCUITest] Available devices: 5126be31cfff436356a1627c09c9268136513a67
[debug] [XCUITest] Creating iDevice object with udid '5126be31cfff436356a1627c09c9268136513a67'
[XCUITest] Determining device to run tests on: udid: '5126be31cfff436356a1627c09c9268136513a67', real device: true
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1620240868264 (00:24:28 GMT+0530 (India Standard Time))
[BaseDriver] Using local app '/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa'
[debug] [BaseDriver] Unzipping '/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa'
[debug] [BaseDriver] Enforcing UTF-8 encoding on the extracted file names for 'IntegrationApp.ipa'
[debug] [BaseDriver] Extracted 54 items from '/Users/saiprasadt/Desktop/IntegrationApp-2021-04-29-15-02-32/IntegrationApp.ipa' in 77ms
[debug] [BaseDriver] Matched 1 item in the extracted archive. Assuming 'Payload/IntegrationApp.app' is the correct bundle
[BaseDriver] Unzipped local app to '/var/folders/mx/bgpr87c15jb9_y09cj3kytkr0000gq/T/202146-35316-uptzfr.ifn3/IntegrationApp.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1620240868369 (00:24:28 GMT+0530 (India Standard Time))
[debug] [XCUITest] Checking whether app '/var/folders/mx/bgpr87c15jb9_y09cj3kytkr0000gq/T/202146-35316-uptzfr.ifn3/IntegrationApp.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/var/folders/mx/bgpr87c15jb9_y09cj3kytkr0000gq/T/202146-35316-uptzfr.ifn3/IntegrationApp.app': 'com.facebook.wda.integrationApp'
[debug] [BaseDriver] Event 'resetStarted' logged at 1620240868370 (00:24:28 GMT+0530 (India Standard Time))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1620240868370 (00:24:28 GMT+0530 (India Standard Time))
[WebDriverAgent] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent'
[WebDriverAgent] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1620240868657 (00:24:28 GMT+0530 (India Standard Time))
[XCUITest] Setting up real device
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[debug] [XCUITest] Installing '/var/folders/mx/bgpr87c15jb9_y09cj3kytkr0000gq/T/202146-35316-uptzfr.ifn3/IntegrationApp.app' on device with UUID '5126be31cfff436356a1627c09c9268136513a67'...
[debug] [Support] Traversed 18 directories and 35 files in 297ms
[debug] [XCUITest] Pushed the app files successfully after 487ms
[XCUITest] App installation succeeded after 1427ms
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1620240870269 (00:24:30 GMT+0530 (India Standard Time))
[debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[DevCon Factory] Requesting connection for device 5126be31cfff436356a1627c09c9268136513a67 on local port 8100, device port 8100
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 5126be31cfff436356a1627c09c9268136513a67:8100
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [WebDriverAgent] WDA is not listening at 'http://127.0.0.1:8100/'
[debug] [WebDriverAgent] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1620240870398 (00:24:30 GMT+0530 (India Standard Time))
[WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1619694138000 >= 1613633577034)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*5126be31cfff436356a1627c09c9268136513a67' for the device 5126be31cfff436356a1627c09c9268136513a67...
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*5126be31cfff436356a1627c09c9268136513a67' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=5126be31cfff436356a1627c09c9268136513a67 IPHONEOS_DEPLOYMENT_TARGET=14.1 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[WebDriverAgent] xcodebuild exited with code 'null' and signal 'SIGTERM'
[WebDriverAgent] Cannot retrieve WDA build settings. Original error: Command 'xcodebuild -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -showBuildSettings' exited with code null
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240873757 (00:24:33 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240874784 (00:24:34 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240875797 (00:24:35 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240876809 (00:24:36 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240877825 (00:24:37 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240878840 (00:24:38 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240879859 (00:24:39 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240880874 (00:24:40 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240881891 (00:24:41 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240882908 (00:24:42 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240883922 (00:24:43 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240884934 (00:24:44 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240885945 (00:24:45 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240886961 (00:24:46 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1620240887974 (00:24:47 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[debug] [iProxy@5126be31:8100] Connection was refused to port 8100
[WD Proxy] socket hang up
[debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up). Retrying...
[debug] [XCUITest] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
[debug] [XCUITest] at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:275:13)
[debug] [XCUITest] at processTicksAndRejections (internal/process/task_queues.js:97:5)
[debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[XCUITest] Quitting and uninstalling WebDriverAgent
[WebDriverAgent] Shutting down sub-processes
[debug] [WebDriverAgent] Uninstalling WDAs: 'com.appium.WebDriverAgentRunner.xctrunner'
[XCUITest] {}
[DevCon Factory] Releasing connections for 5126be31cfff436356a1627c09c9268136513a67 device on any port number
[DevCon Factory] Found cached connections to release: ["5126be31cfff436356a1627c09c9268136513a67:8100"]
[DevCon Factory] Releasing the listener for '5126be31cfff436356a1627c09c9268136513a67:8100'
[debug] [iProxy@5126be31:8100] Closing the connection
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[iProxy@5126be31:8100] The connection has been closed
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1620240888719 (00:24:48 GMT+0530 (India Standard Time))
[debug] [MJSONWP] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
[debug] [MJSONWP] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:543:15)
[debug] [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:609:11
[debug] [MJSONWP] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [MJSONWP] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [MJSONWP] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:558:7
[HTTP] <-- POST /wd/hub/session 500 21728 ms - 602
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[debug] [HTTP] No route found for /wd/hub/session
[HTTP] <-- DELETE /wd/hub/session 404 9 ms - 211
[HTTP]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment