0

I uploaded code to app engine and now wish to download it. In order to download it I'm using the cloudshell and entered the following command:

cloudshell: ~$ appcfg.py -A [proj-noah] -V [version] download_app /home/vicktree/Desktop/folder

When I run it, I'm get the following error

2020-01-09 8:12:27,793 ERROR appcfg.py:1655 Couldn't create directory "home/vicktree/Destktop/folder/" [Error 13] Permission denied: 'home/vicktree'

I am doing something wrong with the directory?

The download did work once but at that time the path used was 'home/vicktree/Desktop/' and didn't the slash (/) before the home. But when I checked the Desktop directory, nothing was there. The operating system I'm using is Linux.

enter image description here

dangouser13443
  • 67
  • 1
  • 10

1 Answers1

1

In order to use this command have to run it without "[ ]". Just run

appcfg.py -A proj-noah -V your_version_here download_app /home/vicktree/Desktop/folder

Second make sure that you are logged in. Run the gcloud init command before running the appcfg

Chris32
  • 4,716
  • 2
  • 18
  • 30
  • i originally run it in the cloud console shell. Are you suggesting i to it in terminal? I did do 'gcloud init' but it still said appcfg.py. Is there a folder i should be in? thanks – dangouser13443 Jan 09 '20 at 15:41
  • I didin't mean that you shouldn't run this in Cloudshell. I just tried myself and it worked fine. Can you please try again and provide us with a [HAR file](https://support.zendesk.com/hc/en-us/articles/204410413-Generating-a-HAR-file-for-troubleshooting]? or a screenshot of the console were you run the command, the error and also the folder structure if is possible? – Chris32 Jan 09 '20 at 15:46
  • Just to be sure. Your user is 'vicktree'? – Chris32 Jan 09 '20 at 15:50
  • i got it working in local host going into the directory with the 'appcfg.py' file. It is downloading it and the files are being added to the correct directory. I tried to do the same with the cloudshell and its still saying permission denied – dangouser13443 Jan 09 '20 at 15:57
  • i added a screenshot of the cloudshell below – dangouser13443 Jan 09 '20 at 16:05
  • I'm glad to hear that is working in local. Seems like you don't have permissions to write on the 'vicktree' folder. Cna you please position yourself on he thome directory and run the command ls -la vicktree/ to see your permissions? – Chris32 Jan 10 '20 at 14:42