Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Permission Denied on AZCopy #14

Closed
f-tonini opened this issue Apr 4, 2019 · 5 comments
Closed

Permission Denied on AZCopy #14

f-tonini opened this issue Apr 4, 2019 · 5 comments

Comments

@f-tonini
Copy link

f-tonini commented Apr 4, 2019

Hello,

I am running the AzCopy cell on my GEODSVM (see screenshot) but am getting a "permission denied" error on the command line (see screeshot) that prevents the download of the sample data and training images to complete this training.

Any advice on possible solutions and cause of error?
2
1

@yangsiyu007
Copy link
Contributor

Hi @f-tonini, sorry about that - we recently moved the resources and neglected to update the links and SAS keys. Please substitute with the following:
Source: https://ai4ehackathons.blob.core.windows.net/landcovertutorial
SourceSAS: ?se=2020-04-06T06%3A59%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=YD6mbqnmYTW%2Bs6guVndjQSQ8NUcV8F9HY%2BhPNWiulIo%3D

We will amend the files shortly.

@f-tonini
Copy link
Author

f-tonini commented Apr 5, 2019

Hi @yangsiyu007,

I replaced the lines of code you suggested, but still receive a permission denied message (see screenshots below). What could be the issue here?

GEODSVM Error_1
GEODSVM Error_2

@f-tonini
Copy link
Author

f-tonini commented Apr 5, 2019

@yangsiyu007 when you click on the Source https://ai4ehackathons.blob.core.windows.net/landcovertutorial you provided, it also says 'Resource not Found". Could you possibly double check? It's been running for 20 minutes and nothing gets downloaded from the AzCopy command above.

@yangsiyu007
Copy link
Contributor

yangsiyu007 commented Apr 5, 2019

Hi @f-tonini, It looks to me like the "permission denied" error is related to Jupyter Notebook unable to execute the command line command (the ! at the beginning of this cell tells Jupyter Notebook to execute it as a command line command instead of as a line of Python script). Are you doing this on the GeoAI DSVM?

As a workaround, you can issue the command on the command line yourself (instead of asking Jupyter Notebook to do it). Open a Command Prompt and give the command

AzCopy /Source:https://ai4ehackathons.blob.core.windows.net/landcovertutorial /SourceSAS:"?se=2020-04-06T06%3A59%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=YD6mbqnmYTW%2Bs6guVndjQSQ8NUcV8F9HY%2BhPNWiulIo%3D" /Dest:D:\pixellevellandclassification1 /S

and there should be some printout saying x out of 34 files have been transferred. I'm assuming you're using the GeoAI DSVM, in which case AzCopy is installed already. I just tested this and this SAS key should be valid.

@f-tonini
Copy link
Author

f-tonini commented Apr 5, 2019

@yangsiyu007 it works now when running the command in the standalone CMD prompt. It just does not seem to work when run within the Jupyter Notebook cell block. I will close the issue for now as resolved as the data was downloaded successfully! Thanks for helping!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants