question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u

See original GitHub issue

The problem

I can’t run appium, i’ve been having this error

Environment

  • Appium version (or git revision) that exhibits the issue: 1.4.13 (Draco)
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: OS X El Capitan 10.11.5
  • Node.js version (unless using Appium.app|exe): v4.4.7 and npm v2.15.8
  • Mobile platform/version under test: iphone 6s
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Details

Link to Appium logs

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -l

info: [debug] Installing ipa found at /Users/gp1n3d4/Music/iTunes/iTunes Media/Mobile Applications/myapp.ipa info: [debug] Cleaning up appium session info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -l

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -l \n)”,“killed”:false,“code”:2,“signal”:null,“cmd”:"/bin/sh -c ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -l ",“origValue”:“Command failed: /bin/sh -c ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -l \n”},“sessionId”:null} info: <-- POST /wd/hub/session 500 1196.128 ms - 418

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Jul 11, 2016

No problem! I’m glad things worked out!

1reaction
imurchiecommented, Jul 11, 2016

I guess I should have been more specific. What happens when you actually run ideviceinstaller?

ideviceinstaller -u B6A0A86D-7927-4D3D-B827-704C62A47587 -i /Users/gersonpineda/Desktop/demo.app
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Command failed: /bin/sh -c ideviceinstaller -u
Referenced from: /usr/local/bin/ideviceinstaller. Reason: image not found. error: Failed to start an Appium session, err was: Error: Command
Read more >
Error: Command failed: /bin/sh -c ideviceinstaller · Issue #6376
The problem Could not start a new session Be sure the Appium server is running with an application opened by using the "App...
Read more >
ios - Error: Command failed: /bin/sh -c ideviceinstaller -u - Stack ...
I believe you need to install the ideviceinstaller prior to using Appium to perform automation tests on iOS. Quoting from here the following...
Read more >
appium/appium - Gitter
[31merror [39m: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u d933f6b8e11c1e98f6263e56732dbe7a2e64b568 ...
Read more >
描述如下
Continuing without capturing logs. error: Log capture did not start in a ... Failed to start an Appium session, err was: Error: Command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found