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.

Bug 269321 - 2: No such file
Summary: 2: No such file
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on: 237078 216366
Blocks:
  Show dependency tree
 
Reported: 2016-12-13 14:22 UTC by Exceptions Reporter
Modified: 2017-04-12 12:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227535


Attachments
stacktrace (1.35 KB, text/plain)
2016-12-13 14:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-12-13 14:22:02 UTC
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)
Comment 1 Exceptions Reporter 2016-12-13 14:22:04 UTC
Created attachment 163220 [details]
stacktrace
Comment 2 ilia 2017-04-05 13:15:51 UTC
I'm able to reproduce this bug.

Use this docker image:
docker pull elijahth/ubuntu-ssh-server

Then run instructions for "small tmp directory"
Comment 3 ilia 2017-04-06 08:05:54 UTC
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.
    -------------------------
Comment 4 ilia 2017-04-06 08:57:53 UTC
Fixed in 315185:1e424605c611 release82
Comment 5 Quality Engineering 2017-04-11 01:53:18 UTC
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)
Comment 6 ilia 2017-04-12 12:44:40 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269321 Changesets:
    http://hg.netbeans.org/releases/rev/1e424605c611 # Fixed #269321 - 2: No such file