Is your deployed application using the standard or flexible environment? I ask because I tested *appcfg.py download_app* using a standard Python application and a flexible Node.js application. With the Python application, I was able to retrieve the code from both *appcfg.py download_app* and view it in Stackdriver Debug. With the flexible Node.js application, I could not access the code from either.
While the appcfg.py documentation is shown under the standard runtime docs like Python and Go, some or most of its commands seem to work as expected with flexible runtimes. This contrast makes the expected behavior here somewhat unclear. If your application is one of a standard runtime, I believe *appcfg.py download_app* should succeed and this is therefore likely an issue with the platform which we should investigate. I would recommend filing a public issue on our Issue Tracker <https://issuetracker.google.com/issues/new>. If it is one of the flexible environment, I would also recommend filing a public issue. If it's determined that this is intended behavior, the issue could become a feature request coupled with a documentation update to clarify *appcfg.py* expectations. On Tuesday, May 23, 2017 at 10:11:41 PM UTC-4, Lewis wrote: > > The request completes without error despite fetching 0 files. > No one has prohibited code downloads. The option is still available. > I'm currently the only developer on the project but will see if we can get > someone else in the organization to try a download. > There is no code shown in the Stackdriver Debug page. The left side panel > reports "Source Not Available" and the center panel "No source code was > found." > > I will post to the issue tracker. Thank you for your time and help. > > On Tuesday, May 23, 2017 at 3:28:40 PM UTC-4, Nicholas (Google Cloud > Support) wrote: >> >> Interesting. If you are an owner of the Cloud Platform project where >> this application is deployed, you should indeed be able to download the >> application code using *appcfg.py download_app* as documented in Downloading >> Your Source Code >> <https://cloud.google.com/appengine/docs/standard/python/tools/downloading-source-code> >> . >> >> - Does the request complete successfully despite returning 0 files or >> does is hang on *Fetching file list...*? >> - Has anyone working with the project ever permanently prohibited >> code downloads as available in the App Engine Settings of the Cloud >> Console? I haven't tried this in some time but I believe you should get >> an >> error message if this is the case and not a hang. >> - Can anyone else working with the project successfully download the >> code using *appcfg.py download_app*? >> - If you have *App Engine Code Viewer* ACLs, you should be able to >> view the code in the Stackdriver Debug page >> <https://console.cloud.google.com/debug>. Is there any code shown >> there? >> >> If code download has not been disabled and you still cannot access the >> application code even with all the proper ACLs mentioned above, it's >> possible that your project is in a strange state. In which case, I would >> recommend filing a public issue on our Issue Tracker >> <https://issuetracker.google.com/issues/new>. If you do so, post a link >> to it here. We can make the issue private so that you can disclose your >> project ID. >> >> On Saturday, May 20, 2017 at 5:53:11 PM UTC-4, Lewis wrote: >>> >>> >>> I'm trying to take a look at a Google App Engine project started by >>> another developer and deployed to the Google Cloud Platform. I have project >>> owner rights. When running appcfg.py -A [appID] -V [version] download_app >>> [location] there are no errors, but no files come down. >>> >>> 12:00 PM Host: appengine.google.com >>> 12:00 PM Fetching file list... >>> 12:00 PM Fetching files... >>> >>> If the appID is invalid, or the version is invalid appfcg.py displays an >>> error, >>> >>> 12:00 PM Host: appengine.google.com >>> 12:00 PM Fetching file list... >>> Error 404: --- begin server output --- >>> This application does not exist (project_id=u'invalid'). To create an >>> App Engine application in this project, run "gcloud app create" in your >>> console. >>> >>> or >>> >>> 12:00 PM Host: appengine.google.com >>> 12:00 PM Fetching file list... >>> Error 400: --- begin server output --- >>> Major version "123" does not exist. >>> >>> but when the appID and version are valid it simply downloads nothing. >>> Any suggestions? >>> >> -- 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/e932c54d-9f3d-42a7-a66f-74fbed792543%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
