GoogleCloudPlatform / gcsfuse

A user-space file system for interacting with Google Cloud Storage
https://cloud.google.com/storage/docs/gcs-fuse
Apache License 2.0
2.05k stars 426 forks source link

Received unexpected status code 200 instead of HTTP 206 #551

Closed leonardo2204 closed 2 years ago

leonardo2204 commented 3 years ago

Hey everyone, thanks for your time!

I'm facing this error when doing a cp command in a GCP mounted folder:

http: 2021/08/23 15:42:46.918794 ====================
2021/08/23 15:42:46.918829 Not retrying Read("paodeacucar.py", 1629475575500094) after error of type *errors.errorString ("Received unexpected status code 200 instead of HTTP 206"): &errors.errorString{s:"Received unexpected status code 200 instead of HTTP 206"}
gcs: 2021/08/23 15:42:46.918846 Req              0xb: -> Read error: Received unexpected status code 200 instead of HTTP 206
2021/08/23 15:42:46.918891 ReadFile: input/output error, fh.reader.ReadAt: readFull: Received unexpected status code 200 instead of HTTP 206
fuse_debug: 2021/08/23 15:42:46.918946 Op 0x0000004a        connection.go:495] -> Error: "input/output error"
fuse: 2021/08/23 15:42:46.918962 *fuseops.ReadFileOp error: input/output error
fuse_debug: 2021/08/23 15:42:46.919092 Op 0x0000004b        connection.go:411] <- ReadFile (inode 8, PID 1991, handle 9, offset 0, 4096 bytes)
gcs: 2021/08/23 15:42:46.919221 Req              0xb: -> Read error: Received unexpected status code 200 instead of HTTP 206
2021/08/23 15:42:46.919266 ReadFile: input/output error, fh.reader.ReadAt: readFull: Received unexpected status code 200 instead of HTTP 206
fuse_debug: 2021/08/23 15:42:46.919301 Op 0x0000004b        connection.go:495] -> Error: "input/output error"
fuse: 2021/08/23 15:42:46.919320 *fuseops.ReadFileOp error: input/output error
fuse_debug: 2021/08/23 15:42:46.919625 Op 0x0000004c        connection.go:411] <- FlushFile (inode 8, PID 1991)
fuse_debug: 2021/08/23 15:42:46.919722 Op 0x0000004c        connection.go:493] -> OK ()
fuse_debug: 2021/08/23 15:42:46.919775 Op 0x0000004d        connection.go:411] <- ReleaseFileHandle (PID 0)
gcs: 2021/08/23 15:42:46.919827 Req              0xb: -> Read("paodeacucar.py", [0, 3305)) (96.392759ms): OK
fuse_debug: 2021/08/23 15:42:46.919850 Op 0x0000004d        connection.go:493] -> OK ()

The command:

cp dags-gcp/paodeacucar.py ../

Where dags-gcp is the mounted directory. I'm able to ls perfectly on the dir, but I cannot perform any read/write/copy command.

It's really odd since 206 should be an OK IMO here.

I've double-checked the permissions and everything is fine (my Compute Engine has full storage access).

More info:

GCSFUSE -> 0.36.0 Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster Compute engine -> custom (4 vCPUs, 7,5 GB memory) Full Storage access

Any help is appreciated!

avidullu commented 2 years ago

Are you able to create a new file or update any existing file in the mounted directory? Can you share the logs for the same?

sethiay commented 2 years ago

Marking this issue closed, given last response was more than 30 days ago. @leonardo2204, please feel free to open and respond to https://github.com/GoogleCloudPlatform/gcsfuse/issues/551#issuecomment-1099087173 if you find the issue again.