Closed rajivnw closed 1 year ago
@rajivnw Can you please provide full server logs
appium server -ka 800 --use-plugins=device-farm,appium-dashboard --config server-config.json -pa /wd/hub
[Appium] Attempting to load plugin device-farm...
[debug] [Appium] Requiring plugin at /Users/user/.appium/node_modules/appium-device-farm
[Appium] Attempting to load plugin appium-dashboard...
[debug] [Appium] Requiring plugin at /Users/user/.appium/node_modules/appium-dashboard
[appium-dashboard] Unable to create adb instance.
(node:1816) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ...
to show where the warning was created)
[Appium] Welcome to Appium v2.0.0-beta.48
@rajivnw can you try without Appium-dashboard plugin?
@sudharsan-selvaraj
I can reproduce the folios issue. Will 🔧 it
@rajivnw @jorgoncalves can you try with latest version and let me know if this issue is resolved.
https://github.com/AppiumTestDistribution/appium-device-farm/releases/tag/5.3.0
@rajivnw @jorgoncalves can you try with latest version and let me know if this issue is resolved.
https://github.com/AppiumTestDistribution/appium-device-farm/releases/tag/5.3.0
That worked for me @saikrishna321. Thanks!
@saikrishna321 its working for me. Thanks for a quick fix. Really appreciated!!
[Appium] - appium-dashboard@v2.0.2 (ACTIVE) No tvOS simulators found! No tvOS simulators found! No tvOS simulators found! No tvOS simulators found! No tvOS simulators found! [HTTP] --> GET /device-farm [HTTP] {} [HTTP] <-- GET /device-farm 301 26 ms - 189 [HTTP] [HTTP] --> GET /device-farm/ [HTTP] {} [HTTP] <-- GET /device-farm/ 200 19 ms - 713
@saikrishna321 quick check so we just need to provide http://localhost:31337/wd/hub as a grid URL, and it automatically route the tests to devices based on capabilities?
Yes ur right!
I can see this issue on version 5.4.0
, with or without Appium-dashboard, only works when --plugin-device-farm-platform
is set to android
, ios
and both
give
Could not configure Appium server. It's possible that a driver or plugin tried to update the server and failed. Original error: ENOENT: no such file or directory, scandir '/Users/tking16/node_modules/appium-device-farm/node_modules/go-ios/dist/
Edit: adding gist with more info https://gist.github.com/tking16/70e6943c22af5f9e555105298259b0bf
Can you uninstall and install the plugin
Hi @saikrishna321 thanks for the response, doesn't help unfortunately, have tried many times, if it helps, here's what my devDependencies looks like
"devDependencies": {
"appium-dashboard": "2.0.2",
"appium-device-farm": "^5.4.0",
"appium-uiautomator2-driver": "^2.4.1",
"appium-xcuitest-driver": "^4.7.0"
}
Can you share a sample project to replicate this problem? @tking16
I've added you as a collaborator to the sample project, let me know if it doens't work https://github.com/tking16/SampleProj-deviceFarm
There's a lot of noise in there, but the important command that should work is make appium
@saikrishna321 Did you manage to reproduce the isseue?
@tking16 Sorry, I was not able to build your project. Has some python env issues. Can you provide a simple project please
Hi @saikrishna321 that issue should be resolved now, sorry about that
Appium version 2.0.0-beta.48
appium plugin install --source=npm appium-device-farm appium plugin install --source=npm appium-dashboard
Starting server using below config -:
{ "server": { "port": 31337, "plugin": { "device-farm": { "platform": "ios", "skipChromeDownload": true, "derivedDataPath": { "simulator": "/Users//Library/Developer/Xcode/DerivedData/WebDriverAgent-Test"
}
}
}
}
}
note: I created folder'WebDriverAgent-Test' under DerivedData. This was not exist earlier.
command I ran to start appium: appium server -ka 800 --use-plugins=device-farm,appium-dashboard --config -pa /wd/hub
Once I run the above command, I get an error and exited from terminal-:
[device-farm] Device Farm Plugin will served at http://localhost:31337/device-farm [Appium] Could not configure Appium server. It's possible that a driver or plugin tried to update the server and failed. Original Error: ENDET: no such file or directory, scandir './node_modules/go-ios/dist'
I installed 'go-ios' using NPM but still same issue persist.