Hi,
I am using version 1.3.4 of GAE and I have the same problem. When
trying to import data to the local development server using the Python
bulk loader tool, I get the following error:
[INFO ] Logging to bulkloader-log-20100606.132812
[INFO ] Throttling transfers:
[INFO ] Bandwidth: 250000 bytes/second
[INFO ] HTTP connections: 8/second
[INFO ] Entities inserted/fetched/modified: 20/second
[INFO ] Batch Size: 10
[INFO ] Opening database: bulkloader-progress-20100606.132812.sql3
[INFO ] Connecting to 127.0.0.1:8888/admin/remote_api
[ERROR ] Exception during authentication
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3169, in Run
self.request_manager.Authenticate()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1178, in Authenticate
remote_api_stub.MaybeInvokeAuthentication()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 542, in
MaybeInvokeAuthentication
datastore_stub._server.Send(datastore_stub._path, payload=None)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 346, in Send
f = self.opener.open(req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/throttle.py", line 473, in
http_response
self.AddResponse(BANDWIDTH_DOWN, res)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/throttle.py", line 414, in AddResponse
content = res.read()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/socket.py", line 327, in read
data = self._sock.recv(rbufsize)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 537, in read
s = self.fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/socket.py", line 351, in read
data = self._sock.recv(left)
error: [Errno 54] Connection reset by peer
[INFO ] Authentication Failed
It would be nice if somebody who has successfully managed to bulk
upload data to the local dev server could post what he has done.
Thanks,
Jan.
On 17 mai, 18:15, alexh <[email protected]> wrote:
> Hi - any updates on this issue? I am using 1.3.3.1 and am unable to
> authenticate when I attempt to import data locally into my data store.
>
> I have tried going to the 'remote-api' URL once I start my server and
> entering an email address. I provide the same email address when
> prompted by the bulkloader.py script but it also asks for a password.
>
> Am I missing something?
>
> [INFO ] Connecting to localhost:8080/remote-api
> [ERROR ] Exception during authentication
> Traceback (most recent call last):
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/bulkloader.py", line 3158, in Run
> self.request_manager.Authenticate()
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/bulkloader.py", line 1169, in Authenticate
> remote_api_stub.MaybeInvokeAuthentication()
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/ext/remote_api/remote_api_stub.py", line 542, in
> MaybeInvokeAuthentication
> datastore_stub._server.Send(datastore_stub._path, payload=None)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/tools/appengine_rpc.py", line 346, in Send
> f = self.opener.open(req)
> File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/urllib2.py", line 389, in open
> response = meth(req, response)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/ext/remote_api/throttle.py", line 473, in
> http_response
> self.AddResponse(BANDWIDTH_DOWN, res)
> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
> google/appengine/ext/remote_api/throttle.py", line 414, in AddResponse
> content = res.read()
> File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/socket.py", line 327, in read
> data = self._sock.recv(rbufsize)
> File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/httplib.py", line 537, in read
> s = self.fp.read(amt)
> File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
> python2.6/socket.py", line 351, in read
> data = self._sock.recv(left)
> error: [Errno 54] Connection reset by peer
> [INFO ] Authentication Failed
>
> On Apr 5, 7:52 am, Lorenzo Dee <[email protected]> wrote:
>
>
>
>
>
> > Just a follow-up on this. I deployed the Guestbook app (from Java SDK)
> > to run on GAE/J with the said web.xml changes (for /remote_api). I ran
> > appcfg.py download_data... against the deployed Guestbook app. It
> > works! I'm not getting anyauthenticationfailures.
>
> > Does this mean that RemoteApiServlet does not work when running
> > locally/dev_appserver?
>
> > So far, my experiments tell me that RemoteApiServlet ONLY works when
> > running deployed on GAE/J. Any suggestions? It would be helpful to
> > have more documentation about this detail.
>
> > On Mar 31, 3:51 pm, Lorenzo Dee <[email protected]> wrote:
>
> > > I tried using the said configuration in my web.xml. I ran appcfg.py
> > > download_data --url=http://localhost/remote_api... But I couldn't get
> > > it to work. I'm getting an "AuthenticationFailed" error:
>
> > > error: [Errno 54] Connection reset by peer
> > > [INFO ]AuthenticationFailed
>
> > > To further isolate things, I tested it with the sample Guestbook
> > > application that comes with the SDK for Java. I added the entry in
> > > web.xml. I tested using a browser, it redirects me to a login page.
> > > So, I'm guessing the web.xml configuration works. I then tried running
> > > appcfg.py download_data again. But I'm still getting the same error. I
> > > don't think it's anauthenticationerror (since I'm only running on
> > > localhost).
>
> > > I also added app.yaml and the necessary Python classes as exporters.
>
> > > What's interesting is that I can download data from the Guestbook
> > > application (written in Python) that comes with the SDK for Python.
> > > Sorry, I'm not a Python expert. So, I'm not sure if appcfg.py
> > > download_data works with a Java-based application (as indicated in the
> > > documentation).
>
> > > Any updates or documentation on this would be greatly appreciated.
>
> > > Cheers
>
> > > On Feb 25, 8:37 am, "Ikai L (Google)" <[email protected]> wrote:
>
> > > > You should be able to connect this:
>
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <web-app>
> > > > <!-- Add this to your web.xml to enable remote API on Java. -->
> > > > <servlet>
> > > > <servlet-name>remoteapi</servlet-name>
> > > >
> > > > <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</serv
> > > > let-class>
> > > > </servlet>
> > > > <servlet-mapping>
> > > > <servlet-name>remoteapi</servlet-name>
> > > > <url-pattern>/remote_api</url-pattern>
> > > > </servlet-mapping>
> > > > <security-constraint>
> > > > <web-resource-collection>
> > > > <web-resource-name>remoteapi</web-resource-name>
> > > > <url-pattern>/remote_api</url-pattern>
> > > > </web-resource-collection>
> > > > <auth-constraint>
> > > > <role-name>admin</role-name>
> > > > </auth-constraint>
> > > > </security-constraint>
> > > > </web-app>
>
> > > > I'll dig for some sample code for the Javabulkloader. We're working
> > > > on official docs.
>
> > > > On Tue, Feb 9, 2010 at 1:22 AM, emerix <[email protected]> wrote:
> > > > > Hi,
> > > > > Does anybody have some news on theremote_apifor java ? It would be
> > > > > great to be able to use our JDO/JPA objects to interact with the
> > > > > datastore without having to upload a version to appengine !
>
> > > > > Thanx :)
> > > > > emerix
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups
> > > > > "Google App Engine for Java" group.
> > > > > To post to this group, send email to
> > > > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-appengine-java%2B
> > > > > [email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > > --
> > > > Ikai Lan
> > > > Developer Programs Engineer, Google App
> > > > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/google-appengine-java?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.