Nifi: Failed to retrieve directory listing when connecting to FTP server - ftp

I have a ListenFTP processor opened on a port and when i am trying to connect to it via FileZila i have an error "Failed to retrieve directory listing".
The connection seems to be establish first but then this error occurs.
Nifi is hosted on an ubuntu server running in a docker image
ListenFTP processor is opened on port 2221
I tried to change some configuration in FileZila based on this issue but nothing worked.
The connection works well on localhost, i can connect to the ftp server and transfer files
Somone has an idea how to solved that ?

If you look at the documentation of the processor, it states that
"After starting the processor and connecting to the FTP server, an
empty root directory is visible in the client application. Folders can
be created in and deleted from the root directory and any of its
subdirectories. Files can be uploaded to any directory. Uploaded files
do not show in the content list of directories, since files are not
actually stored on this FTP server, but converted into FlowFiles and
transferred to the next processor via the 'success' relationship. It
is not possible to download or delete files like on a regular FTP
server. All the folders (including the root directory) are virtual
directories, meaning that they only exist in memory and do not get
created in the file system of the host machine. Also, these
directories are not persisted: by restarting the processor all the
directories (except for the root directory) get removed. Uploaded
files do not get removed by restarting the processor, since they are
not stored on the FTP server, but transferred to the next processor as
FlowFiles."

Related

Mount fritzbox FTPS drive on Windows showing hidden files

If I take a
FritzBox 7590,
enable FTPS access from the internet to a shared folder on hard disk connected to FritzBox via USB,
use RaiDrive on a remote Windows machine to mount the directory accessed via FTPS,
directories of the form .foo, e.g. .git won't be shown in explorer or with commands like ls -la. The FTPS client really does not receive these directories, it is not just a problem of telling Windows Explorer to view hidden files.
The requirements are:
I want to use FritzBox as a server.
I need some FTPS client being able to mount the remote drive to some mounting point like R:\ or at least some NTFS folder. Which client it is, does not matter.
The goal is to have a directory containing some .git subdir where the former is used as git remote for all clients who connect to FritzBox and want to git push some commits.
Is it a fault in FritzBox's FTPS Server?
Is there any solution to be able to view hidden .git directory?

OSB - FTP files without specfing download directory

Can't find online resources about this, so posting my question here. My set up I like this:
1) OSB resides on serverA
2) OSB must connect to serverB via FTP
- get file
- archive file (in a directory on serverB)
- delete file (from original location on ServerB)
- no download directory (file is uploaded and transformed in osb and loaded in db)
How this can be accomplished using OSB?
I never did something alike, but I suggest to use a FTP adapter, it will allow you to pull the file on server B using FTP and delete it after it has been retrieved successfully. You can use other FTP adapter (Operation Type: Put) to backup the retrieved file in other location.

How to list the windows tftp server directories and files from command prompt?

I have installed Tftpd32 software in my windows 7 pc. I have running tftp server on my windows pc and tftp home directory has few directories and files. I have to display the tftp servers directories and files from windows command prompt ? How to display the tftp server directories and folders ?
C:\Users\user1>tftp
Transfers files to and from a remote computer running the TFTP service.
TFTP [-i] host [GET | PUT] source [destination]
-i Specifies binary image transfer mode (also called
octet). In binary image mode the file is moved
literally, byte by byte. Use this mode when
transferring binary files.
host Specifies the local or remote host.
GET Transfers the file destination on the remote host to
the file source on the local host.
PUT Transfers the file source on the local host to
the file destination on the remote host.
source Specifies the file to transfer.
destination Specifies where to transfer the file.
C:\Users\user1>
TFTP is a minimal file transfer protocol that does not provide subcommands to list remote files.
But Tftpd32 has a workaround, it can create a "dir.txt" file for the directory you're accessing. Enable the option in the TFTP settings of Tftpd32. Now when a TFTP client requests the "dir.txt" file, the server will generate and send a file that lists the content of the base directory.
You'll have to use FTP if you want to use more advanced features.
You can get "BaseDirectory" of Tftpd32 from tftpd32.ini in the installed directory. (C:\Program Files\Tftpd32). Typically on opening Tftpd32 application, it will open with this directory as the base one. And from a script,
Change the directory to the base directory grepped from tftpd32.ini
Do a "dir" from that directory, to obtain the list of sub-directories and files.

Ftp access denied to file after failed upload

I'm uploading file to ftp. Sometimes upload fails and on ftp chunk of a file leaves. e.g. 20 mb from file that have 50mb. Then I receive "550 Access is denied" when trying to re-upload file or delete that chunk of trash.
Could smb advice a solution?
That means you have the right to upload files, but not to delete/replace them.
Contact ftp administrator to update your rights.
Update:
If you can delete other files, that means the incomplete file is probably still opened by your previous ftp session. The FTP server must have some timeouts for this, so you should be able to delete the file later when it is closed by the FTP server.

FTP permission denied error

I am trying to FTP a RAR (zipped) file to another server but am having problems doing so. This is a Windows environment. I know that my FTP connection is setup correctly because I have already transferred over several other RARs. But the difference from what I can tell is that this RAR that is failing is larger in size. It is 761 MB. So when I try to "put" it into the other server, I get the following:
200 PORT command successful.
150 Opening BINARY mode data connection for WCU.rar.
> WCU.rar:Permission denied
226 Transfer complete.
However, the file is never transferred over. Is there a size limitation? And FYI, WCU.rar is a zipped directory, not a file. But I was able to successfully FTP over several other zipped directories.
it can be size limitation, not just stored data but as well transfered data.
did you try to transfer a small file? a small file in the same format? I would say, permissions, but you said that you uploaded already files to this server.
just to help you debug, you can add both commands to your ftp session
ftp> hash
ftp> bin
WCU.rar:Permission denied
You don't have permission to write to that directory. You need write permissions on the folder in order to do so.

Resources