You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
What problem was encountered?
When setting the environment variable env.AZCOPY_LOG_LOCATION to a relative folder inside a build server (can confirm the process has permissions to write, and there are many jobs passing)
Which version of the AzCopy was used?
azcopy_windows_amd64_10.15.0
Note: The version is visible when running AzCopy without any argument
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What command did you run?
azcopy.exe copy $source $destination$SASToken --recursive --log-level=WARNING --check-length=false --from-to LocalFile --overwrite ifSourceNewer
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
What problem was encountered?
When setting the environment variable env.AZCOPY_LOG_LOCATION to a relative folder inside a build server (can confirm the process has permissions to write, and there are many jobs passing)
panic: close azcopylogs/e35398bc-7b26-f443-6056-d40dead60bf0.log: file already closed
Error message: panic: close azcopylogs/e35398bc-7b26-f443-6056-d40dead60bf0.log: file already closed
goroutine 1 [running]:
github.com/Azure/azure-storage-azcopy/v10/common.PanicIfErr(...)
/home/vsts/work/1/s/common/lifecyleMgr.go:674
github.com/Azure/azure-storage-azcopy/v10/common.(*jobLogger).CloseLog(0xc000111a40)
/home/vsts/work/1/s/common/logger.go:168 +0xb6
github.com/Azure/azure-storage-azcopy/v10/ste.(*jobMgr).CloseLog(0xc000352380)
/home/vsts/work/1/s/ste/mgr-JobMgr.go:671 +0x2a
github.com/Azure/azure-storage-azcopy/v10/jobsAdmin.ListJobs(0x64)
/home/vsts/work/1/s/jobsAdmin/init.go:766 +0x3cd
github.com/Azure/azure-storage-azcopy/v10/cmd.inprocSend({0x1581342, 0x8}, {0x1511200, 0x1d9b9c0}, {0x13c5be0, 0xc0004547b0})
/home/vsts/work/1/s/cmd/rpc.go:50 +0x2b8
github.com/Azure/azure-storage-azcopy/v10/cmd.glob..func6({0x1581342, 0x17411f0}, {0x1511200, 0x1d9b9c0}, {0x13c5be0, 0xc0004547b0})
/home/vsts/work/1/s/cmd/rpc.go:36 +0x32
github.com/Azure/azure-storage-azcopy/v10/cmd.HandleListJobsCommand(0x45cdfc)
/home/vsts/work/1/s/cmd/jobsList.go:87 +0x68
How can we reproduce the problem in the simplest way?
You can run azcopy with the environment log variable set to a path other than default
Have you found a mitigation/solution?
The default log path is working
The text was updated successfully, but these errors were encountered: