Git Product home page Git Product logo

googlecodelabs / migrate-python2-appengine Goto Github PK

View Code? Open in Web Editor NEW
29.0 15.0 34.0 250 KB

This repo is for the codelabs (free, online, self-paced tutorials) showing developers how to migrate their Google App Engine applications from the Python 2 runtime to the 2nd generation Python3 App Engine or Cloud Run serverless container services. The repo for the code samples in the documentation are elsewhere: https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard/migration

Home Page: https://cloud.google.com/appengine/docs/standard/python/migrate-to-python3/migrating-services

License: Apache License 2.0

HTML 13.93% Python 85.78% Dockerfile 0.25% Procfile 0.04%
google-app-engine google-appengine python3 python2 python google-cloud-platform google-cloud docker dockerfile buildpacks

migrate-python2-appengine's Issues

Attempted RPC call without active security ticket

Hello there,

I'm trying to migrate an Python2 App and I'm stuck for many hours on a Attempted RPC call without active security ticket

It can be reproduced with mod12b-memcache very easily.

dev_appserver.py app.yaml

in mod12b-memcache and then open the link in the browser.

Google Cloud SDK 417.0.1
app-engine-python 1.9.101
bq 2.0.84
cloud-datastore-emulator 2.3.0
core 2023.02.08
gcloud-crc32c 1.0.0
gsutil 5.19

Is there anything I can look at to make it work? I tried re-installing python3 and python2 many times

More logs:

INFO     2023-02-09 16:18:07,696 dispatcher.py:280] Starting module "default" running at: http://localhost:8080
INFO     2023-02-09 16:18:07,698 admin_server.py:70] Starting admin server at: http://localhost:8000
INFO     2023-02-09 16:18:08,706 instance.py:561] Cannot decide GOOGLE_CLOUD_PROJECT, using "test" as a fake value
[2023-02-09 17:18:09 +0100] [32969] [INFO] Starting gunicorn 20.1.0
[2023-02-09 17:18:09 +0100] [32969] [INFO] Listening at: http://0.0.0.0:53942 (32969)
[2023-02-09 17:18:09 +0100] [32969] [INFO] Using worker: sync
[2023-02-09 17:18:09 +0100] [32972] [INFO] Booting worker with pid: 32972
INFO     2023-02-09 16:18:09,737 instance.py:294] Instance PID: 32969
[2023-02-09 17:18:13,751] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/Users/laurentmeyer/Code/migrate-python2-appengine/mod12b-memcache/main.py", line 42, in root
    visits = memcache.get('visits')
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/api/memcache/__init__.py", line 582, in get
    rpc = self.get_multi_async([key], namespace=namespace, for_cas=for_cas)
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/api/memcache/__init__.py", line 639, in get_multi_async
    user_key)
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/api/memcache/__init__.py", line 407, in _make_async_call
    rpc.make_call(method, request, response, get_result_hook, user_data)
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/api/apiproxy_stub_map.py", line 565, in make_call
    self.__rpc.MakeCall(self.__service, method, request, response)
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/api/apiproxy_rpc.py", line 133, in MakeCall
    self._MakeCallImpl()
  File "/private/var/folders/57/lyvd3rs56wl99jmbh30gs0gr0000gn/T/tmpA9FPfP/lib/python3.7/site-packages/google/appengine/runtime/default_api_stub.py", line 183, in _MakeCallImpl
    'Attempted RPC call without active security ticket')
google.appengine.runtime.apiproxy_errors.RPCFailedError: Attempted RPC call without active security ticket

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.