GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Can't upload to FTP server that denies read access to directory


#1

Hi, I’m trying to upload a file to this server, however it is not possible with Directory Opus (it works with fille zilla).
https://kb.sitecore.net/articles/862874

I think I configured it correctly but I’m geting this erros:

234 AUTH command ok. Expecting TLS Negotiation.
331 Anonymous access allowed, send identity (e-mail name) as password.
230 User logged in.
200 PBSZ command successful.
200 PROT command successful.
215 Windows_NT
211-Extended features supported:
LANG EN*
UTF8
AUTH TLS;TLS-C;SSL;TLS-P;
PBSZ
PROT C;P;
CCC
HOST
SIZE
MDTM
REST STREAM
211 END
200 OPTS UTF8 command successful - UTF8 encoding now ON.
200 Type set to A.
257 “/” is current directory.
250 CWD command successful.
257 “/upload” is current directory.
227 Entering Passive Mode (10,45,200,21,19,138).
FD_CLOSE - WSAECONNABORTED: Software caused connection abort
550 Access is denied.
250 CWD command successful.
257 “/upload” is current directory.
227 Entering Passive Mode (10,45,200,21,19,137).
550 Access is denied.
FD_CLOSE - WSAECONNABORTED: Software caused connection abort
Połączenie zamknięte


#2

It looks like passive mode is failing. Have you tried turning it off? Is Filezilla using the same mode and other settings for the site?

(If needed, the first part of the FTP Doesn't Work FAQ has detail on how to toggle passive mode.)


#3

After turning Passive Mode off, the response is as follows:

234 AUTH command ok. Expecting TLS Negotiation.
331 Anonymous access allowed, send identity (e-mail name) as password.
230 User logged in.
200 PBSZ command successful.
200 PROT command successful.
215 Windows_NT
211-Extended features supported:
LANG EN*
UTF8
AUTH TLS;TLS-C;SSL;TLS-P;
PBSZ
PROT C;P;
CCC
HOST
SIZE
MDTM
REST STREAM
211 END
200 OPTS UTF8 command successful - UTF8 encoding now ON.
200 Type set to A.
257 “/” is current directory.
250 CWD command successful.
257 “/upload” is current directory.
501 Server cannot accept argument.
Połączenie zamknięte


#4

With File Zilla I get similar response, but it allows you to upload a file (the server does not list any files, you can only upload)

Status: Resolving address of dl.sitecore.net
Status: Connecting to 195.184.101.134:21…
Status: Connection established, waiting for welcome message…
Status: Initializing TLS…
Status: Verifying certificate…
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing of “/upload”…
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 550 Access is denied.
Error: Failed to retrieve directory listing

#5

(I’ve edited the thread title to help other people find it if they have the same situation.)

If the server returns access denied trying to read a directory, Opus will not be able to read the directory into a lister, so you can’t make it the current folder.

You might be able to do it using a command that tells Opus to upload the file into a specified path (since that doesn’t require loading the path into the lister first).

I think FTP servers with “upload only” directories are usually configured to return an empty directory listing in them, rather than fail.


#6

I think that you can add some option to Octopus to do not hide lister in that situation.