Why wont Netbeans upload correctly to my php sever - windows

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.

Related

AIX 7.1 anonymous ftp fails

I have a "vsftpd" server running on a RHEL machine which is configured for anonymous communication.
I am trying to connect to it from a AIX 7.1 machine using ftp client.
ftp -snv host 8043
Connected to host
220 secure FTP service
ftp> user anonymous mypass
234 Proceed with negotiation.
TLS Auth Entered.
Certificate:
....
....
TLSv1/SSLv3 ( ECDHE-RSA-AES256-GCM-SHA384 ), 256 bits
331 Please specify the password.
230 Login successful.
200 PBSZ set to 0.
200 PROT now Private.
ftp> passive
Passive mode on.
ftp> cd /incoming
250 Directory successfully changed.
ftp> quote pwd
257 "/incoming"
ftp> ls -r
227 Entering Passive Mode (XXX,XXX,XXX,XX,XXX,XX).
ftp: connect: Connection timed out
ftp>
As seen above, the cd and quote pwd command seems to work fine. But ls -r and mput commands fail with Connection timed out error.
No real helpful messages on the server logs also.
Please help on debugging and identifying the issue.
PS: The lftp clients from RHEL work fine connecting to the server.
FTP needs to open two connections to work properly. One for control and one for data.
Whenever you get "cd works but ls doesn't", the data connection is not getting established.
Troubleshooting tips:
look for any firewalls/NATs along the way
try toggling active/passive mode, this opens the data connection from the other side
look at what is happening using network debugging tools like tcpdump/wireshark

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)

How to overcome Centos to QNAP strange FTP file size limit of 150114776 bytes?

I'm sure there is a simple explanation but I cannot seem to figure it out. I have a Centos server which needs to do a daily FTP upload of a database to external back-up provided by a QNAP NAS. The server also puts a copy of the DB on to a second Centos server. The file is >800MB and growing.
I have a script which handles the FTP put of the file to the second server and this is called by crontab daily and works every time.
I have an almost identical script also called by crontab for the FTP to the QNAP and it always truncates the file at exactly 150114776 bytes. Strangely, if I run this same script from the CLI it always works perfectly delivering the entire file to the QNAP which suggests that there is no QNAP limit on filesize coming in to play.
The problem is consistent. Invoke the transfer with crontab and the file is truncated. Invoke with CLI and the whole file is transferred. No error is ever reported; FTP thinks it has done the whole job.
Sample log of transfer by crontab:
Connected to 172.172.1.1 (172.172.1.1).
220 NASFTPD Turbo station 1.3.4e Server (ProFTPD) [::ffff:172.172.1.1]
Remote system type is UNIX.
Using binary mode to transfer files.
331 Password required for fred
230 User fred logged in
250 CWD command successful
local: DATA_bk.sql.1.gz remote: DATA_bk_20150811_071501.sql.gz
227 Entering Passive Mode (172,172,1.1,217,232).
150 Opening BINARY mode data connection for DATA_bk_20150811_071501.sql.gz
226 Transfer complete
150114776 bytes sent in 23 secs (6.4e+03 Kbytes/sec)
221 Goodbye.
And a manual invocation:
Connected to 172.172.1.1 (172.172.1.1).
220 NASFTPD Turbo station 1.3.4e Server (ProFTPD) [::ffff:172.172.1.1]
Remote system type is UNIX.
Using binary mode to transfer files.
331 Password required for fred
230 User fred logged in
250 CWD command successful
local: DATA_bk.sql.1.gz remote: DATA_bk_20150811_120117.sql.gz
227 Entering Passive Mode (172,172,1.1,217,189).
150 Opening BINARY mode data connection for DATA_bk_20150811_120117.sql.gz
226 Transfer complete
879067272 bytes sent in 182 secs (4.5e+03 Kbytes/sec)
221 Goodbye.
Can anyone point me to some rule I've overlooked or suggest a way to debug this?
Thanks
It turns out I made a simple error. The cron tab was executing in the wrong directory where there happened to be an old copy of the source file which just happened to be 150114776 bytes big. Some times, the simplest causes are the toughest to see.
Data transfer to the QNAP now works perfectly every time.
We have the same problem. We opened a ticket with QNAP and this is the reply:
This a known issue (bug) what you can do is downgrade to the former firmware version or wait to the next one
is released where hopefully this issue is solved.
Sorry for the inconvenience.
So.... downgrade or wait...

Filezilla FTP error 550 for some files when uploading

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.

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