Hey solsTiCe d'Hiver,

This appears to follow the symptoms of an issue some other users have 
observed <https://code.google.com/p/googleappengine/issues/detail?id=12445>. 


Other than this, I can think of some potentially fruitful questions to ask: 

* which oauth2 token are you using now, is it based on the default 
credentials of a service account? Does that service account have OWNER 
permission on your app?

* if not, how are you exactly generating the credentials json file?

* does deployment work if you remove 's~' from the app id in the bash 
script? 

With this information, we'll be much closer to diagnosing the exact nature 
of this issue, and determining what solutions to provide. 

Best wishes,

Nick
Cloud Platform Community Support

On Sunday, April 17, 2016 at 1:34:43 PM UTC-4, solsTiCe d'Hiver wrote:
>
> hi.
> Like I used to do it several years ago, I am attempting to *bulk download* 
> the *entities* of the datastore of my app with *appcfg.py* (from latest 
> python SDK)
>
> I am using this little script:
> #!/bin/bash
> date=`date +%Y%m%d`
> appid=myappid
> url="https://$appid.appspot.com/_ah/remote_api";
> GOOGLE_APPLICATION_CREDENTIALS=myapp.json appcfg.py download_data -v -e 
> myem...@gmail.com --application=s~$appid --url=$url --filename=allentities
> -$date.sql3
> rm -f bulkloader-*
>
>
> because this command does not ask for an oauth token, I have previously 
> run the command
>
> appcfg.py list_versions
>
> just to get the *oauth2* token
> And as said in 
> https://developers.google.com/accounts/docs/application-default-credentials 
> I have generated a *json* file with the google credentials and use it 
> with GOOGLE_APPLICATION_CREDENTIALS variable as shown above.
>
> However when I run the script I get a long list of
> 2016-04-17 19:21:29,316 INFO client.py:546 Attempting refresh to obtain 
> initial access_token 
> 2016-04-17 19:21:29,378 INFO client.py:804 Refreshing access_token 
> 2016-04-17 19:21:30,901 INFO client.py:578 Refreshing due to a 401 
> (attempt 1/2) 
> 2016-04-17 19:21:30,988 INFO client.py:804 Refreshing access_token
> 2016-04-17 19:21:31,570 INFO client.py:578 Refreshing due to a 401 
> (attempt 2/2) 
> 2016-04-17 19:21:31,659 INFO client.py:804 Refreshing access_token 
> 2016-04-17 19:21:32,436 INFO client.py:578 Refreshing due to a 401 
> (attempt 1/2) 
> 2016-04-17 19:21:32,526 INFO client.py:804 Refreshing access_token 
> 2016-04-17 19:21:33,162 INFO client.py:578 Refreshing due to a 401 
> (attempt 2/2) 
> [...]
>
>
> and this ends with 
> Error 401: --- begin server output ---
> You must be logged in as an administrator to access this.
> --- end server output ---
>
> I have the same 401 error in the log of my app.
>
> What could be wrong ?
> I am the owner of the app and my email is listed as such in the logins
>
> I don't want to enable billing and use the Google Cloud Platform to export 
> entities from the datastore with "Admin Datastore" (by the way clicking the 
> button "Open Admin Datastore" does nothing, one need to use a right click 
> and open in new tab to get something)
>
>
>
>

-- 
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+unsubscr...@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/9717111c-fa5d-430f-ba50-26b395464ade%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine] E... solsTiCe d'Hiver
    • [google-appengi... 'Nick (Cloud Platform Support)' via Google App Engine
      • [google-app... solsTiCe d'Hiver
        • [google... 'Nick (Cloud Platform Support)' via Google App Engine
          • Re:... solsTiCe d'Hiver
            • ... 'Nick (Cloud Platform Support)' via Google App Engine

Reply via email to