WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Command failed: /bin/sh -c ideviceinstaller -u 3BC6011A-6455-443C-80F0-E6302726F721 -l

Hi Guys,

Ive gone through the forums where there seem to be a few discussions regarding issues with ideviceinstaller not being setup properly on the target machine.

We seem to be having a slightly different issue I believe and it may have something to do with the syntax of the command the appium 1.5 is calling.

We upgraded to 1.5 from 1.4.16 today and saw the following error:

2016-02-29 11:33:53,710 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/appium/webdriver/webdriver.py”, line 37, in init
2016-02-29 11:33:53,711 ERROR testrunner super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 87, in init
2016-02-29 11:33:53,711 ERROR testrunner self.start_session(desired_capabilities, browser_profile)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 141, in start_session
2016-02-29 11:33:53,711 ERROR testrunner ‘desiredCapabilities’: desired_capabilities,
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py”, line 201, in execute
2016-02-29 11:33:53,711 ERROR testrunner self.error_handler.check_response(response)
2016-02-29 11:33:53,711 ERROR testrunner File “/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py”, line 181, in check_response
2016-02-29 11:33:53,711 ERROR testrunner raise exception_class(message, screen, stacktrace)
2016-02-29 11:33:53,711 ERROR testrunner WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Command failed: /bin/sh -c ideviceinstaller -u 3BC6011A-6455-443C-80F0-E6302726F721 -l

Looking into the appium logs we see this:

2016-02-29 11:34:07:649 - [debug] [iOS] Running ios real device reset flow
2016-02-29 11:34:07:651 - [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
2016-02-29 11:34:07:661 - [debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
2016-02-29 11:34:07:673 - [debug] [iOS] Creating iDevice object with udid 3BC6011A-6455-443C-80F0-E6302726F721
2016-02-29 11:34:07:686 - [MJSONWP] Encountered internal error running command: Error: Command failed: /bin/sh -c ideviceinstaller -u 3BC6011A-6455-443C-80F0-E6302726F721 -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)

2016-02-29 11:34:07:693 - [HTTP] <-- POST /wd/hub/session 500 107 ms - 226

It seems that when appium calls the ideviceinstaller command with ‘-l’ it doesnt seem to like it. A bit of background first, we programmatically load our iOS app onto the simulator first using our framework and then instantiate webdriver with the following desired caps:

            "platformName" : "iOS",
            "deviceName" : self.device["gadget_name"],
            "udid" : self.device["udid"],
            "platformVersion" : self.device["platformVersion"],
            "autoAcceptAlerts" : 'true',
            "bundleId" : "com.acano.Acano2",
            "showIOSLog" : 'true',

Can anyone please help us with this issue? ideviceinstaller help says that -l, --list-apps List apps, possible options. Not sure why 1.5 is suddenly calling this now and we never saw this with 1.4.x before

Thanks,
Sagar Basutkar

ive got some updates…and questions…

when I run the ideviceinstaller command manually using the terminal I get an error:
autos-Mac-mini:acanoClient auto$ ideviceinstaller -u 515974BA-B149-4366-81F2-3E8E84145DD7 -l
ERROR: Invalid UDID specified
Usage: ideviceinstaller OPTIONS
Manage apps on iOS devices.

The device I am using is a Simulator… but if I run this command for the udid of a real device then it works fine…

This begs the question as to why appium is using ideviceinstaller to query information about the app on a simulator? Since it seems the ideviceinstaller is not supported on sims?

Can someone please help us???

Don’t pass the udid to this process. If you start with udid specified, Appium tries to work with a real device.

That solved the issue! Thanks a lot @wreed

1 Like

@sagar.basutkar : Hello Sagar , I am also facing the same issue on iOS 10 beta device. The exact error thats displayed on console is : “An unknown server-side error occurred while processing the command. Original error: Command failed: ideviceinstaller -u a2e0b888c9c53dfc03d3b27d4ef7b2c7b5abd9d8 -l
ideviceinstaller(17357,0x7fff7dbbf000) malloc: *** error for object 0x7f942b407eb0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug”

but when I type the "ideviceinstaller -u a2e0b888c9c53dfc03d3b27d4ef7b2c7b5abd9d8 -l " I am getting the list of apps that are installed in the device