I'm trying to push files from my computer up to my instance in the cloud with Google Compute Engine. However, whenever I try this command:
gcutil --project=<project-id> push <instance-name> <local-file> <remote-target-path>
The problem is that (it appears on the server side) the attempt to push files is denied. Here is the message:
scp: /Uploads: Permission denied
where in my case, /Uploads is a directory on the server that I created. I tried using different permission types like 777 and a few others, but could this be related to this comment on the quick start guide for GCE?
"...push does not allow you to save in a directory that requires root permissions, which is necessary in this scenario because the default location above for web server files requires root permissions. You can change the default location to somewhere that doesn't require root access, or open the existing file for edit as root."
I have not edited any permissions other than that directory so I figure it might be an issue as I am most likely using the root account by default. The machine is Debian 7 based
Thanks
The problem ended up being that the /upload
file had to be specified as upload
without any slashes on either side. It was attempting to upload a directory to an existing directory.