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.
Summary: | SSH terminal not supported | ||
---|---|---|---|
Product: | cnd | Reporter: | daorus |
Component: | Terminalemulator | Assignee: | ilia |
Status: | REOPENED --- | ||
Severity: | normal | CC: | EugenOS, ilia, mmirilovic, vkvashin |
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 269321 | ||
Attachments: |
full messages.log attached
Log file |
Description
daorus
2013-10-13 12:01:26 UTC
Which local and remote machines you are using? > Which local and remote machines you are using? remote. I want to use it instead of putty. I mean this putty http://en.wikipedia.org/wiki/PuTTY Could you please provide the following information: - local machine OS - remote machine OS - steps to reproduce this issue Do you have MinGW, Cygwin installed? Need additional info from thee user > Could you please provide the following information: > - local machine OS windows xp ps. by the way this information is the bug issue header, Hardware information, just look at the top of this page > - remote machine OS Terminal error "Failed to get proccess PID" Linux Gentoo 4.5.3 Linux Debian 4.6.3 Alert errror "Local Terminal is not supported on this system": FreeBSD 8.1 > - steps to reproduce this issue 1. open ssh prompt with Putty to be sure remote ssh is working and your access information is valid 2. Launch netbeans, Menu -> Windows -> Output -> Terminal 3. In Terminal docking window press second toolbar button with two monitors icon with tooltip "Create New Remote Terminal Tab" 4. In "SSH Connection" dialog choose "Other Host" and fill-in your valid access information: User (login), Host, SSH Port (which is 22) Click next. 5. In "Authentification Type" dioalog choose Password and click Ok. 6. In "Authentification" dialog enter password, check "Remember password" and press ok. 7. You got information alert "Local Terminal is not supported on this system" for freebsd or "Failed to get proccess PID" error in terminal for linux > Do you have MinGW, Cygwin installed?
MinGW 4.4 (from QT 4.8 SDK)
no Cygwin, cause it is required for local terminal and i don't use local terminal at all
Please, do the following steps: - go to your NB userdir (in NetBeans Help->About to view path) - erase contains of ./var/log folder - run "netbeans.exe -J-Dnativeexecution.support.logger.level=100" - reproduce the bug - close NB - attach here logs (messages*) from ./var/log folder (In reply to ilia from comment #8) > Please, do the following steps: > - attach here logs (messages*) from ./var/log folder for linux connection error line from log INFO [nativeexecution.support.logger]: [25438 ms.] bash: /var/tmp/dlight_jason/d6bd2c1f/pty: Permission denied FINEST [nativeexecution.support.logger]: [25438 ms.] jason@godsf.com:22 /bin/bash [0]: State changed: STARTING -> ERROR INFO [nativeexecution.support.logger]: [25454 ms.] Error occurred: Failed to get process PID java.lang.InternalError: Failed to get process PID at org.netbeans.modules.nativeexecution.NbNativeProcess.readProcessInfo(NbNativeProcess.java:181) at org.netbeans.modules.nativeexecution.NbNativeProcess.create(NbNativeProcess.java:91) [catch] at org.netbeans.modules.nativeexecution.AbstractNativeProcess.createAndStart(AbstractNativeProcess.java:152) at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:270) at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1.call(NativeExecutionService.java:193) at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1.call(NativeExecutionService.java:160) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$2.run(NativeTaskExecutorService.java:82) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036) WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method removePropertyChangeListener from org.netbeans.modules.terminal.ioprovider.TerminalInputOutput@d0ba2c WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.versioning.core.Utils.getUnversionedFolders(Utils.java:283) for unix connection error line WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.keyring.impl.Utils.goMinusR(Utils.java:75) WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.versioning.core.Utils.getUnversionedFolders(Utils.java:283) INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 256 INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped Please attach a full log for both cases. To clarify the situation with a Gentoo/Debian: - Connect them via PuTTY (use the same user-name as in the dialog then trying to connect via NB) - then connected cd to /var/tmp/dlight_jason/d6bd2c1f/ - "ls -la". What permission do you have? - clear /var/tmp - clear userdir on local machine (help->about "User directory:...) - restart a netbeans. Do you have any changes in the issue? Also paste here the result of "ls -la" please. Need additional info from user (In reply to ilia from comment #11) > Need additional info from user I provided all I could. Nothing more would be provided, because information you require may contain sensitive personal data. Unfortunately, without this information I can only guess what kind of problem do you have. If it is possible, please let me know permissions of these folders/files: /var/ /var/tmp/ /var/tmp/dlight_jason/ /var/tmp/dlight_jason/d6bd2c1f/ /var/tmp/dlight_jason/d6bd2c1f/pty Also let me know "umask" for this user. Thank you. (In reply to ilia from comment #13) > Unfortunately, without this information I can only guess what kind of > problem do you have. > > If it is possible, please let me know permissions of these folders/files: > > /var/ > /var/tmp/ > /var/tmp/dlight_jason/ > /var/tmp/dlight_jason/d6bd2c1f/ > /var/tmp/dlight_jason/d6bd2c1f/pty > > Also let me know "umask" for this user. Thank you. Dude, remote server is a SHARED HOSTING!! > Ю Also let me know "umask" for this user
Any by the way... i'm out of a *nix admin skills and your words for me are like in chineese language
Considering an amount of information that was provided, I can suggest this solution: run netbeans with the flag: "netbeans.exe -J-Dcnd.tmpbase=<dir>" where <dir> is directory on remote machine where you have permission to write, read, execute. Directory should exist. It can be some subdirectory of your home directory. You can check permissions connecting via PuTTY and executing "ls -la" in a folder. Does it work for you? It seems that the problem is as follows: "public hosting" doesn't allow you to execute files in the default tmp directory which is "/var/tmp". (In reply to ilia from comment #16) > Considering an amount of information that was provided, I can suggest this > solution: > > run netbeans with the flag: > "netbeans.exe -J-Dcnd.tmpbase=<dir>" > where <dir> is directory on remote machine where you have permission to > write, read, execute. Directory should exist. It can be some subdirectory of > your home directory. > You can check permissions connecting via PuTTY and executing "ls -la" in a > folder. > > Does it work for you? > > It seems that the problem is as follows: "public hosting" doesn't allow you > to execute files in the default tmp directory which is "/var/tmp". Yes!!! It works!! Thank you so much, it fantastic! Of course it is not the most convinient way to set up the path, but at least it works. And I hope in future releases someone will add a REMOTE PATH option in connection settings Thank you for support Hi, I have the same problem but the TMP DIRECTORY solution didn't work... What information can I give you ? Netbeans/About Product Version: NetBeans IDE 8.0 (Build 201403101706) Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 2 Java: 1.7.0_51; Java HotSpot(TM) Client VM 24.51-b03 Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13 System: Windows 7 version 6.1 running on x86; Cp1252; fr_FR (nb) User directory: C:\Users\Win7\AppData\Roaming\NetBeans\8.0 Cache directory: C:\Users\Win7\AppData\Local\NetBeans\Cache\8.0 With Putty, all is ok... ssh: OK, make: OK Thanks (In reply to nk36 from comment #18) > What information can I give you ? See comment 8 Need logs from the user. This bug seems to be reproducible on my home laptop. ilia@ilia-idea:~$ uname -a Linux ilia-idea 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux The directory /var/tmp/ is just empty, it doesn't contain any of /var/tmp/dlight_* folders. The log shows "INFO [nativeexecution.support.logger]: [318495 ms.] bash: /var/tmp/dlight_igromov/206118ba/1579889241/pty: Permission denied" Sorry, everything on it's own place in /var/tmp/dlight_*, I mixed up paths. Pty file was successfully uploaded, but has no exec rights. nk36, what directory you provided to "J-Dcnd.tmpbase" so it didn't help you? Your home dir or something like /tmp ? please run netbeans with flags: netbeans.exe -J-Dcnd.tmpbase=<GOOD_DIR> -J-Dnativeexecution.support.logger.level=100 where <GOOD_DIR> is your (!)HOME dir (for example /home/nk36) on the remote machine. if the problem occurs again, send me a log (see comment #8) and reopen the bug. Thanks. In some cases "ls -la" can confuse user by saying a dir has exec rights while it hasn't (see bug #226123, comment #3). That's why changing tmp cnd.tmpbase may haven't help you, new dir had no exec permissions too. Created attachment 158395 [details]
full messages.log attached
Hello Have similar troubles. setting permissions/changing temp dir was not solve the troube. local OS Windows 7 x64 remote OS FreeBSD 9.3 x64 reporting log messages (full log attached in comment before): FINE [nativeexecution.support.logger]: [19139 ms.] Uploading C:\Users\EugenOS\AppData\Roaming\NetBeans\8.0\bin\FreeBSD-x86\fs_server to root@92.38.31.254:12254:/var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server schedulled FINE [nativeexecution.support.logger]: [19139 ms.] Md5 check for root@92.38.31.254:12254:/var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server started WARNING [nativeexecution.support.logger]: [19139 ms.] Can not perform md5 check for root@92.38.31.254:12254: Unexpected OS: UNKNOWN FINE [nativeexecution.support.logger]: [19139 ms.] Getting stat for /var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server schedulled FINE [nativeexecution.support.logger]: [19139 ms.] Getting stat for /var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server started FINE [nativeexecution.support.logger]: [19139 ms.] availableChannels == 10 FINE [nativeexecution.support.logger]: [19139 ms.] Reuse session [1 613 529 960]. 9 channels remain... FINE [nativeexecution.support.logger]: [19149 ms.] Acquired channel [636 912 315] from session [1 613 529 960]. FINEST [nativeexecution.support.logger]: [19437 ms.] SFTP max. busy channels reached: 1 FINE [nativeexecution.support.logger]: [19510 ms.] Getting stat for /var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server finished in 1 attempt(s) FINE [nativeexecution.support.logger]: [19510 ms.] root@92.38.31.254:12254:/var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server up to date - skipped FINE [nativeexecution.support.logger]: [19510 ms.] Uploading C:\Users\EugenOS\AppData\Roaming\NetBeans\8.0\bin\FreeBSD-x86\fs_server to root@92.38.31.254:12254:/var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server OK FINEST [nativeexecution.support.logger]: [19510 ms.] root@92.38.31.254:12254 /var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server "-t" "4" "-p" "-d" "/var/tmp/dlight_root/3fcd65a7/fs_server_cache" [0]: State changed: INITIAL -> STARTING FINE [nativeexecution.support.logger]: [19510 ms.] availableChannels == 9 FINE [nativeexecution.support.logger]: [19510 ms.] Reuse session [1 613 529 960]. 8 channels remain... FINE [nativeexecution.support.logger]: [19510 ms.] Acquired channel [1 570 247 310] from session [1 613 529 960]. FINEST [nativeexecution.support.logger]: [19789 ms.] root@92.38.31.254:12254 /var/tmp/dlight_root/3fcd65a7/bin/FreeBSD-x86/fs_server "-t" "4" "-p" "-d" "/var/tmp/dlight_root/3fcd65a7/fs_server_cache" [30145]: State changed: STARTING -> RUNNING WARNING [remote.support.logger]: fs_server at root@92.38.31.254:12254 failed: null java.util.concurrent.ExecutionException: org.netbeans.modules.remote.impl.fs.server.FSSDispatcher$InitializationException: Wrong server version: 1.1.24 should be more or equal to 1.2.1 at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.dispatch(FSSDispatcher.java:369) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.dispatch(FSSDispatcher.java:343) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.sendRefreshRequest(FSSDispatcher.java:171) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.access$100(FSSDispatcher.java:93) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher$ConnectTask.run(FSSDispatcher.java:205) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) Caused by: org.netbeans.modules.remote.impl.fs.server.FSSDispatcher$InitializationException: Wrong server version: 1.1.24 should be more or equal to 1.2.1 at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.checkVersions(FSSDispatcher.java:580) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.handShake(FSSDispatcher.java:550) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.getOrCreateServer(FSSDispatcher.java:519) at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.dispatch(FSSDispatcher.java:359) ... 6 more As i understand the problem is due to incorrect version of fs_server??? what can i do to solve this? Also, i found that when i opens local terminal it writes to messages.log some data, but when i try to open remote terminal, there is no additional bytes in messages.log appears. ??? So as i understand netbeans even does not try to access remote terminal??? what is can to be? Hello. Have a similar troubles. (see 2 comments before). (In reply to EugenOS from comment #25) > Also, i found that when i opens local terminal it writes to messages.log > some data, but when i try to open remote terminal, there is no additional > bytes in messages.log appears. ??? So as i understand netbeans even does > not try to access remote terminal??? what is can to be? Remote terminal works on ... You can see all supported platforms in netbeans-8.1/ide/bin/nativeexecution folder is it laned to add it for FreeBSD? Or may be is there any way to use external terminal (f.ex. putty)? I've try this: 1) start putty connection 2) # who am i (it ansvers f.ex. pts/2) 3) start debugging on remote host 4) open debug console (it shows program output) 5) on putty: # sleep 10000 6) in debug console: tty /dev/pts/2 it shows $12tty /dev/pts/2 but gdb does not switch program in/out to putty so is there any way to atach some terminal to debugging program? i mean: "start debugging on remote host" = start debugging in netbeans the project on remote host. "debug console" = (netbeans debug console. menu: Windows->Debug->Debug console (i do not know right english menu (console) name, i use russian netbeans) I am having this problem on an OS X host - connecting to a Ubuntu remote. I can build remotely, but I cannot connect with a terminal window nor can I get a debug output window to open. I am able to connect with ssh from a terminal window in OS X and I can connect with a NetBeans terminal window opened for other targets where I logout then ssh to the desired target. When I try to open a second terminal window (with the multiple/overlapping screen icon) I can enter the target and login name - but NetBeans never prompts for a password... The Windows solution does not work for me in OS X. Is there another solution for Mac? Thank you! Some additional info. When I RUN the remote program it will compile and run - and I DO get an output terminal window open. However, when I try to debug - I am able to set breakpoints and the program seems to run, but the output window does not display anything. My Host system is: Model Name: Mac Pro Model Identifier: MacPro6,1 Processor Name: 8-Core Intel Xeon E5 Processor Speed: 3 GHz Number of Processors: 1 Total Number of Cores: 8 L2 Cache (per Core): 256 KB L3 Cache: 25 MB Memory: 64 GB OS - 10.11.5 Target system is: Ubuntu - ARM 64 ubuntu@localhost:~$ uname -a Linux localhost.localdomain 3.10.102-0-pine64-longsleep #7 SMP PREEMPT Fri Jun 17 21:30:48 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux And a bit more info. When I click on the "Open Terminal in Working Directory" button I get the "terminal not supported" dialog pop-up. I end up getting a terminal on my host system from which I CAN ssh into the target system. (In reply to jeffsnell from comment #32) > And a bit more info. > > When I click on the "Open Terminal in Working Directory" button I get the > "terminal not supported" dialog pop-up. I end up getting a terminal on my > host system from which I CAN ssh into the target system. See issue 257593. It is a true pop-up dialog. Thank you for this information - however my real problem is: I can build remotely (host: OS X; target: ARM), but I cannot debug remotely. When I try to debug remotely- the build completes (I say this because the output window shows the build completes), the debug (apparently) starts to run (I say apparently because I can set breakpoints, which progress as I would expect if the program were executing), but the output window remains blank even though the program is writing to standard output. Please also note that- When I simply RUN - the build completes (as above) and the output does display in an output window (tab). Thank you for your attention. One more thing - I HAVE been able to successfully build and debug remotely from the OS X host to an Intel based Ubuntu Linux target (running in a VM on the Mac. Not comes the mea culpa - I rechecked the host: OS X to target: Intel Ubuntu VM connection and I find that this works the same as with the ARM target. I am able to debug, but the output window does NOT display the program output as the program runs. The other debug functions (i.e. display of variables during the debug) works, but the output window remains blank. So I tried debug on the host OS X - and I get the same results as above. Is there not an ability to see standard output during a debug session? Or do I just have something set-up wrong? I am new to NetBeans and I apologize if this is a silly newbie question. Do you speak about issue 256985? Created attachment 163141 [details]
Log file
I have the same problem. ("Local Terminal is not supported by your system") I tried to run netbeans with this command: "netbeans.exe -J-Dnativeexecution.support.logger.level=100" I got only one failure. It was related to file "/etc/auto.master" that was not found on the host. I found that this file is related to package "autofs". I installed this package on the host and I run again netbeans with the same command. Now, the log file is clean (no failure) and netbeans still popup windows with text "Local Terminal is not supported by your system" when I try to open remote terminal. I attached my log file. My host is a BeagleBone Black board with ARM based Debian Linux distribution |