dotBunny / K9

A collection of functionality useful for automation in Game Development.
Boost Software License 1.0
2 stars 0 forks source link

SMB file transfers fail complaining of "Not enough credits" #2

Open reapazor opened 2 years ago

reapazor commented 2 years ago

Occasionally we have builds failing because of an issue with the SMB file transfer of some portion of the build.

Unhandled exception. System.Exception: Not enough credits
   at SMBLibrary.Client.SMB2Client.TrySendCommand(SMB2Command request, Boolean encryptData)
   at SMBLibrary.Client.SMB2FileStore.TrySendCommand(SMB2Command request)
   at SMBLibrary.Client.SMB2FileStore.Disconnect()
   at K9.IO.FileAccessors.SMBFileAccessor.Cleanup()
   at K9.IO.FileAccessors.SMBFileAccessor.GetReader()
   at K9.Setup.Verbs.CopyFile.Execute()
   at K9.Setup.Program.<>c.<Main>b__3_5(CopyFile copy)
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 parsedFunc3, Func`2 parsedFunc4, Func`2 parsedFunc5, Func`2 notParsedFunc)
   at K9.Setup.Program.Main(String[] args)
Process exited with code -532462766
reapazor commented 2 years ago

Some research into this suggested that there may be an issue with the size of the packet reads (not entirely sure on that one), but I also did some work to make sure that stale connections are always cleaned up.

270a11eeb11bc2133caeea7d3cf77412acc5077f & c3c1a9e0bad66d6f02d57e07419916c0b7270901