What Appium was trying to do, specifically.Here the error gives us two important pieces of information: In this case it looks like the error happened during Appium's attempt to stop and clear the AUT in preparation for the session.
In this abridged set of logs, the user has attempted to start a session using the Android driver and has been met with an error.
Original error: 'Command '/home/user/Android/Sdk/platform-tools//adb -P 5037 -s ec8c4df shell pm clear ' exited with code 1' Stderr: 'Error: : PID 22126 does not have permission _APP_USER_DATA to clear data of package ' Code: '1'Īt (././lib/logging.js:63:13)Īt ADB.callee$0$0$ (./././lib/tools/adb-commands.js:334:9)Īt tr圜atch (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)Īt GeneratorFunctionPrototype.invoke (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)Īt GeneratorFunctionPrototype.prototype.(anonymous function) (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)Īt GeneratorFunctionPrototype.invoke (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)Īt process._tickCallback (internal/process/next_tick.js:188:7) Encountered internal error running command: Error: Cannot stop and clear. Add `clearSystemFiles` capability if wanted. Running '/home/user/Android/Sdk/platform-tools//adb' with args: Called deleteSession but bootstrap wasn't active Also check: Testing Real Time User Interaction Using Multiple Simultaneous Appium Sessions It is often useful to check that what was intended to be requested was actually received by the Appium server, since it is the capabilities listed here that will be acted upon for the automation session. In particular, the desired capabilities, along with any default capabilities are listed. While session creation involves a complicated array of operations to get the environment set up and the application under test running, the beginning of the logs for a command to create the session provides basic information about the session. In particular, different versions of Appium will have different capacities and issues, so knowing what version is running is necessary to begin to make any determination of what is going on in any run. This information is invaluable for providing context to the test automation that will be run. Appium REST http interface listener started on 172.19.131.113:8000 Default capabilities, which will be added to each request unless overridden by desired capabilities: