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 238238 - Map remote path error: Remote path does not exist : Windows -> Samba
Summary: Map remote path error: Remote path does not exist : Windows -> Samba
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-11 18:16 UTC by mick_netb
Modified: 2015-05-16 08:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jpg of dialog box fail (56.13 KB, image/pjpeg)
2013-11-11 18:16 UTC, mick_netb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mick_netb 2013-11-11 18:16:59 UTC
Created attachment 142063 [details]
jpg of dialog box fail

I try to map a remote path and despite being able to use with folders dialog to click-navigate to my desired folders the request to map the drives fails with the disaplyed error:

- Remote path '/app/' doesnt exist.

The IDE log contains the following lines:


FINE [nativeexecution.support.logger]: [28219 ms.] New connection established: user@host.net - Linux-SuSE
FINE [cnd.remote.logger]: RemoteCommandSupport<Init>: Running [test -d "/remote/dir" -o -f "/remote/dir"] on user@host.net
FINEST [nativeexecution.support.logger]: [28219 ms.] user@host.net test -d "/remote/dir" -o -f "/remote/dir" [0]: State changed: INITIAL -> STARTING
FINE [nativeexecution.support.logger]: [28219 ms.] availableChannels == 10
FINE [nativeexecution.support.logger]: [28219 ms.] Reuse session [32,919,302]. 9 channels remains...
FINE [nativeexecution.support.logger]: [28219 ms.] Acquired channel [30,917,883] from session [32,919,302].
FINEST [nativeexecution.support.logger]: [28453 ms.] user@host.net test -d "/remote/dir" -o -f "/remote/dir" [0]: State changed: STARTING -> ERROR
FINE [nativeexecution.support.logger]: [28453 ms.] Error occurred: info must be in format NAME=VALUE - was Floating exception
java.lang.IllegalArgumentException: info must be in format NAME=VALUE - was Floating exception
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.addProcessInfo(AbstractNativeProcess.java:206)
	at org.netbeans.modules.nativeexecution.NbNativeProcess.readProcessInfo(NbNativeProcess.java:176)
	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.cnd.remote.support.RemoteCommandSupport.run(RemoteCommandSupport.java:134)
	at org.netbeans.modules.cnd.remote.mapper.RemoteHostInfoProviderFactory$RemoteHostInfo.fileExists(RemoteHostInfoProviderFactory.java:71)
	at org.netbeans.modules.cnd.api.remote.HostInfoProvider.fileExists(HostInfoProvider.java:77)
	at org.netbeans.modules.cnd.remote.ui.EditPathMapDialog.validateMaps(EditPathMapDialog.java:600)
	at org.netbeans.modules.cnd.remote.ui.EditPathMapDialog.access$1200(EditPathMapDialog.java:100)
	at org.netbeans.modules.cnd.remote.ui.EditPathMapDialog$7.run(EditPathMapDialog.java:536)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2048)
FINE [cnd.remote.logger]: RemoteCommandSupport: test -d "/remote/dir" -o -f "/remote/dir" on user@host.net finished; rc=-1
FINEST [cnd.remote.logger]: RemoteCommandSupport ERROR: info must be in format NAME=VALUE - was Floating exception


I've spent a few days on this issue and found a similar post but the reply requested a log be attached (I couldn't find a solution).
Comment 1 mick_netb 2013-11-11 18:18:08 UTC
Your help is much appreciated.

Thanks in advance
Comment 2 Vladimir Kvashin 2013-12-13 06:39:13 UTC
My guess is that pty binary (which is used to launch processes on remote host) exited abnormally.

Could you answer some questions:

1) What is the remote system (uname -a; cat cat /etc/*release*)

2) On the remote host, pty utility I mentioned resides in /var/tmp/dlight_${USER}/${HASH}/pty (where HASH is a unique number that corresponds your NetBeans userdir). Could you ssh to the remote host and launch it twice with the following parameters

a) pty --dumpenv  /tmp/tmp_env

b) pty --no-pty --readenv  /tmp/tmp_env /bin/sh -c "exec test -d /app/rdg/ -o -f /app/rdg/"

Does it execute normally? What is the result code and the output?
Comment 3 Vladimir Kvashin 2013-12-18 09:33:12 UTC
Can not fix without additional information requested in previous comment.
Besides this might is probably fixed in 7.4.
Should the situation repeat, please reopen with additional information.
Comment 4 mmilic 2014-08-05 19:16:51 UTC
i am having exactly the same problem.

Even though i select the folders and do not type them in, in the path mapper fields, i still get an error:
Remote path "/home/milicm" doesnt exist

Here are the requested commands:

milicm@rheine> pwd
/var/tmp/dlight_milicm/477ef8a8/359511408
milicm@rheine> pty --dumpenv  /tmp/tmp_env
milicm@rheine> pty --no-pty --readenv  /tmp/tmp_env /bin/sh -c "exec test -d /home/milicm/ -o -f /home/milicm/"
PID=15594
TTY=/dev/pts/8
PSID=12055
NBMAGIC=15593

milicm@rheine> echo $?
0
milicm@rheine>
Comment 5 Vladimir Kvashin 2014-08-05 20:25:18 UTC
Thanks for info. You use 8.0, right?The original issue description contained the following in console/IDE loh:FINE [nativeexecution.support.logger]: [28453 ms.] Error occurred: info must be in format NAME=VALUE - was Floating exceptionjava.lang.IllegalArgumentException: info must be in format NAME=VALUE - was Floating exception	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.addProcessInfo(AbstractNativeProcess.java:206)	at org.netbeans.modules.nativeexecution.NbNativeProcess.readProcessInfo(NbNativePro...Does your IDE log contain such error messages?In any case, could you run your IDE with command line options-J-Dcnd.remote.logger.level=0 -J-Dnativeexecution.support.logger.level=0 -J-Dremote.support.logger.level=0and attach IDE log (or send it to me via email)?(Please note that IDE log will contain host and user names you would probably like to strip)
Comment 6 Vladimir Kvashin 2014-08-05 20:28:05 UTC
Sorry, it seems my previous comment was formatted in a strange way bu bugzilla. Let me try once more - the content is the same, just formatting differ (I hope this time bugzilla will leave it as is)

Thanks for info. You use 8.0, right?

The original issue description contained the following in console/IDE loh:

FINE [nativeexecution.support.logger]: [28453 ms.] Error occurred: info must be in format NAME=VALUE - was Floating exception
java.lang.IllegalArgumentException: info must be in format NAME=VALUE - was Floating exception
	at org.netbeans.modules.nativeexecution.AbstractNativeProcess.addProcessInfo(AbstractNativeProcess.java:206)
	at org.netbeans.modules.nativeexecution.NbNativeProcess.readProcessInfo(NbNativePro...


Does your IDE log contain such error messages?


In any case, could you run your IDE with command line options
-J-Dcnd.remote.logger.level=0 -J-Dnativeexecution.support.logger.level=0 -J-Dremote.support.logger.level=0
and attach IDE log (or send it to me via email)?

(Please note that IDE log will contain host and user names you would probably like to strip)
Comment 7 Vladimir Kvashin 2014-08-07 11:53:00 UTC
This might happen if "test" command is not in your path on remote host;
or if there is another "test" command in your path that precedes standard one.

Please the following in your remote host console:
test -d "/home/milicm" -o -f "/home/milicm"; echo $?

It should print "0", I guess it will print non zero.

There is a related issue 244116
Comment 9 Quality Engineering 2015-05-16 08:30:02 UTC
Integrated into 'main-silver', will be available in build *201505160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b1bd440c94b5
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #238238 - Map remote path error: Remote path does not exist : Windows -> Samba