copying data from appengine datastore admin to my dev server. failed with status 401

547 views
Skip to first unread message

Mariano Benitez

unread,
Nov 9, 2011, 12:31:11 AM11/9/11
to google-a...@googlegroups.com
Hello,

I am trying to copy data from my appengine to my dev server, instead of doing the normal bulk download/upload, I tried the datastore admin copy function. I've setup the dev server public ip so it can be seen from outside.

When I try to run it from appengine, it fails with status 401, not authorized.

Is it possible to use this anyway? seems like a nice way to populate my dev database.

Thanks,

Nick Johnson

unread,
Nov 9, 2011, 12:33:44 AM11/9/11
to google-a...@googlegroups.com
This is unlikely to work, and you should never ever expose your dev_appserver publicly.

Consider making a small reusable test dataset you can easily load, rather than relying on a complete dump of production data, which won't scale.

-Nick

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/eJsdLLfmtkwJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Nick Johnson, Developer Programs Engineer, App Engine


Mariano Benitez

unread,
Nov 9, 2011, 5:51:48 AM11/9/11
to google-a...@googlegroups.com
Thanks Nick, 

This is an exceptional case, where I am seeding my dev environment. I don't regularly leave my dev server public. :)

Anyway, I though it was a simple way to seed, since it does not involve any command line.

If you think it will never work, it's ok, but it would be good if you include a small comment in the docs.

Best,

Greg Tracy

unread,
Nov 13, 2011, 4:53:43 PM11/13/11
to google-a...@googlegroups.com

I'm seeing the same error between two production apps.

(1) Duplicate application
(2) Upload code to new application
(2) Enable datastore admin on new app
(3) Use "copy to another app" on the original app

This results in a 401...

"Fetch to https://smsmybus-test.appspot.com/_ah/remote_api failed with status 401"



Greg Tracy

unread,
Nov 14, 2011, 1:03:23 PM11/14/11
to google-a...@googlegroups.com

It's probably worth adding one more detail. I can't access the Datastore Admin when I'm logged in with app's owner account (I think this is a known bug). I can only access the admin page from another developer account. 

That may be contributing to the access problem.

Thoughts?

Greg Tracy

unread,
Nov 14, 2011, 2:38:35 PM11/14/11
to google-a...@googlegroups.com

I found the issue.... I had been prefixing my app ID in the appengine_config.py file with 's~', which is the norm for bulkloader operations even though it isn't documented. It looks like that prefix isn't required in this case.


Sam Alexander

unread,
May 19, 2015, 4:31:33 PM5/19/15
to google-a...@googlegroups.com
Is this seriously the type of support you guys give? Fucking pathetic
Reply all
Reply to author
Forward
0 new messages