Unable to install to device with id xxxx - Error: stdout maxBuffer exceeded

Hi there,

I have seen a few discussions around the issue that we are experiencing.

We are basically running Appium to test an application on a real IOS device. We were able to execute a few tests for the last few months without any issues and about 4 days ago we ran into a maxBuffer error on stdout.

This is the stack trace that we are getting. I had done some reading on the various forums and there doesn’t seem to be a definitive resolution for this issue and it does like that when path of the app is too long, the buffer maxes out on installation.

How do we resolve this issue? I am at whits end now.

Error Message

A new session could not be created. (Original error: Unable to install [/var/folders/hq/lf6sr9bj0fv22qwtrtln8p440000gr/T/114815-49611-1a6wus2/Payload/xxxxxxxxxxxxxxx.app] to device with id [8cbac76c0a6db9ae68a41fcef3e29f9ee88cc25b]. Error [Error: stdout maxBuffer exceeded.]) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 38.84 seconds
Build info: version: ‘2.42.2’, revision: ‘6a6995d31c7c56c340d6f45a76976d43506cd6cc’, time: ‘2014-06-03 10:52:47’
System info: host: ‘xxx.xxx.xxx.com’, ip: ‘172.26.68.12’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.8.5’, java.version: ‘1.6.0_65’
Driver info: io.appium.java_client.AppiumDriver
Stacktrace

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Unable to install [/var/folders/hq/lf6sr9bj0fv22qwtrtln8p440000gr/T/114815-49611-1a6wus2/Payload/xxxxxxxxxxxxxxxxx.app] to device with id [8cbac76c0a6db9ae68a41fcef3e29f9ee88cc25b]. Error [Error: stdout maxBuffer exceeded.]) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 38.84 seconds
Build info: version: ‘2.42.2’, revision: ‘6a6995d31c7c56c340d6f45a76976d43506cd6cc’, time: ‘2014-06-03 10:52:47’
System info: host: ‘xxxx.x.xxxx.xxxx.com’, ip: ‘172.26.68.12’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.8.5’, java.version: ‘1.6.0_65’
Driver info: io.appium.java_client.AppiumDriver

Try just to remove old apk from device, and restart your device. In my case it works.