I get it. Thank you for your response. Guess I will have to go for the 
library only and write extra lines of code. Since FUSE itself says "use it 
at your own risk". But thank you for providing the architectural details of 
engine. This would help me otherwise.

On Friday, October 9, 2020 at 3:44:37 AM UTC+5:30 Alexis (Google Cloud 
Platform Support) wrote:

>
> Hi,
>
> I'll try to assist the best I can.
>
> The main issue here is that what you are doing is an http request and not 
> local to the machine. For example "gs://" is essentially the gsutil tool 
> wrapping-up an HTTP request and emulating locally, but it's not part of the 
> local file system. Whereas the library you are using thinks it's 
> manipulating the file system. Hence the problem you are having.
>
> The workaround would be this[1], which consists of "mounting" GCS to the 
> filesystem using Cloud Storage FUSE. But the problem is that it's an 
> anti-pattern on App Engine. App Engine is ephemeral and could have many 
> instances with these mounts. You are bypassing a library with concurrency 
> for when many instances would talk to the same database. This means it may 
> work if you only max one instance, but you could have problems after more 
> than one instance is talking to the same files. It just doesn't make sense 
> architecturally, but it may work. Use at your own risk. 
>
> Let me know if there's something I'm not seeing or why you can't use the 
> library provided.
>
>
> [1] https://cloud.google.com/compute/docs/disks/gcs-buckets#mount_bucket
>
> On Thursday, October 8, 2020 at 10:57:10 AM UTC-4 [email protected] 
> wrote:
>
>> In my Springboot based JAVA app, how can I specify the address of cloud 
>> storage to access it directly without using "Storage" GCP Java classes. 
>> With windows local app, I am using application.properties file to specify 
>> the same, and access it directly. 
>>
>> If I try to replace the same "E:/folder1/folder2" with 
>> "gs://bucket1/folder1/folder2"
>> it gives me error: 
>> Constructor threw exception; nested exception is 
>> java.nio.file.FileSystemException: /workspace/gs:: Read-only file system. 
>> Meaning it is trying to find the path in the same workspace as where the 
>> jar/war file is placed.
>>
>> Any help?
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7a9ca29f-adb6-4d50-9035-5525fa22bed3n%40googlegroups.com.
  • [google-app... Punita Goel
    • [googl... 'Alexis (Google Cloud Platform Support)' via Google App Engine
      • [g... Punita Goel

Reply via email to