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 249074 - [regression] Remote builds using SFTP broke with 8.0.2 update
Summary: [regression] Remote builds using SFTP broke with 8.0.2 update
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P1 normal with 1 vote (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-12-02 17:43 UTC by crcoenen
Modified: 2015-02-26 11:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Here is the .jar built for 8.0.1; if you replace the cnd/modules/org-netbeans-modules-cnd-remote.jar from your NetBeans installation with the attached one, this should solve the issue (1.15 MB, application/octet-stream)
2014-12-04 14:58 UTC, Vladimir Kvashin
Details
Here is a .jar that is built for 8.0.2 (1.15 MB, application/octet-stream)
2014-12-04 23:53 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crcoenen 2014-12-02 17:43:50 UTC
I'm using Windows 7 for remote C++ development on a red hat linux server.  My remote builds were working fine in Netbeans 8.0.1 and prior but with the 8.0.2 update my builds now fail.  I have my remote host set up to use SFTP as per a prior recommendation from the netbeans team.

The SFTP process now fails.  If I change my remote host to use "automatic copying" it works fine.  WIth SFTP I'm getting this error even though the Temporary File.docx" does exist both locally and remotely.

Copying project files to /home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64 at atw0701b@nvtalnx50
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
	Zipping 30 changed files...
	Uploading zip to atw0701b@nvtalnx50...
	Unzipping changed files...
Checking exec permissions...
chmod: cannot access `/home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64/C/Sandbox/ncrx_laker_codevelop/Scripts/Temporary': No such file or directory
chmod: cannot access `File.docx': No such file or directory
Error copying project files to /home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64 at atw0701b@nvtalnx50: 
Can not check remote directories. xargs exited with error code 123
BUILD FAILED

Side note - the 8.0.2 update also causes the "Output" window/tab where build messages are displayed to no longer automatically become the active tab...I now have to click the tab to see what it says.
Comment 1 crcoenen 2014-12-02 21:17:24 UTC
I was able to correct the issue by deleting the "Temporary File.docx" file.  It seems the SFTP process now doesn't like filenames that have spaces in them?  I also added a configurations - copy.xml file to my netbeans folder and the SFTP then complained about that file also, saying it didn't exist and couldn't copy it (again likely because it has spaces in it?).

Although that fixed the problem for me I did also find that it was having strange issues copying over some of the files in the netbeans/private/ folder as well.  I got past them by manually copying them over via FTP, which is obviously not a desirable workaround.
Comment 2 VisioN 2014-12-03 10:45:59 UTC
I second this. The same goes with some files from NetBeans project "private" folder which are not synced correctly. Downgrading Remote module to the lower version fixes the issue.
Comment 3 mainnika 2014-12-03 19:44:23 UTC
Confirm this.
SFTP remote builds fails with error:

Copying project files to /usr/users/username/.netbeans/remote/88.foo.bar.7/mainnika-pc-Windows-x86_64 at username@88.foo.bar.7:33
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
	Zipping 4 changed files...
	Uploading zip to username@88.foo.bar.7:33...
	Unzipping changed files...
Checking exec permissions...
chmod: cannot access ‘/usr/users/username/.netbeans/remote/88.foo.bar.7/mainnika-pc-Windows-x86_64/C/Users/username/Develop/CppCheck/nbproject/private/downloads-88.foo.bar.7-username-37’: No such file or directory

Change remote host to use "automatic copying" is temporary solution (very slow at large project).
Comment 4 Vladimir Kvashin 2014-12-04 14:56:43 UTC
fix pushed into cnd-main:
http://hg.netbeans.org/cnd-main/rev/1cb108746d79

I'm in process of some further investigations, so I'm not closing the issue.
Comment 5 Vladimir Kvashin 2014-12-04 14:58:41 UTC
Created attachment 150880 [details]
Here is the .jar built for 8.0.1; if you replace the cnd/modules/org-netbeans-modules-cnd-remote.jar from your NetBeans installation with the attached one, this should solve the issue
Comment 6 Vladimir Kvashin 2014-12-04 15:04:32 UTC
(In reply to Vladimir Kvashin from comment #5)
> Here is the .jar built for 8.0.1
Sorry, I meant 8.0.2, not 8.0.1
Comment 7 crcoenen 2014-12-04 21:32:39 UTC
Tried up the updated .jar build Vladimir supplied with "mostly" successful results.  After updating the jar I switched my remote host setting back to SFTP and still got this error related to missing "private" files:

Copying project files to /home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64 at atw0701b@nvtalnx50
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
	Zipping 301 changed files...
	Uploading zip to atw0701b@nvtalnx50...
	Unzipping changed files...
Checking exec permissions...
chmod: cannot access `/home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64/C/Sandbox/ncrx_navitus_master/nbproject/private/titemppppp_timestamps-nvtalnx50-atw0701b-22': No such file or directory
chmod: cannot access `/home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64/C/Sandbox/ncrx_navitus_master/nbproject/private/ePA.properties': No such file or directory
Error copying project files to /home/atw0701b/.netbeans/remote/nvtalnx50/nvt1057-Windows-x86_64 at atw0701b@nvtalnx50: 
Can not check remote directories. xargs exited with error code 123
BUILD FAILED

I then switched the remote settings back to "automatic copying" and did another successful compile.  I then switched the remote setting back to SFTP again, and all subsequent files since then have worked fine.  So the patch seems to be working okay after the initial hiccup.
Comment 9 Vladimir Kvashin 2014-12-04 23:49:04 UTC
(In reply to crcoenen from comment #7)
You are right. Now both are fixed.
Comment 10 Vladimir Kvashin 2014-12-04 23:53:55 UTC
Created attachment 150898 [details]
Here is a .jar that is built for 8.0.2

I'm attaching jar that is built for 8.0.2.

If you replace the cnd/modules/org-netbeans-modules-cnd-remote.jar from your NetBeans 8.0.2 installation with the attached one, this should solve the issue.

I'll attach jar for development version to issue 249059
Comment 11 Quality Engineering 2014-12-05 04:17:30 UTC
Integrated into 'main-silver', will be available in build *201412050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1cb108746d79
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #249074 - [regression] Remote builds using SFTP broke with 8.0.2 update
Comment 12 Quality Engineering 2014-12-06 05:36:42 UTC
Integrated into 'main-silver', will be available in build *201412060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9cecbda46158
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fix for #249059 (Remote build broken in latest update) + additional fix for #249074 (Remote builds using SFTP broke with 8.0.2 update)
Comment 13 ilia 2015-01-19 10:41:29 UTC
Changing whiteboard to 802patch1-fixed because the changesets are already in releases~release801
Comment 14 soldatov 2015-02-24 21:49:54 UTC
Verified in trunk

>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201502230001) (#7fc581b5e5c2)
Comment 15 soldatov 2015-02-26 11:48:52 UTC
verified in NetBeans IDE 8.0.2 (Build 201411181905)