Filezilla FTP error 550 for some files when uploading - ftp

I am in the middle of a web site maintenance when all of the sudden I notice that a few files can't be uploaded on the server, some of these files, I already uploaded them in the past in previous maintenance. I get an error 550 Access is denied
Here is the stack I have
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Status: Connected
Status: Starting upload of C:\production\wwws-20131223-1\www\www\maint\institution\Detail.aspx
Command: CWD /*******/www/www/maint/institution
Response: 250 CWD command successful.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (*******).
Command: STOR Detail.aspx
Response: 550 Access is denied.
I checked the rights on the server between a file I can change on these ones, same rights...
Any idea of what is wrong?
Thank you all.

Related

FTP command in Windows hangs with "150 Opening data channel for file download from server of ..."

I have a FTP server on a Windows Server 2012 machine and I am trying to get setup.exe from it.
CMD.EXE log:
C:\>ftp 1.2.3.4
Connected to 1.2.3.4.
220-FileZilla Server version 0.9.45 beta
220-written by Tim Kosse (tim.kosse#filezilla-project.org)
220 Please visit http://sourceforge.net/projects/filezilla/
User (1.2.3.4:(none)): my_username
331 Password required for my_username
Password:
230 Logged on
ftp> get setup.exe
200 Port command successful
150 Opening data channel for file download from server of "/setup.exe"
.. and stays like this
CMD.EXE log 2:
C:\>ftp 1.2.3.4
Connected to 1.2.3.4.
220-FileZilla Server version 0.9.45 beta
220-written by Tim Kosse (tim.kosse#filezilla-project.org)
220 Please visit http://sourceforge.net/projects/filezilla/
User (1.2.3.4:(none)): my_username
331 Password required for my_username
Password:
230 Logged on
ftp> quote cwd /
250 CWD successful. "/" is current directory.
ftp> quote TYPE I
200 Type set to I
ftp> QUOTE PASV
227 Entering Passive Mode (185,7,63,37,115,151)
ftp> RETR setup.exe
Invalid command.
ftp> QUOTE RETR setup.exe
425 Can't open data connection for transfer of "/setup.exe"
ftp> get setup.exe
200 Port command successful
150 Opening data channel for file download from server of "/setup.exe"
Aborting any active data connections...
Aborting any active data connections...
Connection closed by remote host.
ftp> quote get setup.exe
Not connected.
ftp>
FileZilla log:
Status: Connection established, waiting for welcome message...
Response: 220-FileZilla Server version 0.9.45 beta
Response: 220-written by Tim Kosse (tim.kosse#filezilla-project.org)
Response: 220 Please visit http://sourceforge.net/projects/filezilla/
Command: AUTH TLS
Response: 502 SSL/TLS authentication not allowed
Command: AUTH SSL
Response: 502 SSL/TLS authentication not allowed
Status: Insecure server, it does not support FTP over TLS.
Command: USER my_username
Response: 331 Password required for my_username
Command: PASS **************
Response: 230 Logged on
Status: Logged in
Status: Starting download of /setup.exe
Command: CWD /
Response: 250 CWD successful. "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (185,7,63,37,98,242)
Command: RETR setup.exe
Response: 150 Opening data channel for file download from server of "/setup.exe"
Response: 226 Successfully transferred "/setup.exe"
Status: File transfer successful, transferred 5,120 bytes in 1 second
Why it works with FileZilla but not with Windows FTP from command-line?
More than that I would want a command that executed one time would download this file from that FTP without asking the password.
Any ideas?
Thanks.
It works in FileZilla, because FileZilla defaults to the passive FTP mode, which is more firewall/NAT friendly. The Windows FTP command-line client (ftp.exe) not only defaults to the active mode, it does not even support the passive mode, on any version of Windows. It makes it pretty useless nowadays due to ubiquitous firewalls and NATs.
Read my article about the active and passive FTP connection modes to understand why the passive mode is a must.
Use any other Windows FTP command-line client instead. Most other support the passive mode.
For example WinSCP defaults to the passive mode and there's a guide available for converting Windows FTP script to WinSCP script.
Your can specifically use a batch file (.bat) like:
winscp.com /command ^
"open ftp://my_username:password#1.2.3.4/" ^
"get setup.exe" ^
"exit"
(I'm the author of WinSCP)

Why wont Netbeans upload correctly to my php sever

I am using Netbeans to work on my php server. When I try to upload my project, there are no errors, but the files remain unchanged on the server.
Example: I change height from 10% to 7% in css and upload. No errors occur, but height remains unchanged on the site.
Log (Octothorpes used to remove sensitive info):
220 ProFTPD 1.3.5 Server (Debian) [::ffff:###.###.#.##]
USER ########
331 Password required for ########
PASS ******
230 User ######## logged in
TYPE I
200 Type set to I
CWD /var/www/html/www.example.com
250 CWD command successful
PWD
257 "/var/www/html/www.example.com" is the current directory
CWD /var/www/html/www.example.com/styles/css
250 CWD command successful
CWD /var/www/html/www.example.com/styles/css
250 CWD command successful
PASV
227 Entering Passive Mode (##,###,##,##,###,#).
STOR main.css.new
150 Opening BINARY mode data connection for main.css.new
226 Transfer complete
RNFR main.css.new
350 File or directory exists, ready for destination name
RNTO main.css
250 Rename successful
CWD /var/www/html/www.example.com/styles
250 CWD command successful
QUIT
221 Goodbye.
Summary
====================
Succeeded:
dir styles
dir styles/css
file styles/css/main.css
Runtime: 19 ms, processed: 1 file(s), 1.34 KB
Extra info:
Client running windows 8.1 64 bit
Server running Ubuntu 64 bit
Server is on local network
FTP credentials are correct
Connection worked client-side previously on Windows 7 64 bit and Ubuntu 64 bit
If you don't disable caching on your browser it will store old versions of files (css, js, jpg, etc) and you won't see your changes. Disable caching and it should work.

Is greeting or handshake required when FTP data connection established?

I'm implementing a simple FTP server. When debugging, I try to use FileZilla client to connet my server. The request and response pattern found in the command panel is listed below:
GREETING: 220 (FTP v1.0)
REQUEST: USER ***
RESPONS: 331 Password?
REQUEST: PASS ********
RESPONS: 230 login successfully.
REQUEST: PWD
RESPONS: 257 "/a/" is current directory.
REQUEST: TYPE I
RESPONS: 200 Type set to I.
REQUEST: PASV
RESPONS: 200 127,255,0,0,175,200(I specify local port 45000)
REQUEST: LIST
RESPONS: 150 here is the listing
RESPONS: 226 Transfer done.
However, there is an error followed Fail to read directroy. I think the passive connection is indeed established since I can get stream on the socket(I implement the server in C#). But I have no idea why is the error. Is it because I should send some handshake/greeting information like those in the control connection instead of sending the data directly to sync server and client? If yes, what's the status code of this information?
Thanks and Best Regards.
There is no handshake on data connection.
Maybe 'Fail to read directory' error is a result of incorrect format of the folder list your server returns?

Error in "MLSD" command While Connecting FTP to Server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Web Hosting Server with Full Access of Settings.
I am a Web Developer, so FTP is my daily use for updating a website.
I am using a FTP client, After setting the server information, when i tried to
connect, i recived an error while FTP client had send "MLSD" commant to server.
Here is the client LOG:
Status: Resolving address of si****.co (edited)
Status: Connecting to 74.208.***.***:21... (edited)
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.3e Server (ProFTPD) [74.208.***.***] (edited)
Command: USER si***** (edited)
Response: 331 Password required for si*****
Command: PASS ********
Response: 230 User si***** logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: TVFS
Response: UTF8
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: LANG en-US*;fr-FR;it-IT;ja-JP;ko-KR;ru-RU;zh-CN;zh-TW;bg-BG
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 UTF8 set to on
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (74,208,*,*,149,88).
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
I don't know what is going wrong. My other FTP accounts for different servers is working good on the same FTP Client Software..
I've recently stumbled upon this issue too. I found none of the solutions I found within the first Google searches to be of no use, but luckily found a solution of my own...
In Site Manager change Encryption to "Only use plain FTP", mine were previously "Use explicit FTP over TLS if available".
FYI, the previous fixes I tried were:
Firewall configuration on the router - not possible due to work network and found is was only my PC.
Change something on Remote server to do with ports - Again, not
possible and was only my PC having the fault.
Switching Filezilla from Passive to Active - Didn't work
Using SSH instead - rejected
This issue is caused by firewall blocks passive connection port range where pure-ftp deamon listens
This issue can be resolved by adding passive port range in pro-ftpd.conf file as shown below
PassivePorts 60000 62000
Make sure mentioned passive port range is opened in TCP_IN of firewall allowed incoming ports
There are two solutions to this problem
change transfer mode from default to active
Use SFTP - SSH file transfer Protocol.
Both are done in site manger window. I am using the latest version of FileZilla Client with Windows 10. Changing both of these did NOT solve my problem!
Check your ftp config file, there uncomment and allow to use passive ports 30000 thru 35000.
pasv_min_port=30000
pasv_max_port=35000
Also add these ports range to your firewall TCP_IN and TCP_OUT (30000:35000).
I had same error when I using FileZilla on ubuntu. I get rid of the error by the following steps:
1. on FileZilla, open the top tab "Site Manager" page, on top right, select the "Transfer Settings" tab.
2. On "Transfer Settings" page, there are three Transfer mode:
"Default", "Active", and "Passive". Select "Active".
3. Try to connect again.

FTP Move / Rename / Copy files between directories

I have a /ABC folder with files. I need to move them to parent folder.
Example: In the Apache /htdocs/backup/ folder I have files. I want to quickly move/copy them into /htdocs
I am using Total Commander FTP and also ISP (Network Solutions) online FTP manager.
Both will not move the file.
TC will bailout with:
Remote transfer failed - probably NOT
supported by server!
Looking at the Total Commander FTP log trying to perform RETR and STOR - Transfer a copy of the file, and going back to the supported features FTP server's response:
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
UTF8
211 End
I see that those commands are not supported:
200 PORT command successful. Consider using PASV.
RETR 404.html
150 Opening BINARY mode data connection for 404.html (12474 bytes).
1:STOR 404.html
1:425 Failed to establish connection.
Result:
TC cannot move files between folders
(the second window does not allow to
display the same connection - but it
makes new one - I don't know if this
has some effect)
Netsol File Manager does not allow
to move files to parent folder. I
tried multiple ways to name the
parent folder in the bottom input
field without success

Resources