Jeeby
Jeeby

Reputation: 1464

Amazon EC2 FTP - fails on "SITE CHMOD 644" command

This is driving me crazy... gave up on SFTP to my EC2 instances, and now trying FTP.

I've got it setup, and it was working fine for a few minutes, but then it threw this error when trying to write a file, and has been doing the same thing ever since...

220 Microsoft FTP Service
FEAT
530 Please login with USER and PASS.
USER administrator
331 Password required for administrator.
PASS ********
230 User administrator logged in.
SITE CHMOD 644 /xxx.docx
500 'SITE CHMOD 644 /xxx.docx': command not understood
QUIT
221  

EDIT: Actually i got that slightly wrong... it failed the first time it tried to write a file (from Springloops, log:)

Creating directories and files
Creating directory: App_Browsers/ [755]
Changing mode of App_Browsers to 755
Extracting file: App_Browsers/Form.browser...OK
Uploading file: App_Browsers/Form.browser [644]
R: 
interrupted

Any idea why this might have happened?

I'm about to throw the towel in with this stupid EC2... its really getting the better of me (and burning a whole lot of precious time!). ugh!

Upvotes: 0

Views: 849

Answers (1)

Black Frog
Black Frog

Reputation: 11713

Not every FTP service support every ftp command. If you really need the SITE command then install a different ftp server on your EC2 instance. You can try ProFTPD. Installation instruction for ProFTPD

Upvotes: 2

Related Questions