A new session could not be created. (Original error: EACCES, unkink '/tmpinstruments_sock)')

Hi,

When i run the test script on the iPhone (real device), I get the error A new session could not be created. (Original error: EACCES, unkink ‘/tmpinstruments_sock)’). Also when i launch the Appium server with app path set to the location of safarilauncher.app on my machine, on trying to run the inspector the same error is logged in the appium. and also the inspector is not launched with a msg “Couldn’t launch inspector”

Note: The device OS is upgraded from 7.0.1 to 8.3. Earlier the script was working fine.

I am using:
Appium (1.3.7)
iphone 4s (8.3)
xcode (6.0.1)

Appium log:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --log-no-colors --platform-version “8.3” --platform-name “iOS” --app “/Users/test/Desktop/Softwares/Appium/Installables/SafariLauncher.app” --udid “ec0eedd25d043834097e1e403c3cbc99e14634b6” --device-name “MdmIphone”

info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)

info: Appium REST http interface listener started on 127.0.0.1:4723

info: [debug] Non-default server args: {“app”:"/Users/test/Desktop/Softwares/Appium/Installables/SafariLauncher.app",“udid”:“ec0eedd25d043834097e1e403c3cbc99e14634b6”,“address”:“127.0.0.1”,“logNoColors”:true,“deviceName”:“MdmIphone”,“platformName”:“iOS”,“platformVersion”:“8.3”}
info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 9.180 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 3.287 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 0.901 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.3”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“MdmIphone”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/720.3.13 Darwin/14.3.0 (x86_64)

info: [debug] Using local app from command line: /Users/test/Desktop/Softwares/Appium/Installables/SafariLauncher.app

info: [debug] Creating new appium session 03aa6851-b964-4fbe-91d8-c3bbef962413

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: EACCES, unlink ‘/tmp/instruments_sock’

info: [debug] Error: EACCES, unlink ‘/tmp/instruments_sock’
at Error (native)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: EACCES, unlink ‘/tmp/instruments_sock’)”,“errno”:-13,“code”:“EACCES”,“path”:"/tmp/instruments_sock",“origValue”:“EACCES, unlink ‘/tmp/instruments_sock’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 11.595 ms - 257

If anyone has encountered the same issue and have found solution, please help!!

You’ve updated everything but xcode. Why? I’m thinking it’s just an oversight but you may have a reason. If not update xcode. I did a bit of Googling for you & this is pretty representative of what I saw out there:

There are a couple of other troubleshooting steps in that link as well if the xcode update doesn’t work, or you have a reason for not updating.

Hey Wreed, I have updated Xcode to 6.3. However the inspector and the script still doesn’t seem to work and i am getting the same error error: Failed to start an Appium session, err was: Error: EACCES, unlink '/tmp/instruments_sock’

Also when the appium server is started, it wouldn’t launch Safarilauncher.app, of which the app path is set.
How do i get that working?

I am using:
iPhone 4s (8.3)
Appium (1.3.7)
xcode (6.3)
OS X (Yosemite- 10.10.3)

My Appium Log:

Launching Appium with command: ‘/Applications/Appium1.3.7.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --log-no-colors --platform-version “8.3” --platform-name “iOS” --app “/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app” --udid “ec0eedd25d043834097e1e403c3cbc99e14634b6” --device-name “MdmIphone” --platform-version 8.3

info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)

info: Appium REST http interface listener started on 127.0.0.1:4723

info: [debug] Non-default server args: {“app”:"/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app",“udid”:“ec0eedd25d043834097e1e403c3cbc99e14634b6”,“address”:“127.0.0.1”,“logNoColors”:true,“deviceName”:“MdmIphone”,“platformName”:“iOS”,“platformVersion”:“8.3”}
info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 9.280 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 3.309 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/sessions {}

info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 1.031 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.3”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“MdmIphone”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/720.3.13 Darwin/14.3.0 (x86_64)

info: [debug] Using local app from command line: /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app

info: [debug] Creating new appium session 8867a228-8316-4eb5-993c-8c00d49ff1f5
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaning up appium session
info: [debug] Error: EACCES, unlink ‘/tmp/instruments_sock’
at Error (native)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: EACCES, unlink ‘/tmp/instruments_sock’)”,“errno”:-13,“code”:“EACCES”,“path”:"/tmp/instruments_sock",“origValue”:“EACCES, unlink ‘/tmp/instruments_sock’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 10.761 ms - 257

error: Failed to start an Appium session, err was: Error: EACCES, unlink ‘/tmp/instruments_sock’

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 0.668 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 0.678 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

Thanks in advance.

Hi Maha,

Can you open a terminal and cd to the /tmp dir? Look in there for the ‘instruments_sock’ file. If it exists I think you should try deleting it. The unlink command is a Unix command for deleting a file. I think it’s trying to delete that file but can’t. Is it possible that you (or someone else) has run Appium as a different user on this machine (perhaps as an Administrator)? It may be that you can’t delete this file because it belongs to a different user. You may need to do something like ‘sudo unlink /tmp/instruments_sock’ to delete the file, or change the permissions so that you can delete it. Hope that helps.

Hi Wreed,

Thanks for the response.
I could get the SafariLauncher launch on my iPhone. But now it crashed the very next second of its launch.
Things i did:
Connect iphone to the MAC, launched $ios_webkit_debug_proxy -c ec0eedd25d043834097e1e403c3cbc99e14634b6:27753 -d
launched appium server (with app path set to Safarilauncher.app) and clicked on Inspector.

