Skip to content

azcopy copy GCS to Azure bug #3321

@mattbocc

Description

@mattbocc

Which version of the AzCopy was used?

10.31.0

Note: The version is visible when running AzCopy without any argument

Which platform are you using? (ex: Windows, Mac, Linux)

Mac M2 (Ventura 13.5)

What command did you run?

export GOOGLE_APPLICATION_CREDENTIALS={path-to-service-account-key}

azcopy copy "https://storage.cloud.google.com/{bucket}" "https://{storage-account}.blob.core.windows.net/{container-and-SAS}" --recursive=true

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?

INFO: Scanning... panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x105b7d3f1] goroutine 1 [running]: github.com/Azure/azure-storage-azcopy/v10/common.(*ServiceClient).FileServiceClient(...) /Users/runner/work/1/s/common/util.go:279 github.com/Azure/azure-storage-azcopy/v10/cmd.getShareProtocolType({0x1063cb7e0, 0xc000384d80}, 0x0, {{0xc000480780, 0x39}, {0x0, 0x0}, {0x0, 0x0}}, 0x0) /Users/runner/work/1/s/cmd/flagsValidation.go:364 +0x171 github.com/Azure/azure-storage-azcopy/v10/cmd.validateShareProtocolCompatibility({0x1063cb7e0?, 0xc000384d80?}, {{0xc000480780, 0x39}, {0x0, 0x0}, {0x0, 0x0}}, 0x105c1a5a6?, 0x1, ...) /Users/runner/work/1/s/cmd/flagsValidation.go:323 +0x77 github.com/Azure/azure-storage-azcopy/v10/cmd.validateProtocolCompatibility({0x1063cb7e0, 0xc000384d80}, 0x803, {{0xc000480780, 0x39}, {0x0, 0x0}, {0x0, 0x0}}, {{0xc000480730, ...}, ...}, ...) /Users/runner/work/1/s/cmd/flagsValidation.go:413 +0x128 github.com/Azure/azure-storage-azcopy/v10/cmd.(*CookedCopyCmdArgs).processCopyJobPartOrders(0xc00021d908) /Users/runner/work/1/s/cmd/copy.go:1199 +0x118c github.com/Azure/azure-storage-azcopy/v10/cmd.(*CookedCopyCmdArgs).process(0xc0000fb180?) /Users/runner/work/1/s/cmd/copy.go:798 +0x65 github.com/Azure/azure-storage-azcopy/v10/cmd.init.2.func2(0xc0005a0908, {0xc000384120?, 0x2?, 0x105c19b6d?}) /Users/runner/work/1/s/cmd/copy.go:1652 +0x292 github.com/spf13/cobra.(*Command).execute(0xc0005a0908, {0xc000384090, 0x3, 0x3}) /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:989 +0xabb github.com/spf13/cobra.(*Command).ExecuteC(0x107159840) /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x44f github.com/spf13/cobra.(*Command).Execute(...) /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 github.com/Azure/azure-storage-azcopy/v10/cmd.InitializeAndExecute() /Users/runner/work/1/s/cmd/root.go:279 +0x1a main.main() /Users/runner/work/1/s/main.go:34 +0x2f

How can we reproduce the problem in the simplest way?

Attempt to copy data from a GCP bucket to an Azure container using SAS for authentication

Have you found a mitigation/solution?

No, I assume I'll have to revert to an older version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions