May not be related, but have you tried this when using Python 2.5?





On Wed, Apr 20, 2011 at 09:35, Erik Kallevig <[email protected]> wrote:
> I'm having an issue uploading data to my localhost datastore on OSX.  It
> hits a certain point during the upload process and dies, while some entities
> do in fact get uploaded.  It doesn't matter how small the datastore file
> being uploaded.  Now this works perfectly with the same commands on my
> Windows machine, but on OSX, it's failing with the below error messages.
>
> Any help figuring out what could be causing this failure would be greatly
> appreciated.
>
> appcfg.py upload_data --application=myappnamehere --kind=Locale
> --url=http://localhost:8888/remote_api --filename=./dumplocales
>
> /usr/local/bin/appcfg.py:45: DeprecationWarning: the sha module is
> deprecated; use the hashlib module instead
>
>   EXTRA_PATHS = [
>
> /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_login.py:36:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>
>   import md5
>
> Uploading data records.
>
> [INFO    ] Logging to bulkloader-log-20110419.202204
>
> [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-20110419.202204.sql3
>
> Please enter login credentials for localhost
>
> Email: admin
>
> Password for admin:
>
> [INFO    ] Connecting to localhost:8888/remote_api
>
> [INFO    ] Starting import; maximum 10 entities per post
>
> [ERROR   ] [WorkerThread-0] WorkerThread:
>
> Traceback (most recent call last):
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/adaptive_thread_pool.py",
> line 176, in WorkOnItems
>
>     status, instruction = item.PerformWork(self.__thread_pool)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
> line 763, in PerformWork
>
>     transfer_time = self._TransferItem(thread_pool)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
> line 934, in _TransferItem
>
>     self.request_manager.PostEntities(self.content)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
> line 1393, in PostEntities
>
>     datastore.Put(entities)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/datastore.py",
> line 455, in Put
>
>     return _GetConnection().async_put(config, entities,
> extra_hook).get_result()
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/datastore/datastore_rpc.py",
> line 629, in get_result
>
>     self.check_success()
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/datastore/datastore_rpc.py",
> line 599, in check_success
>
>     rpc.check_success()
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py",
> line 558, in check_success
>
>     self.__rpc.CheckSuccess()
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_rpc.py",
> line 156, in _WaitImpl
>
>     self.request, self.response)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
> line 248, in MakeSyncCall
>
>     handler(request, response)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
> line 386, in _Dynamic_Put
>
>     'datastore_v3', 'Put', put_request, put_response)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
> line 177, in MakeSyncCall
>
>     self._MakeRealSyncCall(service, call, request, response)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
> line 189, in _MakeRealSyncCall
>
>     encoded_response = self._server.Send(self._path, encoded_request)
>
>   File
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py",
> line 358, 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 526, 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 462, 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    ] [WorkerThread-2] Backing off due to errors: 1.0 seconds
>
> [INFO    ] An error occurred. Shutting down...
>
> [ERROR   ] Error in WorkerThread-0: [Errno 54] Connection reset by peer
>
> [INFO    ] 16 entites total, 0 previously transferred
>
> [INFO    ] 0 entities (52352 bytes) transferred in 2.6 seconds
>
> [INFO    ] Some entities not successfully transferred
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" 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?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to