Hello, I do not manage to use the bulk load utility from GAE 1.3.4 against the local Java dev server. Using it remotely against a deployed application on appspot.com works without problems.
Here's an example: bulkloader.py --dump --app_id=APP_ID --url=http://localhost:8888/admin/ remote_api --filename=FILE.dump [INFO ] Logging to bulkloader-log-20100606.145838 [INFO ] Throttling transfers: [INFO ] Bandwidth: 250000 bytes/second [INFO ] HTTP connections: 8/second [INFO ] Entities inserted/fetched/modified: 20/second [INFO ] Batch Size: 100 [INFO ] Opening database: bulkloader-progress-20100606.145838.sql3 [INFO ] Opening database: bulkloader-results-20100606.145838.sql3 Please enter login credentials for localhost Email: foo...@nowhere.com Password for foo...@nowhere.com: [INFO ] Connecting to localhost: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 I am prompted for a user/password although I am running against the local dev server. My web.xml file contains: <servlet> <servlet-name>RemoteApi</servlet-name> <servlet- class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet- class> </servlet> <servlet-mapping> <servlet-name>RemoteApi</servlet-name> <url-pattern>/admin/remote_api</url-pattern> </servlet-mapping> <security-constraint> <web-resource-collection> <web-resource-name>Administrative pages</web-resource-name> <url-pattern>/admin/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> Commenting the security constraint does not help and it is also not a viable option as the risk to forget it and to deploy to production without restriction to admins is too high. Is there a way to bypass authentication when running against the local dev server? I have already tried the solution proposed at http://stackoverflow.com/questions/1260835#2195685 without success. I would be very grateful for any hints. Thanks and best regards, Jan. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.