Appium Log:

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --log-no-colors --platform-version “8.3” --platform-name “iOS” --app “/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app” --udid “ec0eedd25d043834097e1e403c3cbc99e14634b6” --device-name “MdmIphone” --native-instruments-lib

info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)

info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“app”:"/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app",“udid”:“ec0eedd25d043834097e1e403c3cbc99e14634b6”,“address”:“127.0.0.1”,“logNoColors”:true,“nativeInstrumentsLib”:true,“deviceName”:“MdmIphone”,“platformName”:“iOS”,“platformVersion”:“8.3”}
info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 9.263 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 3.082 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 0.795 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 0.949 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}

info: <-- GET /wd/hub/sessions 200 1.058 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.3”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“MdmIphone”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/720.3.13 Darwin/14.3.0 (x86_64)

info: [debug] Using local app from command line: /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app

info: [debug] Creating new appium session d8c673d0-37e4-4a5d-bec8-b197e47001c5

info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app

info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/test/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

info: [debug] Reusing dynamic bootstrap: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3”,“iOSSDKVersion”:“8.3”,“deviceName”:“MdmIphone”,“platformVersion”:“8.3”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘MdmIphone (8.3 Simulator)’

info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set

info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid ec0eedd25d043834097e1e403c3cbc99e14634b6

info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle com.accenture.mobility.appfactory.dev1.SafariLauncher

info: [debug] App is installed.

info: [debug] fullReset not requested. No need to install.
info: [debug] Starting command proxy.

info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: Launching instruments

info: [debug] Attempting to run app on real device with UDID ec0eedd25d043834097e1e403c3cbc99e14634b6

info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w ec0eedd25d043834097e1e403c3cbc99e14634b6 com.accenture.mobility.appfactory.dev1.SafariLauncher -e UIASCRIPT “/Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 1.136 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 1.127 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 0.728 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}

info: [debug] [INST STDERR] 2015-04-23 11:01:29.394 instruments[4225:105394] WebKit Threading Violation - initial use of WebKit from a secondary thread.

info: [debug] [INST STDERR] 2015-04-23 11:01:32.914 instruments[4225:105394] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException

info: [debug] [INST] 2015-04-23 05:31:32 +0000 Fail: An error occurred while trying to run the script.

info: [debug] [INST] Instruments Trace Complete (Duration : 2.133358s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

info: [debug] Killall instruments

info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator

=================================================================

Please note that Safarilauncher was built from Xcode 6.3 for the iOS build 8.3 with a valid developer certificate and provisioning profile.

If you know the reason and solution for the issue I am facing. please let me know.

Thanks in advance.

Hi,
I got this issue fixed.
Tried many things to make it work. Finally it worked when i rebuilt the safari launcher app on xcode6.3 and under Generel->Deployment info->Deployment Target set it to 8.3.

Though m not sure if this is what has fixed the issue.

However i have encountered a new issue. when i run my script on Selenium grid i get fruitstrap error.

Appium log:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --log-no-colors --platform-version “8.3” --platform-name “iOS” --default-device

info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)

info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:“127.0.0.1”,“logNoColors”:true,“platformName”:“iOS”,“platformVersion”:“8.3”,“defaultDevice”:true}
info: Console LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 9.483 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“safariIgnoreFraudWarning”:true,“app”:"/Users/test/Library/Developer/Xcode/DerivedData/SafariLauncher-gytolcrfoisowocubizijtctfzrz/Build/Products/Debug-iphoneos/SafariLauncher.app",“platformVersion”:“8.3”,“platform”:“MAC”,“deviceName”:“MdmIphone”,“platformName”:“iOS”,“browserName”:“safari”,“appium-version”:“1.3.7”,“safariAllowPopups”:false,“udid”:“ec0eedd25d043834097e1e403c3cbc99e14634b6”,“version”:“iPhone”}}

info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)

info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : platform, appium-version, version
info: [debug] Configuring Safari session

info: [debug] Using local .zip from desired caps: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir

info: [debug] /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/appium-app.zip

info: [debug] Unzipping /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/appium-app.zip

info: [debug] Testing zip archive: /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful

info: [debug] Using locally extracted app: /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app

info: [debug] Creating new appium session 2893d96d-3f88-4d5d-80d3-7ca8a7b55923
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder

info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.3

info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Could not parse plist file (as binary) at /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings

info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/test/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

info: [debug] Reusing dynamic bootstrap: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js

info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3”,“iOSSDKVersion”:“8.3”,“deviceName”:“MdmIphone”,“platformVersion”:“8.3”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘MdmIphone (8.3 Simulator)’

info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state

info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set

info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle com.bytearc.SafariLauncher

info: [debug] Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle “/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”

info: [debug] Cleaning up appium session

info: [debug] Error: Unable to install [/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [ec0eedd25d043834097e1e403c3cbc99e14634b6]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle “/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”
]
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:147:10
at ChildProcess.exithandler (child_process.js:751:5)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Unable to install [/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [ec0eedd25d043834097e1e403c3cbc99e14634b6]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle “/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”\n])”,“origValue”:“Unable to install [/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [ec0eedd25d043834097e1e403c3cbc99e14634b6]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle “/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”\n]”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 7146.681 ms - 1238

error: Failed to start an Appium session, err was: Error: Unable to install [/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app] to device with id [ec0eedd25d043834097e1e403c3cbc99e14634b6]. Error [Error: Command failed: /bin/sh -c /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle “/var/folders/jb/nm6htnlj5zj2jc7rck_cpt200000gq/T/115323-18759-qpago4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app”
]

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

info: <-- GET /wd/hub/status 200 2.224 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}

============================================================