This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This bug was originally marked as duplicate of bug 216366, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.2 (Build 201609300101) VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14 OS: Linux User Comments: GUEST: when i try to open shell on remote host. Probably a mise of permission but i don't know file of the path to correcte them. Stacktrace: 2: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2846) at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:2155) at org.netbeans.modules.nativeexecution.api.util.HelperUtility.getPath(HelperUtility.java:196) at org.netbeans.modules.nativeexecution.api.util.HelperUtility.getPath(HelperUtility.java:104) at org.netbeans.modules.nativeexecution.NbNativeProcess.<init>(NbNativeProcess.java:81) at org.netbeans.modules.nativeexecution.NbRemoteNativeProcess.<init>(NbRemoteNativeProcess.java:57)
Created attachment 163220 [details] stacktrace
I'm able to reproduce this bug. Use this docker image: docker pull elijahth/ubuntu-ssh-server Then run instructions for "small tmp directory"
The text below is not directly related to this bug, maybe should file a new one to the remote component. After suppressing exception in HelperUtility (patch will be attached soon) the following annoying behavior happens: * Trying to connect to a remote host * Popup says that remote temp dir can't be used, exception is logged, everything is fine * BUT ide suggests me to connect again bringing authentication modal window to the front. * I hit cancel about 5 times and only after that I'm able to work with the IDE. I think 0 or 1 suggestions should be enough. (0, in fact, may be hard to implement). Why it happens: * After I hit cancel first time new CancellationException is raised in RemoteUserInfo * CancellationException is caught at in JSchChannelSupport:282, cancelled field is set to true and new InterruptedException("StartNewSession was cancelled ...") is thrown. ------------------------- Please note that we already lose some information about the cause here. A new exception says a new session was interrupted, but how? Cancelled? Connect was broken? It omits the information which helps us decide: should we try to reconnect after this fail or not. ------------------------- * InterruptedException is caught as Throwable at AbstractNativeProcess:186 and return status is set to failed (-2) * After some chain of returns we come to Md5checker:129 which tries to upload rfs_controller to the remote host. The result is set to Result.INEXISTENT. This triggers some additional work in SftpSupport.work:340 (if checkdir...). ------------------------- Obviously the shouldn't do any additional checks and attempts to upload something because user cancelled the connection. I think we should omit the information about the fact the connection was _cancelled_ not just interrupted. -------------------------
Fixed in 315185:1e424605c611 release82
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b9de163d0423 User: Ilia Gromov <ilia@netbeans.org> Log: Fixed #269321 - 2: No such file (transplanted from 1e424605c61196a4e24a37885f510a158673e3de)
https://netbeans.org/bugzilla/show_bug.cgi?id=269321 Changesets: http://hg.netbeans.org/releases/rev/1e424605c611 # Fixed #269321 - 2: No such file