Uninstall { sudo npm install} on mac

1,780 views
Skip to first unread message

Pardha Perali

unread,
Apr 5, 2014, 5:56:55 PM4/5/14
to appium-...@googlegroups.com
Hello,

I have installed appium as sudo and Instruments crashes when trying to run on real device with below logs.

debug: Appium request initiated at /wd/hub/session



---------------------------------------------------------------------------

info: Using local app from desiredCaps: /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app


debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"/Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app","device":"iphone","version":"6.1"}}


info: Creating new appium session 9ed78622-37de-436f-b504-e54f0ebeb82e

info: Removing any remaining instruments sockets

info: Cleaned up instruments socket /tmp/instruments_sock


info: Auto-detecting iOS udid...


info: Detected udid as 53f461fe0b28295d2cf3f26288d6b7adba2c0c58


info: Parsed app Localizable.strings


info: Not setting locale because we're using a real device

info: Not setting iOS and app preferences since we're on a real device

info: Starting iOS device log capture via idevicesyslog


info: Not setting device type since we're connected to a device


info: Creating iDevice object with udid 53f461fe0b28295d2cf3f26288d6b7adba2c0c58

info: Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller

info: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 53f461fe0b28295d2cf3f26288d6b7adba2c0c58 --bundle /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.16.0","revision":"292d265edd9c7aaf96f165009285c814b218363d"}},"sessionId":"9ed78622-37de-436f-b504-e54f0ebeb82e"}


debug: Request received with params: {}


GET /wd/hub/status 200 1ms - 199b


debug: Creating instruments


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


info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock

info: Attempting to run app on real device with UDID 53f461fe0b28295d2cf3f26288d6b7adba2c0c58

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 53f461fe0b28295d2cf3f26288d6b7adba2c0c58 /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/

info: And extra without-delay env: {}

info: And launch timeout: 90000ms


debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.16.0","revision":"292d265edd9c7aaf96f165009285c814b218363d"}},"sessionId":"9ed78622-37de-436f-b504-e54f0ebeb82e"}


debug: Request received with params: {}


GET /wd/hub/status 200 1ms - 199b


info: [INST STDERR] 2014-04-05 22:54:21.569 instruments[8005:507] Failed to start Instruments daemon for 'iOS' on 'Iphone 4s (v6.1.3)' (The service is invalid.)



info: [INST STDERR] 2014-04-05 22:54:21.817 instruments[8005:2207] Failed to start Instruments daemon for 'iOS' on 'Iphone 4s (v6.1.3)' (The service is invalid.)



debug: Appium request initiated at /wd/hub/status


info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.16.0","revision":"292d265edd9c7aaf96f165009285c814b218363d"}},"sessionId":"9ed78622-37de-436f-b504-e54f0ebeb82e"}


debug: Request received with params: {}


GET /wd/hub/status 200 1ms - 199b


info: [INSTSERVER] Instruments exited with code 253


info: Attempting to retry launching instruments, this is retry #1

info: Killall instruments


info: Attempting to run app on real device with UDID 53f461fe0b28295d2cf3f26288d6b7adba2c0c58

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 53f461fe0b28295d2cf3f26288d6b7adba2c0c58 /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/

info: And extra without-delay env: {}

info: And launch timeout: 90000ms


info: [INSTSERVER] Instruments exited with code null


info: Attempting to retry launching instruments, this is retry #2

info: Killall instruments

info: Attempting to run app on real device with UDID 53f461fe0b28295d2cf3f26288d6b7adba2c0c58

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 53f461fe0b28295d2cf3f26288d6b7adba2c0c58 /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/

info: And extra without-delay env: {}

info: And launch timeout: 90000ms


info: [INSTSERVER] Instruments exited with code null

info: Attempting to retry launching instruments, this is retry #3

info: Killall instruments


error: Instruments crashed on startup


info: Attempting to run app on real device with UDID 53f461fe0b28295d2cf3f26288d6b7adba2c0c58

info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 53f461fe0b28295d2cf3f26288d6b7adba2c0c58 /Users/pardha/Desktop/APPS/RNGA_HAL_R2_Tester.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/

info: And extra without-delay env: {}

info: And launch timeout: 90000ms

info: [INSTSERVER] Instruments exited with code null

info: Killall instruments


debug: Sending command to instruments: au.bundleId()


info: Stopping iOS log capture

info: Killing the simulator process

info: Instruments launched. Starting poll loop for new commands.

info: Pushing command to appium work queue: "au.bundleId()"

info: Killing any other simulator daemons


info: Cleaning app state.


info: No folders found to remove


error: Failed to start an Appium session, err was: Error: Instruments crashed on startup


info: Cleaning up appium session

info: Error: Instruments crashed on startup

    at Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/instruments.js:339:31)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/instruments.js:290:12)

    at ChildProcess.EventEmitter.emit (events.js:98:17)

    at Process.ChildProcess._handle.onexit (child_process.js:789:12)

info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null}

POST /wd/hub/session 500 19832ms - 210b

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


As per below link, i might have to install appium without sudo but not sure how to uninstall it in the first place.



Can someone please help.

Thanks!!

Dan Doveralba

unread,
Apr 6, 2014, 1:17:00 PM4/6/14
to Pardha Perali, appium-...@googlegroups.com
Uninstall and reinstall without using sudo.  You’ll likely have to sort through permissions issues now.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Pardha Perali

unread,
Apr 7, 2014, 12:05:40 PM4/7/14
to appium-...@googlegroups.com, Pardha Perali
Hi Dan,

Thanks for the response...i just wanted to know how i can uninstall it in the firs place.

pittsd

unread,
Apr 9, 2014, 5:39:58 AM4/9/14
to appium-...@googlegroups.com, Pardha Perali
sudo npm uninstall -g appium
Reply all
Reply to author
Forward
0 new messages