Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Transfer to Linux failing
-
Hi,
After you sorted out my zipping issue, now when I transfer the file to a Linux server, it doesn't work correctly.
In version 5.1.0 the transfer crashes with this error:
Source directory: C:\BuildMaster\deploy\NPELGetting source file list...Target directory: /root/uploadGetting target file list...Unhandled exception: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. Parameter name: startIndex at System.String.Substring(Int32 startIndex, Int32 length) at Inedo.BuildMaster.Extensibility.Agents.Ssh.SshFileOperationsExecuter.<GetFileSystemInfosAsync>d__24.MoveNext() --- End of stack trace from previous location where exception was thrown ---
In 5.1.3, the transfer states that it works OK, but only 26MB is upload of a 77MB file.
You can see from the log file, source and destination size are different.Source timestamp: 29/06/2016 07:47:57, Target timestamp: 29/06/2016 08:21:11 Source size: 79426743, Target size: 26520160 Transferring archive.zip to /root/upload... Copied 1 files, deleted 0 files and 0 directories over 0 directories.
Here's my script, but I don't think it's a script issue this time:
##AH:UseTextMode # This is a sample deployment plan; you can create a different deployment plan for each environment, # or attempt to generalize the plan in combination with templates and variables (e.g. $EnvironmentName). for server BUILDMASTER3 { Log-Information "This plan was auto-generated on 27/06/2016 14:50:07; you may visit the Plans page to modify it."; Transfer-Files ( Include: archive.zip, FromDirectory: C:\BuildMaster\deploy\NPEL, ToDirectory: /root/upload, FromServer: BUILDMASTER3, ToServer: NPEL UAT, DeleteTarget: True ); }
Thanks,
David
Product: BuildMaster
Version: 5.1.3
-
We've identified a bug with the new SSH library used in 5.1 with large files. We have confirmed that this is fixed in BuildMaster 5.1.4, which we are deploying right now.
Thanks for the detailed information.
-
Hi,
Thanks, the upload now works.
But zip extraction fails. Have you removed that command from Linux SSH?
I know I can use exec to get around it.Thanks,
David
Extracting zip file /root/upload/NPELarchive.zip...Unzipping /root/upload/NPELarchive.zip to /root/upload...Unhandled exception: System.NotImplementedException: The method or operation is not implemented. at Inedo.BuildMaster.Extensibility.Agents.Ssh.SshFileOperationsExecuter.ExtractZipFileAsync(String sourceFileName, String targetPath, Boolean overwrite) at Inedo.BuildMaster.Extensibility.Operations.Files.UnzipFileOperation.<ExecuteAsync>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.DeploymentPlanExecuter.<Inedo-ExecutionEngine-Executer-IExecutionHostEnvironment-ExecuteActionAsync>d__19.MoveNext()
-
Well, we are closer at least. Yes, that does appear to be a regression - fortunately all it really does is wrap the "zip" CLI tool, so as you've discovered you can work around with Exec pretty easily.
Regardless, we'll be sure to have the zip operations fixed for Linux in the next update.