GithubHelp home page GithubHelp logo

Comments (4)

FanDjango avatar FanDjango commented on July 26, 2024

I would like a log of a similar transfer of the

This setup is currently working just fine

just to compare.

from fluentftp.

FanDjango avatar FanDjango commented on July 26, 2024

One thing that comes to mind is that you are using FluentFTP Version: 46.0.2.0. That is a version within the range that had an interesting quirk, or bug if you wish: In some cases (yours), it would resolve "FileExists" by using a NLST command, instead of using the much quicker SIZE command. NLST has an additional disadvantage: It uses a data connection and the associated EPSV command might have thrown the FXP logic of the server out of sync.

Be nice if you could use 49.0.1 instead? If that works, then the FXP logic is basically unable to handle an unexpected PASV/NLST command (for the "FileExists" resolution) interspersed in the command sequence.

from fluentftp.

joep1981 avatar joep1981 commented on July 26, 2024

@FanDjango ,
You where right with insinuating that it might be related to version 46.0.2.0. Although i had upgraded the fluentFTP nuget package in my lib project to the latest version, somehow the fluentftp.dll was not automatically upgraded in my release folder. So i was still using the older v46 dll. After copying it over the fxp file transfer worked.
Here is the proof:

2024-01-07 13:50:56.658 +01:00 Init FXP module v1.0
2024-01-07 13:50:56.675 +01:00 > Connect(False)
2024-01-07 13:50:56.676 +01:00 FluentFTP 49.0.1.0(.NET Standard 2.1)
2024-01-07 13:50:56.686 +01:00 Connecting to IP #1= 10.211.24.75:21
2024-01-07 13:50:56.698 +01:00 Waiting for a response
2024-01-07 13:50:56.727 +01:00 Response: 220-PowerScale OneFS 9.4.0.9
2024-01-07 13:50:56.728 +01:00 Response: 220
2024-01-07 13:50:56.738 +01:00 Command: USER DOMAINTX\nlsftpwf
2024-01-07 13:50:56.740 +01:00 Waiting for response to: USER DOMAINTX\nlsftpwf
2024-01-07 13:50:56.741 +01:00 Response: 331 Please specify the password.
2024-01-07 13:50:56.745 +01:00 Command: PASS ***
2024-01-07 13:50:56.745 +01:00 Waiting for response to: PASS ***
2024-01-07 13:50:56.803 +01:00 Response: 230 Login successful.
2024-01-07 13:50:56.809 +01:00 Command: FEAT
2024-01-07 13:50:56.810 +01:00 Waiting for response to: FEAT
2024-01-07 13:50:56.812 +01:00 Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
2024-01-07 13:50:56.815 +01:00 Response: 211 End
2024-01-07 13:50:56.826 +01:00 Text encoding: System.Text.UTF8Encoding+UTF8EncodingSealed
2024-01-07 13:50:56.827 +01:00 Command: OPTS UTF8 ON
2024-01-07 13:50:56.831 +01:00 Waiting for response to: OPTS UTF8 ON
2024-01-07 13:50:56.832 +01:00 Response: 200 Always in UTF8 mode.
2024-01-07 13:50:56.833 +01:00 Command: SYST
2024-01-07 13:50:56.834 +01:00 Waiting for response to: SYST
2024-01-07 13:50:56.836 +01:00 Response: 215 UNIX Type: L8
2024-01-07 13:50:56.838 +01:00 Active ServerHandler is: None
2024-01-07 13:50:56.839 +01:00 Listing parser set to: Unix
2024-01-07 13:50:56.842 +01:00 Command: PWD
2024-01-07 13:50:56.842 +01:00 Waiting for response to: PWD
2024-01-07 13:50:56.846 +01:00 Response: 257 "/"
2024-01-07 13:50:56.849 +01:00 > GetFileSize("/TestWF/private/test2.bin", -1)
2024-01-07 13:50:56.851 +01:00 Command: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:56.852 +01:00 Waiting for response to: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:56.853 +01:00 Response: 213 9016892280
2024-01-07 13:50:56.856 +01:00 > SetWorkingDirectory("/TestWF/private")
2024-01-07 13:50:56.857 +01:00 Command: CWD /TestWF/private
2024-01-07 13:50:56.858 +01:00 Waiting for response to: CWD /TestWF/private
2024-01-07 13:50:56.863 +01:00 Response: 250 Directory successfully changed.
2024-01-07 13:50:56.864 +01:00 > Connect(False)
2024-01-07 13:50:56.865 +01:00 FluentFTP 49.0.1.0(.NET Standard 2.1)
2024-01-07 13:50:56.867 +01:00 Connecting to IP #1= 10.211.208.211:21
2024-01-07 13:50:56.869 +01:00 Waiting for a response
2024-01-07 13:50:56.872 +01:00 Response: 220 Welcome to this FTP service.
2024-01-07 13:50:56.873 +01:00 Command: USER username
2024-01-07 13:50:56.874 +01:00 Waiting for response to: USER username
2024-01-07 13:50:56.878 +01:00 Response: 331 Please specify the password.
2024-01-07 13:50:56.879 +01:00 Command: PASS ***
2024-01-07 13:50:56.880 +01:00 Waiting for response to: PASS ***
2024-01-07 13:50:56.912 +01:00 Response: 230 Login successful.
2024-01-07 13:50:56.913 +01:00 Command: FEAT
2024-01-07 13:50:56.914 +01:00 Waiting for response to: FEAT
2024-01-07 13:50:56.915 +01:00 Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
2024-01-07 13:50:56.917 +01:00 Response: 211 End
2024-01-07 13:50:56.918 +01:00 Text encoding: System.Text.UTF8Encoding+UTF8EncodingSealed
2024-01-07 13:50:56.919 +01:00 Command: OPTS UTF8 ON
2024-01-07 13:50:56.921 +01:00 Waiting for response to: OPTS UTF8 ON
2024-01-07 13:50:56.925 +01:00 Response: 200 Always in UTF8 mode.
2024-01-07 13:50:56.926 +01:00 Command: SYST
2024-01-07 13:50:56.927 +01:00 Waiting for response to: SYST
2024-01-07 13:50:56.929 +01:00 Response: 215 UNIX Type: L8
2024-01-07 13:50:56.930 +01:00 Active ServerHandler is: None
2024-01-07 13:50:56.931 +01:00 Listing parser set to: Unix
2024-01-07 13:50:56.932 +01:00 Command: PWD
2024-01-07 13:50:56.935 +01:00 Waiting for response to: PWD
2024-01-07 13:50:56.937 +01:00 Response: 257 "/"
2024-01-07 13:50:56.938 +01:00 > SetWorkingDirectory("/fs/Data")
2024-01-07 13:50:56.939 +01:00 Command: CWD /fs/Data
2024-01-07 13:50:56.940 +01:00 Waiting for response to: CWD /fs/Data
2024-01-07 13:50:56.951 +01:00 Response: 250 Directory successfully changed.
2024-01-07 13:50:56.952 +01:00 > GetFileSize("/fs/Data/test2.bin", -1)
2024-01-07 13:50:56.955 +01:00 Command: SIZE /fs/Data/test2.bin
2024-01-07 13:50:56.956 +01:00 Waiting for response to: SIZE /fs/Data/test2.bin
2024-01-07 13:50:56.957 +01:00 Response: 550 Could not get file size.
2024-01-07 13:50:56.963 +01:00 > TransferFile("/TestWF/private/test2.bin", FluentFTP.AsyncFtpClient, "/fs/Data/test2.bin", Binary, False, Overwrite, None)
2024-01-07 13:50:56.966 +01:00 > FileExists("/TestWF/private/test2.bin")
2024-01-07 13:50:56.968 +01:00 Command: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:56.969 +01:00 Waiting for response to: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:56.970 +01:00 Response: 213 9016892280
2024-01-07 13:50:57.034 +01:00 Command: TYPE I
2024-01-07 13:50:57.035 +01:00 Waiting for response to: TYPE I
2024-01-07 13:50:57.037 +01:00 Response: 200 Switching to Binary mode.
2024-01-07 13:50:57.038 +01:00 Command: TYPE I
2024-01-07 13:50:57.039 +01:00 Waiting for response to: TYPE I
2024-01-07 13:50:57.041 +01:00 Response: 200 Switching to Binary mode.
2024-01-07 13:50:57.042 +01:00 Command: PASV
2024-01-07 13:50:57.045 +01:00 Waiting for response to: PASV
2024-01-07 13:50:57.047 +01:00 Response: 227 Entering Passive Mode (10,211,208,211,39,112).
2024-01-07 13:50:57.048 +01:00 Command: PORT 10,211,208,211,39,112
2024-01-07 13:50:57.049 +01:00 Waiting for response to: PORT 10,211,208,211,39,112
2024-01-07 13:50:57.050 +01:00 Response: 200 PORT command successful. Consider using PASV.
2024-01-07 13:50:57.052 +01:00 > FileExists("/fs/Data/test2.bin")
2024-01-07 13:50:57.053 +01:00 Command: SIZE /fs/Data/test2.bin
2024-01-07 13:50:57.056 +01:00 Waiting for response to: SIZE /fs/Data/test2.bin
2024-01-07 13:50:57.057 +01:00 Response: 550 Could not get file size.
2024-01-07 13:50:57.058 +01:00 > GetFileSize("/TestWF/private/test2.bin", -1)
2024-01-07 13:50:57.060 +01:00 Command: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:57.061 +01:00 Waiting for response to: SIZE /TestWF/private/test2.bin
2024-01-07 13:50:57.062 +01:00 Response: 213 9016892280
2024-01-07 13:50:57.064 +01:00 Command: RETR /TestWF/private/test2.bin
2024-01-07 13:50:57.067 +01:00 Waiting for response to: RETR /TestWF/private/test2.bin
2024-01-07 13:50:57.068 +01:00 Response: 150 Opening BINARY mode data connection for /TestWF/private/test2.bin (9016892280 bytes).
2024-01-07 13:50:57.069 +01:00 Command: STOR /fs/Data/test2.bin
2024-01-07 13:50:57.070 +01:00 Waiting for response to: STOR /fs/Data/test2.bin
2024-01-07 13:50:57.076 +01:00 Response: 150 Ok to send data.
2024-01-07 13:50:57.078 +01:00 Waiting for a response
2024-01-07 13:50:57.079 +01:00 Waiting for a response

