appium / appium/java-client

wrong error message when start android driver when no space on device

Open
#1,083 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

User side problem/problem of an external tool
Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

when starting android driver with UIAutomator2 and no space on device we are getting this error message:

message error: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'MacBook-Pro.local', ip: 'fe80:0:0:0:73:7588:17d5:f3fc%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_181' Driver info: driver.version: AndroidDriver

Full appium log Here

But when running same appium server installation command from command line we can see the right error message:

adb: error: failed to copy '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.8.0.apk' to '/data/local/tmp/appium-uiautomator2-server-v2.8.0.apk': remote couldn't create file: No space left on device

Environment

  • java client build version: 6.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked full Appium log and compare the Android driver session-startup error with the command-line adb output. Trace how the Java client reports the failed APK transfer; done when a device with no free space surfaces the underlying "No space left on device" error instead of the createSession message.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.