Hi

I've recently switched from windows to mac, mainly for the 
hardware/software stability, just managed to start working again with the 
dev_appserver after 2 days, my old blobstore images are working in the new 
setup, however the newer cloud storage images aren't working
I haven't yet dived deep enough into the inner workings to decipher and 
solve the issue, I would really like some help, if anyone around is fluent 
in the blobstore/gcs/dev_appserver inner workings

Basically all encoded_gs_file: urls seem to redirect to the 
/n/ncoded_gs_file folder on the storage path
the storage path has a lot of folders, like a b C D .. 1 2 .. _-.. etc. and 
only "n" seems to have the ncoded_gs_file empty file, so it's good up to 
this point, I'm not sure how things are supposed to work
I verify that the url/key is correct, because when you change the url, the 
error changes too, it just doesn't seem to find clodstorage images

Here is the full traceback
Traceback (most recent call last):
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 1536, in __call__
    rv = self.handle_exception(request, response, e)
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 1530, in __call__
    rv = self.router.dispatch(request, response)
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 1102, in __call__
    return handler.dispatch()
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/tools/devappserver2/admin/admin_request_handler.py"
, line 96, in dispatch
    super(AdminRequestHandler, self).dispatch()
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/Users/kaan/Desktop/APPENGINE/sdk/lib/webapp2-2.5.1/webapp2.py", 
line 570, in dispatch
    return method(*args, **kwargs)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/tools/devappserver2/admin/blobstore_viewer.py"
, line 93, in get
    self._display_blob(blob_info, display)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/tools/devappserver2/admin/blobstore_viewer.py"
, line 125, in _display_blob
    self.response.write(reader.read())
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/ext/blobstore/blobstore.py"
, line 861, in read
    self.__fill_buffer(size)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/ext/blobstore/blobstore.py"
, line 833, in __fill_buffer
    self.__position + read_size - 1)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/ext/blobstore/blobstore.py"
, line 681, in fetch_data
    return rpc.get_result()
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/apiproxy_stub_map.py"
, line 613, in get_result
    return self.__get_result_hook(self)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/blobstore/blobstore.py"
, line 234, in _get_result_hook
    rpc.check_success()
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/apiproxy_stub_map.py"
, line 579, in check_success
    self.__rpc.CheckSuccess()
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/apiproxy_rpc.py", 
line 157, in _WaitImpl
    self.request, self.response)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/apiproxy_stub.py", 
line 129, in MakeSyncCall
    method(request, response, request_id)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/blobstore/blobstore_stub.py"
, line 374, in _Dynamic_FetchData
    blob_file = self.__storage.OpenBlob(blobkey)
  File 
"/Users/kaan/Desktop/APPENGINE/sdk/google/appengine/api/blobstore/file_blob_storage.py"
, line 149, in OpenBlob
    return _local_open(self._FileForBlob(blob_key), 'rb')
IOError: [Errno 2] No such file or directory: 
'/Users/kaan/project/blobstore/dev~theapp/n/ncoded_gs_file:Z2VvYmlyZGVsZW1lbnRzL2NvbW1lbnRfdXBsb2Fkcy9mYWtlLVJfOG5hbGdyc3VoQkppakhick5jVmc9PQ=='


And the request paths look like this: 
/_ah/img/encoded_gs_file:Z2VvYmlyZGVsZW1lbnRzL3NoYXJlX3VwbG9hZHMvZmFrZS1kNk9qLW45dzh1ZVhFMkxTQlQzZUlnPT0==s293

dev_appserver argument paths are correct, I'm using the latest .zip python 
sdk

the datastore entity for the gcs file is getting fetched, I assume, since 
wrong keys produce different errors, but there is an issue after that 
operation

-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to