2024-01-07 13:51:14.459 +01:00 Response: 226 Transfer complete.
2024-01-07 13:51:14.546 +01:00 Response: 226 Transfer complete.
2024-01-07 13:51:15.234 +01:00 FXP transfer of file /TestWF/private/test2.bin has completed
2024-01-07 13:51:15.236 +01:00 Command: NOOP
2024-01-07 13:51:15.237 +01:00 Command: NOOP
2024-01-07 13:51:15.252 +01:00 transferring file succeeded
2024-01-07 13:51:15.254 +01:00 Control connection has stale data - prior to command execution of "QUIT"
2024-01-07 13:51:15.255 +01:00 The stale data was (length = 14):
2024-01-07 13:51:15.257 +01:00 Stale: 200 NOOP ok.
2024-01-07 13:51:15.257 +01:00 Reconnect needed due to stale data present on control connection
2024-01-07 13:51:15.271 +01:00 Command stashed: QUIT
2024-01-07 13:51:15.272 +01:00 Closing/Disposing FtpSocketStream(control connection)
2024-01-07 13:51:15.273 +01:00 > Connect(True)
2024-01-07 13:51:15.274 +01:00 Reconnect (Count: 1)
2024-01-07 13:51:15.276 +01:00 FluentFTP 49.0.1.0(.NET Standard 2.1)
2024-01-07 13:51:15.277 +01:00 Connecting to IP #1= 10.211.24.75:21
2024-01-07 13:51:15.278 +01:00 Waiting for a response
2024-01-07 13:51:15.289 +01:00 Response: 220-PowerScale OneFS 9.4.0.9
2024-01-07 13:51:15.290 +01:00 Response: 220
2024-01-07 13:51:15.291 +01:00 Command: USER DOMAINTX\nlsftpwf
2024-01-07 13:51:15.292 +01:00 Waiting for response to: USER DOMAINTX\nlsftpwf
2024-01-07 13:51:15.293 +01:00 Response: 331 Please specify the password.
2024-01-07 13:51:15.294 +01:00 Command: PASS ***
2024-01-07 13:51:15.295 +01:00 Waiting for response to: PASS ***
2024-01-07 13:51:15.335 +01:00 Response: 230 Login successful.
2024-01-07 13:51:15.336 +01:00 Command: FEAT
2024-01-07 13:51:15.337 +01:00 Waiting for response to: FEAT
2024-01-07 13:51:15.339 +01:00 Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
2024-01-07 13:51:15.340 +01:00 Response: 211 End
2024-01-07 13:51:15.341 +01:00 Text encoding: System.Text.UTF8Encoding+UTF8EncodingSealed
2024-01-07 13:51:15.342 +01:00 Command: OPTS UTF8 ON
2024-01-07 13:51:15.344 +01:00 Waiting for response to: OPTS UTF8 ON
2024-01-07 13:51:15.345 +01:00 Response: 200 Always in UTF8 mode.
2024-01-07 13:51:15.346 +01:00 Command: SYST
2024-01-07 13:51:15.347 +01:00 Waiting for response to: SYST
2024-01-07 13:51:15.348 +01:00 Response: 215 UNIX Type: L8
2024-01-07 13:51:15.349 +01:00 Active ServerHandler is: None
2024-01-07 13:51:15.350 +01:00 Listing parser set to: Unix
2024-01-07 13:51:15.352 +01:00 Command: TYPE I
2024-01-07 13:51:15.353 +01:00 Waiting for response to: TYPE I
2024-01-07 13:51:15.354 +01:00 Response: 200 Switching to Binary mode.
2024-01-07 13:51:15.355 +01:00 > SetWorkingDirectory("/TestWF/private")
2024-01-07 13:51:15.356 +01:00 Command: CWD /TestWF/private
2024-01-07 13:51:15.357 +01:00 Waiting for response to: CWD /TestWF/private
2024-01-07 13:51:15.363 +01:00 Response: 250 Directory successfully changed.
2024-01-07 13:51:15.364 +01:00
2024-01-07 13:51:15.365 +01:00 Executing stashed command
2024-01-07 13:51:15.366 +01:00
2024-01-07 13:51:15.367 +01:00 Command: QUIT
2024-01-07 13:51:15.368 +01:00 Waiting for response to: QUIT
2024-01-07 13:51:15.369 +01:00 Response: 221 Goodbye.
2024-01-07 13:51:15.371 +01:00 Closing/Disposing FtpSocketStream(control connection)
2024-01-07 13:51:15.372 +01:00 Control connection has stale data - prior to command execution of "QUIT"
2024-01-07 13:51:15.373 +01:00 The stale data was (length = 14):
2024-01-07 13:51:15.374 +01:00 Stale: 200 NOOP ok.
2024-01-07 13:51:15.378 +01:00 Reconnect needed due to stale data present on control connection
2024-01-07 13:51:15.379 +01:00 Command stashed: QUIT
2024-01-07 13:51:15.380 +01:00 Closing/Disposing FtpSocketStream(control connection)
2024-01-07 13:51:15.381 +01:00 > Connect(True)
2024-01-07 13:51:15.382 +01:00 Reconnect (Count: 1)
2024-01-07 13:51:15.383 +01:00 FluentFTP 49.0.1.0(.NET Standard 2.1)
2024-01-07 13:51:15.384 +01:00 Connecting to IP #1= 10.211.208.211:21
2024-01-07 13:51:15.386 +01:00 Waiting for a response
2024-01-07 13:51:15.389 +01:00 Response: 220 Welcome to this FTP service.
2024-01-07 13:51:15.392 +01:00 Command: USER username
2024-01-07 13:51:15.393 +01:00 Waiting for response to: USER username
2024-01-07 13:51:15.394 +01:00 Response: 331 Please specify the password.
2024-01-07 13:51:15.395 +01:00 Command: PASS ***
2024-01-07 13:51:15.397 +01:00 Waiting for response to: PASS ***
2024-01-07 13:51:15.437 +01:00 Response: 230 Login successful.
2024-01-07 13:51:15.438 +01:00 Command: FEAT
2024-01-07 13:51:15.440 +01:00 Waiting for response to: FEAT
2024-01-07 13:51:15.441 +01:00 Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
2024-01-07 13:51:15.442 +01:00 Response: 211 End
2024-01-07 13:51:15.443 +01:00 Text encoding: System.Text.UTF8Encoding+UTF8EncodingSealed
2024-01-07 13:51:15.444 +01:00 Command: OPTS UTF8 ON
2024-01-07 13:51:15.446 +01:00 Waiting for response to: OPTS UTF8 ON
2024-01-07 13:51:15.447 +01:00 Response: 200 Always in UTF8 mode.
2024-01-07 13:51:15.448 +01:00 Command: SYST
2024-01-07 13:51:15.449 +01:00 Waiting for response to: SYST
2024-01-07 13:51:15.450 +01:00 Response: 215 UNIX Type: L8
2024-01-07 13:51:15.451 +01:00 Active ServerHandler is: None
2024-01-07 13:51:15.457 +01:00 Listing parser set to: Unix
2024-01-07 13:51:15.459 +01:00 Command: TYPE I
2024-01-07 13:51:15.460 +01:00 Waiting for response to: TYPE I
2024-01-07 13:51:15.461 +01:00 Response: 200 Switching to Binary mode.
2024-01-07 13:51:15.462 +01:00 > SetWorkingDirectory("/fs/Data")
2024-01-07 13:51:15.463 +01:00 Command: CWD /fs/Data
2024-01-07 13:51:15.464 +01:00 Waiting for response to: CWD /fs/Data
2024-01-07 13:51:15.466 +01:00 Response: 250 Directory successfully changed.
2024-01-07 13:51:15.467 +01:00
2024-01-07 13:51:15.468 +01:00 Executing stashed command
2024-01-07 13:51:15.471 +01:00
2024-01-07 13:51:15.472 +01:00 Command: QUIT
2024-01-07 13:51:15.474 +01:00 Waiting for response to: QUIT
2024-01-07 13:51:15.475 +01:00 Response: 221 Goodbye.
2024-01-07 13:51:15.476 +01:00 Closing/Disposing FtpSocketStream(control connection)

As a side note, this version also solves another annoying issue for me. I have an ftp destination that has 50k files in one folder. So i noticed that in the v46.0.2.0 release of fluentFTP it took a very long time when using a "FileExists" command and my logs where flooded with a 50k+ file listing. So nice to see that has been upgraded too.

from fluentftp.

FanDjango avatar FanDjango commented on July 26, 2024

That's great. In your log I see a few other (small) issues also, that will be fixed - but these don't detract from successful transfers.

from fluentftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.