The link <https://developers.google.com/accounts/docs/AuthForInstalledApps>
you have provided points to an authentication method that was deprecated in
2012. I also believe that the *--email* and *--oauth2* options are not
supported by the update command (anymore?).

Unfortunately, I have used appcfg.py with the same account for all
projects, so I'm not sure about the best way. Maybe someone on this list
still uses appcfg.py with the same setup as you. If I remember correctly,
running appcfg.py for the first time would prompt you to login through a
Google login page in the browser. The auth token then would be stored in
your home directory and automatically be used for any future update command.

This is the appcfg.py doc
<https://cloud.google.com/appengine/docs/standard/python/tools/appcfg-arguments>.
Look into the Global options
<https://cloud.google.com/appengine/docs/standard/python/tools/appcfg-arguments#global_options>,
*--oauth2_refresh_token=token* As far as I understand, with this option you
can use the token of a different Google account for the current command
execution. The alternative would be to remove / replace the auth token that
was previously stored in your home directory and then running again through
the auth / login.

I actually recommend you to look into *gcloud app deploy* doc
<https://cloud.google.com/sdk/gcloud/reference/app/deploy> and eventually
switch to gcloud. It is much easier to work on different projects with
different accounts, since you can store multiple configurations and just
switch between the configurations before running a command like gcloud app
deploy. You'll have to learn a little bit about gcloud and you need to make
small tweaks in app.yaml before you can deploy them (it will tell you which
one in the errors). But I guess, the time would be spent well.

On 2 March 2018 at 00:23, Kathleen Juliff <[email protected]> wrote:

> Thank you Ani,
>
> Your reply makes sense. However when I use the command line I get an error.
> Error 404: --- begin server output ---
> https://developers.google.com/accounts/docs/AuthForInstalledApps
>
>  I looked at old posts on this group and have temporarily solved the
> problem using the oauth2 option - as in
> appcfg.py --application=<PROJECT_ID> --email=<GOOGLE_ACCT> --oauth2 update
> PROJECT_DIR
>
> But I think I must be doing something wrong. Can you point me in the right
> direction?
>
> Thank you.
>
> Kathleen
>
> On Wednesday, February 28, 2018 at 5:20:06 AM UTC-5, Ani Hatzis wrote:
>>
>> Hi Kathleen,
>>
>> on which OS do you run the App Engine launcher?
>>
>> 1.9.18 is very old, maybe from around August 2015. I would suspect that
>> you have an old App Engine SDK 1.9.18 installed (that also came with the
>> GUI launcher), and later you have added the Google Cloud SDK
>> <https://cloud.google.com/sdk/> (a different SDK, that works for most of
>> the GCP products and is much more sophisticated regarding configurations,
>> automation etc.). The Google Cloud SDK has no GUI launcher for App Engine
>> though (and deployments use a "gcloud app deploy" instead of the old
>> command), but the local dev-server and the other GAE parts are the same.
>> gcloud's App Engine component is on 1.9.67 which is right now the most
>> recent version of App Engine.
>>
>> I don't know if you could make the GUI launcher to use the newer
>> dev_appserver.py from Google Cloud SDK instead. Since the GUI launcher
>> of App Engine SDK does merely more than starting and stopping
>> dev_appserver.py this should be easy. I assume you already added confg
>> and auth to gcloud, so you only need to get familiar with the new command
>> line options of gcloud for this and for App Engine deployments.
>>
>> Regards,
>> Ani
>>
>> On Wednesday, 28 February 2018 05:27:56 UTC+1, Kathleen Juliff wrote:
>>>
>>> I tied uninstalling and reinstalling but no difference.
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/f97844c8-1359-42df-a2f0-
> 2387c9e5d0d5%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/f97844c8-1359-42df-a2f0-2387c9e5d0d5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



--

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALdDuQ5UrT7g%3DOPHXTX28QakzT%2BO2kyKLEc2VZzise8h-bZ%3DtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to