Deploy issue, Help please

87 views
Skip to first unread message

casey mote

unread,
Mar 24, 2015, 6:50:27 AM3/24/15
to google-a...@googlegroups.com

2015-03-24 03:41:59 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=casey...@gmail.com', '--passin', 'update', u'C:\\Users\\Casey\\Desktop\\google-proxy-1.0']"

03:42 AM Application: greenarrow4403; version: secureable

03:42 AM Host: appengine.google.com

03:42 AM

Starting update of app: greenarrow4403, version: secureable

03:42 AM Getting current resource limits.

Password for casey...@gmail.com: Invalid username or password.

2015-03-24 03:42:06,345 ERROR appcfg.py:2448 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.

Error 401: --- begin server output ---

Must authenticate first.

--- end server output ---

2015-03-24 03:42:06 (Process exited with code 1)

You can close this window now.



I keep getting this even though I know the login is correct. I even changed my ps and retried and it gave it to me again

Mihail Russu

unread,
Mar 24, 2015, 7:04:33 AM3/24/15
to google-a...@googlegroups.com
Instead of 
--email
and
--passin
parameters try using a
--oauth2
which will open your browser with the Google Authentication page where you can enter your current credentials and approve the authorization.

It will work even better when you remove the
--no-cookies
parameter making a unique token save in a config file so that you won't have to authenticate the next time you use the
--oauth2
parameter.


Thanks,
Mihail.

casey mote

unread,
Mar 24, 2015, 7:14:03 AM3/24/15
to google-a...@googlegroups.com
How do I change it?









Mihail Russu

unread,
Mar 24, 2015, 8:05:07 AM3/24/15
to google-a...@googlegroups.com
How are you deploying your app?

You could probably simply run the following command in your terminal:
C:\Python27\pythonw.exe "C:\Program Files (x86)\Google\google_appengine\appcfg.py" update "C:\Users\\Casey\Desktop\google-proxy-1.0" --oauth2
(I don't have a windows machine to test it but don't see why it wont work although it might require some adjustments)

I you're using the GAE GUI tool - you need to find out how to enable oauth2 authentication instead of username/password credentials.

Thanks,
Mihail.

casey mote

unread,
Mar 24, 2015, 10:53:12 AM3/24/15
to google-a...@googlegroups.com
I am on Python. I will try this when I get home and post back. I am highly grateful for the help. Thanks

casey mote

unread,
Mar 25, 2015, 1:26:14 PM3/25/15
to google-a...@googlegroups.com
I'm just trying to launch a proxy server throu gh google apps and I keep getting this. Im using python



On Tuesday, March 24, 2015 at 7:05:07 AM UTC-5, Mihail Russu wrote:

Mihail Russu

unread,
Mar 25, 2015, 8:46:15 PM3/25/15
to google-a...@googlegroups.com
Is it still not working? Have you tried anything I suggested? What have you tried and what's not working?
Reply all
Reply to author
Forward
0 new messages