Skip to content

SEGYImport "unexpected EOF" error when importing in minio

./SEGYImport --url s3://open-vds/ --url-connection "Region=local;AccessKeyId=key;SecretKey=secret;EndpointOverride=http://localhost:9000/;LogLevel=Error;" test.segy

When importing file into a local service minio (or Zenko s3 server), on the minio side occurs error:

 Error: unexpected EOF (*errors.errorString)
        5: cmd/fs-v1-helpers.go:322:cmd.fsCreateFile()
        4: cmd/fs-v1.go:1196:cmd.(*FSObjects).putObject()
        3: cmd/fs-v1.go:1112:cmd.(*FSObjects).PutObject()
        2: cmd/object-handlers.go:1617:cmd.objectAPIHandlers.PutObjectHandler()
        1: net/http/server.go:2042:http.HandlerFunc.ServeHTTP()

This error only happens if the client didn't send the entire object as specified in the content-length.

But if use the same parameters for uploading to amazon s3, it works correctly. Сan tell me what the problem might be?