Skip to content
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

Connect Fails #7554

Closed
cyberduck opened this issue Nov 6, 2013 · 6 comments
Closed

Connect Fails #7554

cyberduck opened this issue Nov 6, 2013 · 6 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Nov 6, 2013

a7168ac created the issue

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.

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 6, 2013

@dkocher commented

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.

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 6, 2013

@dkocher commented

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

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 6, 2013

@dkocher commented

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

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 7, 2013

a7168ac commented

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 8faa526, could you please provide me with instructions on how to apply that? I am new to a mac.

Thanks.

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 7, 2013

@dkocher commented

  • 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.

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 7, 2013

@dkocher commented

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.

Loading

@cyberduck cyberduck closed this Nov 7, 2013
@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants