Most probably the issue is that your code may be using the open 
<https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/app-engine-cloud-storage-sample#read-from-bucket>
 
method, which sets the mode default to read-only.

Less likely, you are trying to save the file to the App Engine file system, 
which is a restriction documented here 
<https://cloud.google.com/appengine/docs/flexible/python/flexible-for-standard-users#application_execution>.
 
App Engine sandboxed environment does not allow you to save in the file 
system. 


On Tuesday, July 10, 2018 at 10:39:08 AM UTC-4, Nagaraju Devisetti wrote:
>
> I am getting Read-only file system bug with cloud storage.
>
> Traceback (most recent call last):
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1535, in 
> __call__
>     rv = self.handle_exception(request, response, e)
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1529, in 
> __call__
>     rv = self.router.dispatch(request, response)
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1278, in 
> default_dispatcher
>     return route.handler_adapter(request, response)
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1102, in 
> __call__
>     return handler.dispatch()
>   File "F:\TABASCO\TAB-167\tabasco\user_accounts.py", line 274, in dispatch
>     webapp2.RequestHandler.dispatch(self)
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 572, in 
> dispatch
>     return self.handle_exception(e, self.app.debug)
>   File "C:\Program 
> Files\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 570, in 
> dispatch
>     return method(*args, **kwargs)
>   File "F:\TABASCO\TAB-167\tabasco\main.py", line 4964, in get
>     self.downloadPackage(pkg, DOWNLOAD_LIMIT, uri, to_download, 
> folderdownload,data,recipientindex)
>   File "F:\TABASCO\TAB-167\tabasco\main.py", line 5109, in downloadPackage
>     file_blob.download_to_filename(str(file_info.name))
>   File "C:\Python27\lib\site-packages\google\cloud\storage\blob.py", line 
> 519, in download_to_filename
>     with open(filename, 'wb') as file_obj:
>   File "C:\Program 
> Files\Google\google_appengine\google\appengine\tools\devappserver2\python\stubs.py",
>  line 247, in __init__
>     raise IOError(errno.EROFS, 'Read-only file system', filename)
> IOError: [Errno 30] Read-only file system: 'bawarchi.jpg'
>
>
> On Wednesday, July 4, 2018 at 9:45:01 PM UTC+5:30, Nagaraju Devisetti 
> wrote:
>>
>> I am uploading the files to sub folders for identifying specific user 
>> files, but here file is downloading with path. 
>> I didn't find any solution for this. 
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6f888194-cd59-45b4-9901-6b2890a73a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to