Discussion:
Problems with uploading to ftp
konrados256
2010-03-18 19:08:07 UTC
Permalink
Hi,

NetBeans is all I want, it's almost perfect :) The only problem I have, which stops from using it, is that there is an issue with uploading files to the ftp server.

I want it to save the files to ftp automatically (the "upload files on save" option in project configuration).

Too often I can see a message like "Upload files on save failed".

I tried passive/not passive ftp mode, I disabled the firewall and even antivirus, didn't work.

I have no problems with other ftp applications.

When I manuall upload a file via right click -> upload, it stops on:
150 Opening BINARY mode data connection for tests.php
DELE tests.php
(it tries doing it and finally displays an error message)

Can somebody help please?
PavelK
2010-03-18 19:49:21 UTC
Permalink
Hi everybody! Net beans has constant problems with uploading files. Previous versions didn't.
Post by konrados256
Hi,
NetBeans is all I want, it's almost perfect :) The only problem I have, which stops from using it, is that there is an issue with uploading files to the ftp server.
I want it to save the files to ftp automatically (the "upload files on save" option in project configuration).
Too often I can see a message like "Upload files on save failed".
I tried passive/not passive ftp mode, I disabled the firewall and even antivirus, didn't work.
I have no problems with other ftp applications.
150 Opening BINARY mode data connection for tests.php
DELE tests.php
(it tries doing it and finally displays an error message)
Can somebody help please?
Gregg Wonderly
2010-03-19 14:09:43 UTC
Permalink
Post by konrados256
150 Opening BINARY mode data connection for tests.php
DELE tests.php
(it tries doing it and finally displays an error message)
Humm, seems like if we knew what that error message was and had information from
the netbeans IDE logs about what exception had occur and where, there might be a
possibility of helping.

Please people, you have to show people what went wrong, you can't just imagine
that there is only one possible problem and everyone knows what that is and can
therefore tell you what the problem is.

My guess is that netbeans is trying to delete a file that the server is not
allowing it to delete. So either there are permission problems with the user
that you are uploading as, or some other delete related issue with the FTP
server on that server machine.

Gregg Wonderly
konrados256
2010-03-20 08:37:11 UTC
Permalink
Hi, thanks for your answer.

Indeed I forgot to mention the actual error message. It's usually "connection timeout"
Post by Gregg Wonderly
My guess is that netbeans is trying to delete a file that the server is not
allowing it to delete
That's not it - the other applications have no problems with deleting files.


Here's the ide log (on auto save on run):


Code:
INFO [org.netbeans.modules.php.project.copysupport.RemoteOperationFactory]: Upload failed: org.netbeans.modules.php.project.connections.TransferInfo [transfered: [], failed: {tests/DSC04335.JPG=Cannot upload file DSC04335.JPG (unknown reason).}, partially failed: {}, ignored: {}, runtime: 95508 ms]




And here's the "remote log" when I tried to manually upload:


Code:
220 ProFTPD 1.3.1 Server ready.
USER username
331 Password required for domainname
PASS ******
230 User username logged in
TYPE I
200 Type set to I
CWD /domains/domainname/public_html/i_beta
250 CWD command successful
CWD /domains/domainname/public_html/i_beta/tests
250 CWD command successful
PASV
227 Entering Passive Mode (80,48,120,109,138,149).
STOR DSC04335.JPG.new
150 Opening BINARY mode data connection for DSC04335.JPG.new
DELE DSC04335.JPG.new
226 Transfer complete
QUIT
250 DELE command successful

Summary
====================
Failed:
file tests/DSC04335.JPG Cannot upload file DSC04335.JPG (unknown reason).
Runtime: 114 s, transfered: 0 file(s), 0 KB
jfrorie
2010-04-08 15:03:59 UTC
Permalink
Post by konrados256
Hi, thanks for your answer.
Indeed I forgot to mention the actual error message. It's usually "connection timeout"
I'm seeing the same thing. I'm running ubuntu linux (Lucid). I've tried under both the OpenJDK and Sun-java. I've turned off ipv6. Tried passive mode. I've tried uploading a directory that dies by itself and it works if it is sufficiently small.

It's a timeout of some description. It appears that netbeans still tries to run the transfer script, but hasn't recognized the timeout. Other clients work with the same server flawlessly.


Log snippet after canceling when the transfer has hung for about 5 minutes. PASV
227 Entering Passive Mode (76,76,5,99,139,152)
DELE closed_deal_detail_bulk.php
227 Entering Passive Mode (76,76,5,99,167,213)
CWD /subdomains/dev.psuite/httpdocs/flex/map/history
250 DELE command successful
PASV
250 CWD command successful
PASV
227 Entering Passive Mode (76,76,5,99,149,70)
STOR history.css
227 Entering Passive Mode (76,76,5,99,128,118)
PASV
DELE history.css
CWD /subdomains/dev.psuite/httpdocs/funding
QUIT
421 No transfer timeout (300 seconds): closing control connection


/home/jfrorie/.netbeans/6.8/var/log shows no errors. I will provide any log you need.
WebTechGlobal
2011-10-30 20:36:33 UTC
Permalink
Post by konrados256
Indeed I forgot to mention the actual error message. It's usually "connection timeout"
Same here.

Was working for a while, done some constant upload and downloading. Then
suddenly this issue. Had to disable auto update and doing it manually now.

When I delete files, I also can't seem to make them automatically remove
from the live server. I need this ability, I'm not messing about with files
every time I need to make a quick change. Webmasters cannot use Netbeans
without frustration. As a developer I can use it to work locally and it is
perfect.

Well worth money.

But working across a network, hell I have Dreamweaver open for some quick
individual file transfer and fast code changes lol

--
View this message in context: http://netbeans-org.1045718.n5.nabble.com/Problems-with-uploading-to-ftp-tp2916787p4950741.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...