-
-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout Exception in production service after Dotnet 8 Upgrade + FluentFtp 49 -> 50 #1624
Comments
Ok, I have some questions:
After updating, you occasionally see the error. Before updating, the error was never to be seen? 49.x.x -> 50.x.x There were certainly a lot of fixes and changes. But: I specifically remember (but I could be wrong) that async connect itself was not correctly honoring the timeout time that the user set - it was always the system default (which is longer that your 10 seconds). Thus now with fixed timeout handling, your 10 seconds are actually taking effect and might be on the edge of being to short. Have you tried increasing the timeout a little? Beyond that I am looking forward to a verbose log.
You might want to elaborate on the statement a little bit. Huh? |
@FanDjango Here is a snippet of the logs we are getting when this issue is occurring.
One thing i noticed, its referencing dotnet 6 when we are running dotnet 8. |
@FanDjango One more thing to note, We are still waiting to see if there is any more reproduction when deployed but we found that this issue was able to be re-created on our local machines across multiple engineers and when downgrading to 49.0.2 (our previous) we are no longer encountering the issues locally but can't guarantee this is the fix yet as the issue is sporadic to begin with. We are going to deploy with FluentFtp V49 and see what happens overnight and I'll update you on that tomorrow. |
You are being serviced by the .NET 6 targeted assembly of FluentFTP - we have no higher than that in NuGet, currently. |
Fair enough. Let's give it a day or too now that you are focusing on this.
That means that I could give you our bleeding edge branch to run that against - it certainly has more and clearer logging of the things that are happening. Would you be available for that? You current logging snippet is singularly devoid of any serious failure messages (Disregard this one: And yes:
Phew, I have checked and now I understand what you meant by your comment: In V50.1.0 there actually is a failure to reuse a Client for multiple connect-disconnect sequences and this certainly might make AutoConnect fail if a retry is needed. This I have fixed for in the current master and it is waiting for release. So that might be the first thing to investigate: Use the current master locally and report back, please. Means: AutoConnect succeeds when the first try connects. Subsequent attempts fail? |
@FanDjango Can confirm. reverting back to 49.0.2 has resolved all of our timeout issues. We have not had an opportunity to test from the main branch yet. |
Ok. Let's divide this into topics possibly contributing to the problem:
Since azure stuff is notoriously slow in some areas, if you combine the above 3 points you can see that there might be an explanation - and some avenues for you to investigate. Best would be to wait for the upcoming 51.0.0 (which fixes the "flaw" and gives more information in logging) on Nuget and stay with 49.0.2 until then. We will keep this open and then re-evaluate the issue you reported. That work for you? |
@FanDjango That works for me. Thanks for being so diligent! |
@funkel1989 V51.0.0 has been released to Nuget. At your convenience, you may want to check it out locally. I would appreciate verbose logs that bracket the failure and we can go on from there. |
FTP Server OS: unknown
FTP Server Type: no sure, connecting to HostedFtp.com SaaS service
Client Computer OS: Windows
FluentFTP Version: 50.1.0
Framework: .NET 8
After updating to dotnet 8 on azure isolated functions when connecting to our SaaS Ftp server while deployed we are occasionally seeing the below error
Our usage looks like this:
Previous version for FluentFtp was 49.0.2. Does AutoConnect still work in the same way? I feel like AutoConnect used to re-initialize the connection if it was closed but that is where I'm getting the Timeouts.
Logs :
The text was updated successfully, but these errors were encountered: