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 249694

Summary: Warn user if remte system is not supported java.io.IOException: Cannot open shell channel on user@host]
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: NEW ---    
Severity: normal CC: alexvsimon
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 214654
Attachments: stacktrace
stacktrace

Description Exceptions Reporter 2015-01-08 10:45:32 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_65-b32
OS: Linux

User Comments:
GUEST: I opnened to program. One on a remot host. And another on my machine.

And all of a sudden Netbeans was unable to save the changes that I did on the remote host.

And now the remote files are read only :(




Stacktrace: 
java.io.IOException: Cannot open shell channel on arigi@sstar002.hpc.swin.edu.au
   at org.netbeans.modules.nativeexecution.JschSupport$2.call(JschSupport.java:118)
   at org.netbeans.modules.nativeexecution.JschSupport$2.call(JschSupport.java:111)
   at org.netbeans.modules.nativeexecution.JschSupport.start(JschSupport.java:143)
   at org.netbeans.modules.nativeexecution.JschSupport.startLoginShellSession(JschSupport.java:135)
   at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getRemoteUserEnvironment(UnixHostInfoProvider.java:284)
   at org.netbeans.modules.nativeexecution.support.hostinfo.impl.UnixHostInfoProvider.getHostInfo(UnixHostInfoProvider.java:115)
Comment 1 Exceptions Reporter 2015-01-08 10:45:34 UTC
Created attachment 151405 [details]
stacktrace
Comment 2 Maria Tishkova 2015-01-12 10:31:11 UTC
Hello!

Please provide additional information about remote system you try to connect to:
OS, version 
ssh on remote machine and run 2 commands%
1. uname -a
2. cat /etc/*release*


Also what do you mean by

"I opnened to program. One on a remot host. And another on my machine." ?


Have you connected trough the terminal (linux terminal)  using SSH on  remote machine and checked that files are makred as read-only on remote machine (which means NetBeans changed file attributes which we should not do) or you mean that you open some remote files in NetBeans editor and they are marked as read-only?
If your case is the last one then it is how it should be as you are not actually connected to the host and what you see in editor is just local cache which cannot be edited without connection to the remote host.

In your log file there are a lot of messages that OS is not supported by NetBeans that' why I have asked you to provide additional information about your remote host.

Thanks!
Comment 3 Vladimir Kvashin 2015-01-28 16:13:05 UTC
Nobody can answer since it was reported as guest :(

But what I see in log is 
java.io.IOException: Unsupported platform on username@hostname.domain
Comment 4 Vladimir Kvashin 2015-01-28 16:17:50 UTC
I think the only thing we could do in this respect is to warn user at the moment of remote host setup.
Comment 5 Alexander Simon 2015-03-23 09:01:08 UTC
Created attachment 152785 [details]
stacktrace

connect remote host
Comment 6 Vladimir Kvashin 2016-01-28 10:21:34 UTC
Restoring changes after issuezilla DB failure.
Comment 7 Vladimir Kvashin 2016-01-28 10:46:01 UTC
I'm removing 8.1 patch nomination since it needs UI which is too late to change