Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run the copied AzCopy command of downloading/uploading ADLS Gen2 blobs on CMD #1079

Closed
v-xuanzh opened this issue Jan 18, 2019 · 4 comments
Assignees
Labels
⚙️ adls gen2 Related to hierarchical namespaces (ADLS Gen 2) ⚙️ azcopy Related to AzCopy integration 🧪 testing Found through regular testing ✅ merged A fix for this issue has been merged
Milestone

Comments

@v-xuanzh
Copy link

Storage Explorer Version: 1.6.2
Platform/OS Version: Windows 10/MacOS High Sierra/ Linux Ubuntu 16.04
Architecture: ia32/x64
Build Number: 20190116.1
Commit: ecdf6258
Regression From: Not a regression

Steps to Reproduce:

  1. Expand one ADLS Gen2 account -> 'Blob Containers' node.
  2. Open one blob container then upload one file to it.
  3. After uploading successfully, Click the link 'Copy AzCopy Command to Clipboard' next to the log message.
  4. Download the latest azcopy from http://aka.ms/downloadazcopy-v10-windows -> Unzip it
  5. Open CMD and change directory to 'azcopy_windows_amd64_10.0.5'.
  6. Run the copied command: azCopy.exe copy "C:\Program Files (x86)\Internet Explorer*" "https://xuanadlsaccdemo.dfs.core.windows.net/ewewew/New Folder1/" --overwrite=false --follow-symlinks --recursive --fromTo=LocalBlobFS --list-of-files "C:\Users\vxuanzh\AppData\Local\Temp\stg-exp-azcopy-75542664-8adf-41d4-99f1-dba13901784c.json"
  7. Check the result.

Expected Experience:

Succeed to run the copied command on CMD.

Actual Experience:

Fail to run the copied command on CMD with the below error.
error

@v-xuanzh v-xuanzh added 🧪 testing Found through regular testing ⚙️ azcopy Related to AzCopy integration ⚙️ adls gen2 Related to hierarchical namespaces (ADLS Gen 2) labels Jan 18, 2019
@MRayermannMSFT
Copy link
Member

The command assumes you have already set your account key as an environment variable, or that you have already signed into AzCopy. I'll work on adding these to the command that is copied to the clipboard.

@MRayermannMSFT MRayermannMSFT added this to the 1.8.0 milestone Jan 18, 2019
@MRayermannMSFT MRayermannMSFT added this to Committed in Storage Explorer via automation Jan 18, 2019
@MRayermannMSFT MRayermannMSFT self-assigned this Jan 18, 2019
@MRayermannMSFT MRayermannMSFT modified the milestones: 1.8.0, 1.7.0 Jan 23, 2019
@MRayermannMSFT MRayermannMSFT moved this from Committed to Under Review in Storage Explorer Jan 23, 2019
@MRayermannMSFT
Copy link
Member

Fix merged into master. Note that for Windows, commands are meant to be run in Powershell.

Storage Explorer automation moved this from Under Review to Done Jan 23, 2019
@MRayermannMSFT MRayermannMSFT added ✅ merged A fix for this issue has been merged and removed 🔍 pending labels Jan 23, 2019
@v-xuanzh
Copy link
Author

Hi @MRayermannMSFT , This issue still reproduces on the latest build 20190123.7. So reopened it(It seems like the order of the command is reversed)

Actually, we copied the AzCopy command to notepad like below when uploading/downloaging blobs.

image

But the same command shows like below after coping it to PowerShell.
image

@v-xuanzh v-xuanzh reopened this Jan 24, 2019
Storage Explorer automation moved this from Done to In Progress Jan 24, 2019
@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Jan 29, 2019

@v-xuanzh was using right click to paste into PowerShell. This is why the text was pasted in reverse order: PowerShell/PSReadLine#579

Storage Explorer automation moved this from In Progress to Done Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ adls gen2 Related to hierarchical namespaces (ADLS Gen 2) ⚙️ azcopy Related to AzCopy integration 🧪 testing Found through regular testing ✅ merged A fix for this issue has been merged
Projects
Development

No branches or pull requests

2 participants