Error running Appium React Tests on an emulator using AVD Manager

react-native
emulator
appium
android
#1

Unable to start Appium tests on the emulator.
I get a different errors when using macOS stack and normal Linux stack

  1. on Mac there is timeout when installing the apk:
    ‘An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/usr/local/share/android-sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/56abf1bf10f6562619a2dd8fb060718e27c4cb28.apk’ timed out after 20000ms’. Try to increase the 20000ms adb execution timeout represented by ‘uiautomator2ServerInstallTimeout’ capability’,
    stack:
    ‘unknown error: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/usr/local/share/android-sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/56abf1bf10f6562619a2dd8fb060718e27c4cb28.apk’ timed out after 20000ms’. Try to increase the 20000ms adb execution timeout represented by ‘uiautomator2ServerInstallTimeout’ capability\n at getErrorFromResponseBody (/Users/vagrant/git/appium_tests/node_modules/webdriver/build/utils.js:350:10)\n at Request._callback (/Users/vagrant/git/appium_tests/node_modules/webdriver/build/request.js:121:64)\n at Request.self.callback (/Users/vagrant/git/appium_tests/node_modules/request/request.js:185:22)\n at Request.emit (events.js:198:13)\n at Request.EventEmitter.emit (domain.js:448:20)\n at Request. (/Users/vagrant/git/appium_tests/node_modules/request/request.js:1161:10)\n at Request.emit (events.js:198:13)\n at Request.EventEmitter.emit (domain.js:448:20)\n at IncomingMessage. (/Users/vagrant/git/appium_tests/node_modules/request/request.js:1083:12)\n at Object.onceWrapper (events.js:286:20)’ }

  2. on Linux i get the following error:
    { name: ‘unknown error’,
    message: ‘An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/opt/android-sdk-linux/platform-tools/adb -P 5037 -s emulator-5554 shell pm install -g /data/local/tmp/appium_cache/bcf23e8c627768bfcff0db796d0264f937477a60.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’’,
    stack: ‘unknown error: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘/opt/android-sdk-linux/platform-tools/adb -P 5037 -s emulator-5554 shell pm install -g /data/local/tmp/appium_cache/bcf23e8c627768bfcff0db796d0264f937477a60.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’\n at getErrorFromResponseBody (/bitrise/src/appium_tests/node_modules/webdriver/build/utils.js:350:10)\n at Request._callback (/bitrise/src/appium_tests/node_modules/webdriver/build/request.js:121:64)\n at Request.self.callback (/bitrise/src/appium_tests/node_modules/request/request.js:185:22)\n at emitTwo (events.js:126:13)\n at Request.emit (events.js:214:7)\n at Request. (/bitrise/src/appium_tests/node_modules/request/request.js:1161:10)\n at emitOne (events.js:116:13)\n at Request.emit (events.js:211:7)\n at IncomingMessage. (/bitrise/src/appium_tests/node_modules/request/request.js:1083:12)\n at Object.onceWrapper (events.js:313:30)’ }

Environment:

macOS xCode OR docker Linux

Which build Step causes the issue and which version of the step?

Run Yarn

Reproducibility

  • _Does a “Rebuild” help? NO
  • _Does a rebuild without caches help? NO
  • Does the issue happen sporadically, or every time? : YES
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : from the first time

Local reproduction

_Can it be reproduced on your own Mac/PC?
It works fine on my MAC

Build log

on MAC:

on LINUX:

0 Likes