Skip to content

Instantly share code, notes, and snippets.

@ayclqt
Created December 16, 2024 10:27
Show Gist options
  • Select an option

  • Save ayclqt/1ff3e0f6586a098d899615dcb431a3d0 to your computer and use it in GitHub Desktop.

Select an option

Save ayclqt/1ff3e0f6586a098d899615dcb431a3d0 to your computer and use it in GitHub Desktop.
error report
{
"server": {
"use-drivers": ["uiautomator2"],
"use-plugins": ["device-farm"],
"port": 4723,
"plugin": {
"device-farm": {
"platform": "android"
}
}
}
}
ξ‚Ά ayclqt ξ‚°ξ‚° ξͺƒ autoyt ξ‚°  ξ‚ main ≑  ?5 ~4 ξ‚°ξ‚° ο€Œ ξ‚΄ appium
[Appium] Attempting to load plugin device-farm...
[Appium] Requiring plugin at /home/ayclqt/.appium/node_modules/appium-device-farm/lib/src/main.js
{ DeviceFarmProLoader: [class A], default: [class A] }
[Appium] Gi has been successfully loaded in 1.035s
[Appium] Welcome to Appium v2.13.1
[Appium] Non-default server args:
[Appium] {
useDrivers: [
'uiautomator2'
],
usePlugins: [
'device-farm'
]
}
[Appium] The autodetected Appium home path: /home/ayclqt/.appium
[Appium] Attempting to load driver uiautomator2...
[Appium] Requiring driver at /home/ayclqt/.appium/node_modules/appium-uiautomator2-driver/build/index.js
[Appium] AndroidUiautomator2Driver has been successfully loaded in 0.598s
[device-farm-main] πŸ“± Update server with CLI Args: {"subcommand":"server","address":"0.0.0.0","port":4723,"extraArgs":[],"useDrivers":["uiautomator2"],"usePlugins":["device-farm"],"plugin":{"device-farm":{"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"allowCors":false,"allowInsecure":[],"basePath":"","callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"tmpDir":"/tmp"}
{ DeviceFarmProLoader: [class A], default: [class A] }
[ADB] Found 2 'build-tools' folders under '/home/ayclqt/Android/Sdk' (newest first):
[ADB] /home/ayclqt/Android/Sdk/build-tools/35.0.0
[ADB] /home/ayclqt/Android/Sdk/build-tools/34.0.0
[ADB] Using 'adb' from '/home/ayclqt/Android/Sdk/platform-tools/adb'
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 start-server'
[device-farm-main] Cli Args: {"subcommand":"server","address":"0.0.0.0","port":4723,"extraArgs":[],"useDrivers":["uiautomator2"],"usePlugins":["device-farm"],"plugin":{"device-farm":{"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"allowCors":false,"allowInsecure":[],"basePath":"","callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"tmpDir":"/tmp"}
[device-farm-main] πŸ“± Update server with Plugin Args: {"platform":"android","iosDeviceType":"both","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.123.79","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":true,"wdaBundleId":"","preBuildWDAPath":""}
[device-farm-main] Initializing storage
[device-farm-main] Initializing database
[device-farm-main] Creating new database: ./temp-appium/db.json
[device-farm-main] Database loaded
[device-farm-main] proxy is not required for axios
[device-farm-main] Registering proxy middleware
[device-farm-main] Registering websocket handler for Android Streaming
[device-farm-main] πŸ“£πŸ“£πŸ“£ I'm a hub and I'm listening on 192.168.123.79:4723
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Hub will clean pending sessions every 30000 ms with pending session timeout: 310000 ms
[ADB] Using 'adb' from '/home/ayclqt/Android/Sdk/platform-tools/adb'
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 start-server'
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[device-farm-main] fetchAndroidDevices from host: undefined. Found 1 android devices
[device-farm-main] Android Device details for emulator-5554 not available. So querying now.
[device-farm-main] skipChromeDownload server arg is set; skipping Chromedriver installation.
[device-farm-main] Android web/hybrid testing will not be possible without Chromedriver.
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell wm size'
[ADB] Running '/home/ayclqt/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.name'
[device-farm-main] Screen dimension for device emulator-5554 : Physical size: 1080x2400
[device-farm-main] Parsed screen dimension for device emulator-5554 : 1080x2400
[device-farm-main] Found 1 android devices
[device-farm-main] Added 1 new devices to local database
[device-farm-main] πŸ“£πŸ“£πŸ“£ Device Farm Plugin will be served at πŸ”— http://192.168.123.79:4723/device-farm with id 79e5277b-1d8e-45ee-b60b-99c694f8e128
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
http://127.0.0.1:4723/ (only accessible from the same host)
http://192.168.123.79:4723/
[Appium] Available drivers:
[Appium] - uiautomator2@3.9.5 (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium] - device-farm@9.4.12 (ACTIVE)
[HTTP] --> GET /device-farm/ {}
[device-farm-main] Received non-webdriver request with url /device-farm/. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ 304 9 ms - -
[HTTP] --> GET /device-farm/ui-assets/index-B4j-iyYi.js {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-B4j-iyYi.js. So, not proxying it to downstream.
[HTTP] --> GET /device-farm/ui-assets/index-Cp7K0uA9.css {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-Cp7K0uA9.css. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/index-B4j-iyYi.js 304 8 ms - -
[HTTP] <-- GET /device-farm/ui-assets/index-Cp7K0uA9.css 304 3 ms - -
[HTTP] --> GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png 304 2 ms - -
[HTTP] --> GET /device-farm/api/device {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] --> GET /dashboard/api/ping {}
[device-farm-main] Received non-webdriver request with url /dashboard/api/ping. So, not proxying it to downstream.
[HTTP] No route found for /dashboard/api/ping
[HTTP] <-- GET /dashboard/api/ping 404 5 ms - 211
[HTTP] <-- GET /device-farm/api/device 200 57 ms - 498
[HTTP] --> GET /device-farm/api/queue/length {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 3 ms - -
[HTTP] --> GET /device-farm/ui-assets/index-Cp7K0uA9.css {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-Cp7K0uA9.css. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/index-Cp7K0uA9.css 304 1 ms - -
[HTTP] --> GET /device-farm/ {}
[device-farm-main] Received non-webdriver request with url /device-farm/. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ 304 1 ms - -
[HTTP] --> GET /device-farm/ui-assets/index-B4j-iyYi.js {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-B4j-iyYi.js. So, not proxying it to downstream.
[HTTP] --> GET /device-farm/ui-assets/index-Cp7K0uA9.css {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/index-Cp7K0uA9.css. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/index-B4j-iyYi.js 304 3 ms - -
[HTTP] <-- GET /device-farm/ui-assets/index-Cp7K0uA9.css 304 2 ms - -
[HTTP] --> GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/device-farm-logo-nn1d6kPf.png 304 1 ms - -
[HTTP] --> GET /device-farm/api/device {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 304 2 ms - -
[HTTP] --> GET /device-farm/api/queue/length {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 2 ms - -
[HTTP] --> POST /device-farm/api/block {"udid":"emulator-5554","host":"http://192.168.123.79:4723"}
[device-farm-main] Received non-webdriver request with url /device-farm/api/block. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":"emulator-5554"}}
[HTTP] <-- POST /device-farm/api/block 200 5 ms - 16
[HTTP] --> POST /device-farm/api/dashboard/appiumSession {"udid":"emulator-5554","systemPort":43931,"origin":"http://192.168.123.79:4723"}
[device-farm-main] Received non-webdriver request with url /device-farm/api/dashboard/appiumSession. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":["emulator-5554"]}}
[HTTP] --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"df:liveVideo":true,"appium:systemPort":43931,"appium:adbExecTimeout":80000,"appium:uiautomator2ServerLaunchTimeout":60000},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"android","appium:automationName":"UIAutomator2","appium:newCommandTimeout":120,"appium:waitForIdleTimeout":10,"appium:udid":"emulator-5554","df:skipReport":true,"df:liveVideo":true,"appium:systemPort":43931}}
[device-farm-main] Received non-webdriver request with url /wd/hub/session. So, not proxying it to downstream.
[HTTP] No route found for /wd/hub/session
[HTTP] <-- POST /wd/hub/session 404 1 ms - 211
[device-farm-main] Received error from remote node: {"message":"Request failed with status code 404","name":"AxiosError","stack":"AxiosError: Request failed with status code 404\n at settle (/home/ayclqt/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/settle.js:19:12)\n at IncomingMessage.handleStreamEnd (/home/ayclqt/.appium/node_modules/appium-device-farm/node_modules/axios/lib/adapters/http.js:599:11)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (/home/ayclqt/.appium/node_modules/appium-device-farm/node_modules/axios/lib/core/Axios.js:45:41)\n at processTicksAndRejections (node:internal/process/task_queues:105: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":"599","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"http://192.168.123.79:4723/wd/hub/session","data":"{\"capabilities\":{\"alwaysMatch\":{\"platformName\":\"android\",\"appium:automationName\":\"UIAutomator2\",\"appium:newCommandTimeout\":120,\"appium:waitForIdleTimeout\":10,\"appium:udid\":\"emulator-5554\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:systemPort\":43931,\"appium:adbExecTimeout\":80000,\"appium:uiautomator2ServerLaunchTimeout\":60000},\"firstMatch\":[{}]},\"desiredCapabilities\":{\"platformName\":\"android\",\"appium:automationName\":\"UIAutomator2\",\"appium:newCommandTimeout\":120,\"appium:waitForIdleTimeout\":10,\"appium:udid\":\"emulator-5554\",\"df:skipReport\":true,\"df:liveVideo\":true,\"appium:systemPort\":43931}}"},"code":"ERR_BAD_REQUEST","status":404}
[HTTP] <-- POST /device-farm/api/dashboard/appiumSession 400 11 ms - 241
[HTTP] --> POST /device-farm/api/unblock {"udid":"emulator-5554","host":"http://192.168.123.79:4723"}
[device-farm-main] Received non-webdriver request with url /device-farm/api/unblock. So, not proxying it to downstream.
[device-farm-main] Updated devices with filter: {"udid":{"$in":"emulator-5554"}}
[HTTP] <-- POST /device-farm/api/unblock 200 3 ms - 16
[HTTP] --> GET /device-farm/ui-assets/device-loading-BbhTw1Mo.gif {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-loading-BbhTw1Mo.gif. So, not proxying it to downstream.
[device-farm-main] New streaming request recieved with url: /android-stream/emulator-5554
[device-farm-main] Device id emulator-5554 matched for streaming url : /android-stream/emulator-5554
[device-farm-main] Updated devices with filter: {"udid":{"$in":["emulator-5554"]}}
[device-farm-main] Invalid device or streaming not supported for device id emulator-5554
[HTTP] <-- GET /device-farm/ui-assets/device-loading-BbhTw1Mo.gif 304 12 ms - -
[HTTP] <-- GET /android-stream/emulator-5554 - - ms - -
[HTTP] --> GET /device-farm/ui-assets/device-loading-BbhTw1Mo.gif {}
[device-farm-main] Received non-webdriver request with url /device-farm/ui-assets/device-loading-BbhTw1Mo.gif. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/ui-assets/device-loading-BbhTw1Mo.gif 304 1 ms - -
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
[HTTP] --> GET /device-farm/api/device {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 200 1 ms - 522
[HTTP] --> GET /device-farm/api/queue/length {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
[HTTP] --> GET /device-farm/api/device {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/device 304 1 ms - -
[HTTP] --> GET /device-farm/api/queue/length {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/queue/length. So, not proxying it to downstream.
[HTTP] <-- GET /device-farm/api/queue/length 304 1 ms - -
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Cleaning pending sessions...
[device-farm-main] No pending sessions to clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment