Cyberduck Mountain Duck CLI

#7554 closed defect (worksforme)

Connect Fails

Reported by: artusor Owned by: dkocher
Priority: normal Milestone: 4.4.1
Component: sftp Version: 4.4
Severity: normal Keywords:
Cc: Architecture: Intel
Platform: Mac OS X 10.9

Description (last modified by dkocher)

I just purchased a copy of this program from the mac store. I tried to connect to an ip address that works from my windows PC.

I don't see anything in View-> Toggle Log Drawer. I did set debugging on with instructions from your website. See the log below:

		31  ???                                 0x0000000000000001 0x0 + 1
	)
Nov  5 22:43:33 Richs-MBPr.local Cyberduck[34319]: [main] ERROR ch.cyberduck.core.Local - Error creating new file No such file or directory
Nov  5 22:43:33 Richs-MBPr.local Cyberduck[34319]: [main] ERROR ch.cyberduck.core.sftp.MemoryHostKeyVerifier - Cannot read known hosts file /Users/artusor/.ssh/known_hosts
	
	java.io.IOException: No such file or directory
		at java.io.UnixFileSystem.createFileExclusively(Native Method)
		at java.io.File.createNewFile(File.java:1006)
		at ch.ethz.ssh2.KnownHosts.initialize(KnownHosts.java:465)
		at ch.ethz.ssh2.KnownHosts.<init>(KnownHosts.java:80)
		at ch.cyberduck.core.sftp.MemoryHostKeyVerifier.<init>(MemoryHostKeyVerifier.java:54)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController.<init>(AlertHostKeyController.java:80)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController.<init>(AlertHostKeyController.java:76)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController$Factory.create(AlertHostKeyController.java:64)
		at ch.cyberduck.ui.HostKeyControllerFactory.get(HostKeyControllerFactory.java:50)
		at ch.cyberduck.ui.threading.ControllerBackgroundAction.<init>(ControllerBackgroundAction.java:37)
		at ch.cyberduck.ui.threading.BrowserBackgroundAction.<init>(BrowserBackgroundAction.java:39)
		at ch.cyberduck.ui.threading.WorkerBackgroundAction.<init>(WorkerBackgroundAction.java:37)
		at ch.cyberduck.ui.cocoa.BrowserController$29$2.<init>(BrowserController.java:3320)
		at ch.cyberduck.ui.cocoa.BrowserController$29.run(BrowserController.java:3296)
		at ch.cyberduck.ui.cocoa.BrowserController$33.run(BrowserController.java:3419)
		at ch.cyberduck.ui.cocoa.BrowserController.disconnect(BrowserController.java:3463)
		at ch.cyberduck.ui.cocoa.BrowserController.unmountImpl(BrowserController.java:3408)
		at ch.cyberduck.ui.cocoa.BrowserController.unmount(BrowserController.java:3399)
		at ch.cyberduck.ui.cocoa.BrowserController.unmount(BrowserController.java:3354)
		at ch.cyberduck.ui.cocoa.BrowserController.mount(BrowserController.java:3290)
		at ch.cyberduck.ui.cocoa.BrowserController.quickConnectSelectionChanged(BrowserController.java:1784)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:606)
		at org.rococoa.internal.OCInvocationCallbacks.callMethod(OCInvocationCallbacks.java:170)
		at org.rococoa.internal.OCInvocationCallbacks.access$200(OCInvocationCallbacks.java:52)
		at org.rococoa.internal.OCInvocationCallbacks$2.callback(OCInvocationCallbacks.java:82)
		at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:606)
		at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:449)
		at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:479)
		at com.sun.jna.Native.invokeVoid(Native Method)
		at com.sun.jna.Function.invoke(Function.java:334)
		at com.sun.jna.Function.invoke(Function.java:278)
		at org.rococoa.internal.MsgSendHandler.invoke(MsgSendHandler.java:111)
		at com.sun.jna.Library$Handler.invoke(Library.java:232)
		at com.sun.proxy.$Proxy0.syntheticSendMessage(Unknown Source)
		at org.rococoa.Foundation.send(Foundation.java:208)
		at org.rococoa.Foundation.send(Foundation.java:194)
		at org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(ObjCObjectInvocationHandler.java:269)
		at org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(ObjCObjectInvocationHandler.java:232)
		at org.rococoa.internal.ObjCObjectInvocationHandler.intercept(ObjCObjectInvocationHandler.java:191)
		at ch.cyberduck.ui.cocoa.application.NSApplication$$ByRococoa.run(<generated>)
		at ch.cyberduck.ui.cocoa.MainApplication.main(MainApplication.java:156)
Nov  5 22:43:33 Richs-MBPr.local sandboxd[1874] ([34319]): Cyberduck(34319) deny file-write-create /Users/artusor/.ssh
Nov  5 22:43:38 --- last message repeated 1 time ---
Nov  5 22:43:38 Richs-MBPr.local Cyberduck[34319]: [main] ERROR ch.cyberduck.core.Local - Error creating new file No such file or directory
Nov  5 22:43:38 Richs-MBPr.local Cyberduck[34319]: [main] ERROR ch.cyberduck.core.sftp.MemoryHostKeyVerifier - Cannot read known hosts file /Users/artusor/.ssh/known_hosts
	
	java.io.IOException: No such file or directory
		at java.io.UnixFileSystem.createFileExclusively(Native Method)
		at java.io.File.createNewFile(File.java:1006)
		at ch.ethz.ssh2.KnownHosts.initialize(KnownHosts.java:465)
		at ch.ethz.ssh2.KnownHosts.<init>(KnownHosts.java:80)
		at ch.cyberduck.core.sftp.MemoryHostKeyVerifier.<init>(MemoryHostKeyVerifier.java:54)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController.<init>(AlertHostKeyController.java:80)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController.<init>(AlertHostKeyController.java:76)
		at ch.cyberduck.ui.cocoa.AlertHostKeyController$Factory.create(AlertHostKeyController.java:64)
		at ch.cyberduck.ui.HostKeyControllerFactory.get(HostKeyControllerFactory.java:50)
		at ch.cyberduck.ui.threading.ControllerBackgroundAction.<init>(ControllerBackgroundAction.java:37)
		at ch.cyberduck.ui.threading.BrowserBackgroundAction.<init>(BrowserBackgroundAction.java:39)
		at ch.cyberduck.ui.cocoa.threading.BrowserControllerBackgroundAction.<init>(BrowserControllerBackgroundAction.java:29)
		at ch.cyberduck.ui.cocoa.BrowserController$34.<init>(BrowserController.java:3433)
		at ch.cyberduck.ui.cocoa.BrowserController.disconnect(BrowserController.java:3433)
		at ch.cyberduck.ui.cocoa.BrowserController.unmountImpl(BrowserController.java:3408)
		at ch.cyberduck.ui.cocoa.BrowserController.unmount(BrowserController.java:3399)
		at ch.cyberduck.ui.cocoa.BrowserController.unmount(BrowserController.java:3354)
		at ch.cyberduck.ui.cocoa.BrowserController.unmount(BrowserController.java:3340)
		at ch.cyberduck.ui.cocoa.BrowserController$29$1.cleanup(BrowserController.java:3301)
		at ch.cyberduck.ui.cocoa.BrowserController$29$1.cleanup(BrowserController.java:3297)
		at ch.cyberduck.ui.threading.WorkerBackgroundAction.cleanup(WorkerBackgroundAction.java:51)
		at ch.cyberduck.ui.AbstractController$BackgroundCallable$1.run(AbstractController.java:177)
		at org.rococoa.internal.MainThreadUtils$3.callback(MainThreadUtils.java:90)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:606)
		at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:449)
		at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:479)
		at com.sun.jna.Native.invokeVoid(Native Method)
		at com.sun.jna.Function.invoke(Function.java:334)
		at com.sun.jna.Function.invoke(Function.java:278)
		at org.rococoa.internal.MsgSendHandler.invoke(MsgSendHandler.java:111)
		at com.sun.jna.Library$Handler.invoke(Library.java:232)
		at com.sun.proxy.$Proxy0.syntheticSendMessage(Unknown Source)
		at org.rococoa.Foundation.send(Foundation.java:208)
		at org.rococoa.Foundation.send(Foundation.java:194)
		at org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(ObjCObjectInvocationHandler.java:269)
		at org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(ObjCObjectInvocationHandler.java:232)
		at org.rococoa.internal.ObjCObjectInvocationHandler.intercept(ObjCObjectInvocationHandler.java:191)
		at ch.cyberduck.ui.cocoa.application.NSApplication$$ByRococoa.run(<generated>)
		at ch.cyberduck.ui.cocoa.MainApplication.main(MainApplication.java:156)
Nov  5 22:43:38 Richs-MBPr.local sandboxd[1874] ([34319]): Cyberduck(34319) deny file-write-create /Users/artusor/.ssh
Nov  5 22:44:08 --- last message repeated 1 time ---
Nov  5 22:44:49 Richs-MBPr.local Console[34370]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.

Change History (7)

comment:1 Changed on Nov 6, 2013 at 12:23:15 PM by dkocher

  • Component changed from core to sftp
  • Description modified (diff)
  • Milestone set to 4.4.1
  • Owner set to dkocher

comment:2 Changed on Nov 6, 2013 at 12:25:15 PM by dkocher

As a workaround create a known_hosts file either with

mkdir -p .ssh; touch ~/.ssh/known-hosts

or by opening a connection to the host with ssh from Terminal.app first.

comment:3 Changed on Nov 6, 2013 at 12:37:40 PM by dkocher

Looking at the stacktrace it should not fail to connect however but only prompt to accept the host key.

comment:4 Changed on Nov 6, 2013 at 12:38:13 PM by dkocher

Fix in r13744. Prompt for known_hosts file if sandboxing denies access and store security scoped bookmark in Preferences.

comment:5 Changed on Nov 7, 2013 at 11:02:19 AM by artusor

I tried your workaround, but I had no luck. Connection is still refused.

I should add that the connection is actually to an iPad, it is used by an iPad app to copy files to it. I don't actually have a password.

As for your fix in r13744, could you please provide me with instructions on how to apply that? I am new to a mac.

Thanks.

comment:6 Changed on Nov 7, 2013 at 11:24:15 AM by dkocher

  • Do you get a warning that says Unknown host key for …?
  • Do you get an error message that the connection fails? Please post a screenshot.

comment:7 Changed on Nov 7, 2013 at 3:13:29 PM by dkocher

  • Resolution set to worksforme
  • Status changed from new to closed

I assume a "Connection refused" error is displayed indicating that there is an networking issue connecting to the server either because the server is not running or not reachable.

Note: See TracTickets for help on using tickets.
swiss made software