-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not connect to lockdownd. Exiting Permission denied #160
Comments
@Can-too I have Beta version of XCode installed but it works quite fine, you could try installing libimobildevice from master
|
Many thanks for the response, unfortunately the install didn't work with the --HEAD parameter. It did work without it.... (Message: No head for the ios-webkit-debug-proxy.) Unfortunately this this has not helped and I'm getting the same message.... I have since found out the XCode update seems to have invalidated the permissions to the lockdown directory . Using the following commands: Now when starting webkit I have the message: Could not connect to lockdownd. Exiting.: Broken Pipe... |
@artygus |
okay that worked by first reinstalling (as per rjmadhu comments), then using the disk utility (sudo diskutil repairPermissions /). Rectified the previous problems BUT now I cannot connect to the device and get the following message when using the ios_webkit_debug_proxy -c :9202 Invalid message _rpc_reportConnectedDriverList: Any suggestions? |
@rjmadhu thanks, it's probably because I rolled out a new version of ios-webkit-debug-proxy to brew recently |
Okay... So should I download again? Or when should I download? |
@Can-too I pushed a new versions of utility a few days ago to brew |
artygus, is the command "brew update && brew upgrade ios-webkit-debug-proxy" to be used just as you have entered it? because when using it I get the message Error: /usr/local must be writeable! Using just "brew update" I get the same message... |
Okay got it, many thanks all !
|
Hi there, I had the same issue: Could not connect to lockdownd. Exiting Permission denied. So I ran the following: chmod +x /var/db/lockdown Worked for me :) |
GNWRICA2080432:~ 502000533$ ios_webkit_debug_proxy -c a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e927753 is not working for |
@mashek347 |
if you run sudo ios_webkit_debug_proxy -c a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e:27753 -d does that start the debug proxy? If so then changing the permission on lockdown should solve your problem |
Still, I am facing issue. Launching Appium with command: '/Applications/Appium 3.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --address "127.0.0.1" --debug-log-spacing --platform-version "10.0.2" --platform-name "iOS" --safari --browser-name "Safari" --show-ios-log --default-device --native-instruments-lib [Appium] Welcome to Appium v1.5.3 [Appium] Non-default server args: [Appium] address: '127.0.0.1' [Appium] debugLogSpacing: true [Appium] --native-instruments-lib => --default-capabilities '{"nativeInstrumentsLib":true}' [Appium] platformName: 'iOS' [Appium] platformVersion: '10.0.2' [Appium] Appium REST http interface listener started on 127.0.0.1:4723 [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"io.appium.SafariLauncher","safariIgnoreFraudWarning":true,"platformVersion":"10.0.2","safariAllowPopups":false,"browserName":"safari","platformName":"iOS","udid":"a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e9","deviceName":"iPhone 6"}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"io.appium.SafariLa... [Appium] Creating new IosDriver session [BaseDriver] Session created with session id: 3d3b367e-945a-46b8-9cf2-3f950d600d25 [debug] [iOS] Not auto-detecting udid. [debug] [iOS] Creating iDevice object with udid a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e9 [debug] [iOS] Checking for presence of SafariLauncher at '/Applications/Appium 3.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app' [debug] [iOS] SafariLauncher exists [debug] [iOS] Removing any remaining instruments sockets [debug] [iOS] No language specified. Using default strings [debug] [iOS] Strings file not found. Looking in 'en.lproj' directory [iOS] Could not file localizable strings file 'Localizable.strings'! [debug] [iOS] Creating instruments [debug] [UIAuto] Preparing bootstrap code [debug] [UIAuto] Dynamic bootstrap dir: /Users/502000533/Library/Application Support/appium/bootstrap [debug] [UIAuto] Dynamic env: {"nodePath":"/Applications/Appium 3.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium 3.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/z3/tkbh3cns4fd4fyd6xsdgk1bh68_4ff/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"} [debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify! [debug] [UIAuto] Dynamic bootstrap path: /Users/502000533/Library/Application Support/appium/bootstrap/bootstrap-7bf8a16bd619352a.js [debug] [UIAuto] Reusing dynamic bootstrap: /Users/502000533/Library/Application Support/appium/bootstrap/bootstrap-7bf8a16bd619352a.js [debug] [iOS] Running ios real device reset flow [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog [debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog' [debug] [iOS] App is not installed. Will try to install. [MJSONWP] Encountered internal error running command: Error: Installing /Applications/Appium 3.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app failed [HTTP] <-- POST /wd/hub/session 500 2674 ms - 291 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] <-- GET /wd/hub/status 200 35 ms - 83 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] <-- GET /wd/hub/status 200 33 ms - 83 [Appium] Creating new IosDriver session [Appium] automationName: 'Appium' [BaseDriver] SessionNotCreatedError: A new session could not be created. Details: The desiredCapabilities object was not valid for the following reason(s): deviceName can't be blank. ) [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] <-- GET /wd/hub/status 200 31 ms - 83 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] <-- GET /wd/hub/status 200 18 ms - 83 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] <-- GET /wd/hub/status 200 16 ms - 83 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"io.appium.SafariLauncher","safariIgnoreFraudWarning":true,"platformVersion":"10.0.2","safariAllowPopups":false,"browserName":"safari","platformName":"iOS","udid":"a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e9","deviceName":"iPhone 6"}} [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"io.appium.SafariLa... [Appium] Capabilities: [debug] [iOS] Creating iDevice object with udid a132919a4b4c2c393ea15f7860fe8ae1e3d6f1e9 [debug] [iOS] Checking for presence of SafariLauncher at '/Applications/Appium 3.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app' [debug] [iOS] SafariLauncher exists [debug] [iOS] Cleaned up instruments socket /var/folders/z3/tkbh3cns4fd4fyd6xsdgk1bh68_4ff/T/instruments_sock [debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify! [debug] [UIAuto] Dynamic bootstrap path: /Users/502000533/Library/Application Support/appium/bootstrap/bootstrap-7bf8a16bd619352a.js [debug] [UIAuto] Reusing dynamic bootstrap: /Users/502000533/Library/Application Support/appium/bootstrap/bootstrap-7bf8a16bd619352a.js [debug] [iOS] Running ios real device reset flow [debug] [iOS] App is not installed. Will try to install. [MJSONWP] Encountered internal error running command: Error: Installing /Applications/Appium 3.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/build/SafariLauncher/SafariLauncher.app failed [HTTP] <-- POST /wd/hub/session 500 2061 ms - 291 [HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver.getStatus() with args: [] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"... |
Below steps worked for me :) Make sure the below Capabilities are setup properly Try to run this command from terminal and see if the connected device has the Web kit proxy running If you see some errors, like Now try to run the command: sudo ios_webkit_debug_proxy -c :9221 -d brew uninstall --force libimobiledevice ios-webkit-debug-proxy sudo ios_webkit_debug_proxy -c :9221 -d |
After using brew to install on OSX 10.13.5 and then Following the advice of terminal-illness above I ran |
hi @skwid138, did you install libimobiledevice with --HEAD flag? what does |
I have installed the XCode upgrade to my iOS 7.3.1, to run my existing IPhone Appium Tests using iOS 10. The some of my real mobile devices have also been upgraded but Since the upgrade to XCode my browser app tests all devices are failing. The ios-webkit-debug proxy has been having the same issue:
Could not connect to lockdownd. Exiting Permission denied.
Unable to attach inspector.
I have continually booted/rebooted the mobile devices and the iMac Mini (El Captain). I have even tried uninstalling/reinstalling the ios_webkit_debug_proxy, but nothing has helped...
It seems like the upgrade of the XCode 7.3.1 to include iOS 10 appears to be the issue because using the ios_webkit_debug_proxy with the iOS 9.3.5 devices, have also stopped working, failing with the same reason.
I have since run SafariLauncher using XCode on both iOS 9.3.5 and 10.0.1. using idevice -l all my devices are listed, using idevicepair pair was a SUCCESS, BUT using idevicepair validate produces:
ERROR: Device is not paired with this host
Which seems to be a contradiction.... I have also tried using Instruments on the MAC but when I choose a device having 10.0.1 installed the recording button is not enabled and has the comment: "This instrument's supported recording mode are none". This may be of no interest - just something I noticed...
Help....
The text was updated successfully, but these errors were encountered: