[英]How can I download my project source code from google cloud console
When i issued this command (appcfg.py -A rrrrr -V 1 download_app /C) to download source code from the Google Cloud Shell, I get this error message:当我发出此命令 (appcfg.py -A rrrrr -V 1 download_app /C) 从 Google Cloud Shell 下载源代码时,我收到以下错误消息:
Python 2 is deprecated. Python 2 已弃用。 Upgrade to Python 3 as soon as possible.
尽快升级到 Python 3。 See https://cloud.google.com/python/docs/python2-sunset
请参阅https://cloud.google.com/python/docs/python2-sunset
To suppress this warning, create an empty ~/.cloudshell/no-python-warning file.要取消此警告,请创建一个空的 ~/.cloudshell/no-python-warning 文件。 The command will automatically proceed in seconds or on any key.
该命令将在几秒钟内或按任意键自动执行。
10:33 AM Host: appengine.google.com
10:33 AM Fetching file list...
Error 401: --- begin server output ---
1.434068975362424615
<ApiError 401, Message: "Rejected by creds_policy: Permission 'auth.creds.useNormalUserEUC' not granted to app-engine-appserver@prod.google.com, because it satisfies none of the 3 rules granting that permission. (Policy {type=creds, id=/apps/framework/auth/v0/mapping0/247afb42-c0c2-4579-9534-4d81ab6e915f}); RpcSecurityPolicy http://rpcsp/p/5frrBmXyY2vYXBQ1ey0O2q71nxZ-SEboQ9bDWATZ7oA
com.google.security.context.validation.CredsPermissionException: Rejected by creds_policy: Permission 'auth.creds.useNormalUserEUC' not granted to app-engine-appserver@prod.google.com, because it satisfies none of the 3 rules granting that permission. (Policy {type=creds, id=/apps/framework/auth/v0/mapping0/247afb42-c0c2-4579-9534-4d81ab6e915f}); RpcSecurityPolicy http://rpcsp/p/5frrBmXyY2vYXBQ1ey0O2q71nxZ-SEboQ9bDWATZ7oA ">
--- end server output ---
appcfg.py
is part of the old SDK which has been deprecated and no longer works ( source ). appcfg.py
是旧 SDK 的一部分,它已被弃用且不再有效( 来源)。 Google has no direct replacement for appcfg.py download
. Google 没有直接替代
appcfg.py download
。
There are some possible work arounds as documented on this stackoverflow question .在此stackoverflow question上记录了一些可能的解决方法。
Our App, nocommandline.com , also supports download with some caveats.我们的应用程序nocommandline.com也支持下载,但有一些注意事项。 See full details on our answer to that previous stackoverflow question.
查看我们对上一个 stackoverflow 问题的回答的完整细节。 We also have an article on our blog about it.
我们的博客上也有一篇关于它的文章。 That article also gives you a tip on how to ensure your source code is available for download in the future.
该文章还为您提供了有关如何确保您的源代码将来可供下载的提示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.