Azure / azure-storage-azcopy

The new Azure Storage data transfer utility - AzCopy v10
MIT License
605 stars 218 forks source link

azcopy-node: Executable not found in $PATH: #2699

Open Ivor808 opened 4 months ago

Ivor808 commented 4 months ago

Which version of the AzCopy was used?

10.23.0

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

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

linux

What command did you run?

For context, I am using bun in place of nodejs. I dug deeper and it looks like the package uses childProcess to spawn the azcopy. I pulled this into my code to attempt to spawn the process manually and it fails with the same error. This may be an issue with bun? Although bun does support nodejs child_process. image

azclient.copy()

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 using the az client in node, it is unable to find the azcopy executable. The azcopy executable is installed as a node package and confirmed its in the node_modules folder.

How can we reproduce the problem in the simplest way?

Install the azcopy-node and azcopy-linux Create a az client and attempt to run the copy command.

Have you found a mitigation/solution?

No, using the manual azcopy throws the same error. I am able to run 'azcopy' in the terminal just fine

Ivor808 commented 3 months ago

bumping this.