How to upgrade appengine launcher from 1.9.18

84 views
Skip to first unread message

Kathleen Juliff

unread,
Feb 27, 2018, 3:49:23 PM2/27/18
to Google App Engine
Every time I open appengine launcher it advises me to update to GAE  1.9.67. But I have upgraded google dk to the latest version. Why am i getting this message that i am on 1.9.18?
TIA

Kate

Kenworth (Google Cloud Platform)

unread,
Feb 27, 2018, 11:23:51 PM2/27/18
to Google App Engine
QQ: What happens if you completely uninstall and re-install the Google SDK?

Kathleen Juliff

unread,
Feb 27, 2018, 11:27:56 PM2/27/18
to Google App Engine
I tied uninstalling and reinstalling but no difference.

Ani Hatzis

unread,
Feb 28, 2018, 5:20:06 AM2/28/18
to Google App Engine
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 (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

Kathleen Juliff

unread,
Mar 1, 2018, 6:23:46 PM3/1/18
to Google App Engine
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

Ani Hatzis

unread,
Mar 2, 2018, 3:59:20 AM3/2/18
to google-a...@googlegroups.com
The link 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. Look into the 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 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.

--
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 google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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.

For more options, visit https://groups.google.com/d/optout.



--

Reply all
Reply to author
Forward
0 new messages