diff --git a/doc/forum/Error_while_trying_initialize_a_S3_remote_using_minio.mdwn b/doc/forum/Error_while_trying_initialize_a_S3_remote_using_minio.mdwn new file mode 100644 index 0000000000..e779b46133 --- /dev/null +++ b/doc/forum/Error_while_trying_initialize_a_S3_remote_using_minio.mdwn @@ -0,0 +1,80 @@ +I am trying to configure an S3 remote that uses minio. My minio installation seems to be working fine since aws cli seems to work well with it. However, when I try to enable git-annex, it seems to fail. + +~~~ +$ ga initremote minio1 --debug type=S3 encryption=none host=localhost port=9000 type=S3 datacenter='us-east-1' bucket=mybucket +[2020-06-18 15:34:31.885623] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","git-annex"] +[2020-06-18 15:34:31.903006] process done ExitSuccess +[2020-06-18 15:34:31.903132] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","show-ref","--hash","refs/heads/git-annex"] +[2020-06-18 15:34:31.910207] process done ExitSuccess +[2020-06-18 15:34:31.913251] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..6c06bbc19665ed251ce580b99dcfc8a85f3381dc","--pretty=%H","-n1"] +[2020-06-18 15:34:31.925076] process done ExitSuccess +[2020-06-18 15:34:31.92517] read: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","log","refs/heads/git-annex..116aa90151930ec19220a11be01392617206b84f","--pretty=%H","-n1"] +[2020-06-18 15:34:31.936854] process done ExitSuccess +[2020-06-18 15:34:31.942329] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch"] +[2020-06-18 15:34:31.943444] chat: git ["--git-dir=.git","--work-tree=.","--literal-pathspecs","cat-file","--batch-check=%(objectname) %(objecttype) %(objectsize)"] +[2020-06-18 15:34:32.010375] read: git ["config","--null","--list"] +[2020-06-18 15:34:32.017277] process done ExitSuccess +[2020-06-18 15:34:32.017437] read: git ["config","--null","--list"] +[2020-06-18 15:34:32.024346] process done ExitSuccess +initremote minio1 (checking bucket...) [2020-06-18 15:34:32.131454] String to sign: "GET\n\n\nThu, 18 Jun 2020 22:34:32 GMT\n/mybucket/annex-uuid" +[2020-06-18 15:34:32.131524] Host: "mybucket.localhost" +[2020-06-18 15:34:32.131555] Path: "/annex-uuid" +[2020-06-18 15:34:32.131578] Query string: "" +[2020-06-18 15:34:32.131602] Header: [("Date","Thu, 18 Jun 2020 22:34:32 GMT"),("Authorization","AWS user:key")] +[2020-06-18 15:34:32.141977] Response status: Status {statusCode = 403, statusMessage = "Forbidden"} +[2020-06-18 15:34:32.142062] Response header 'Accept-Ranges': 'bytes' +[2020-06-18 15:34:32.142117] Response header 'Content-Length': '379' +[2020-06-18 15:34:32.142158] Response header 'Content-Security-Policy': 'block-all-mixed-content' +[2020-06-18 15:34:32.142195] Response header 'Content-Type': 'application/xml' +[2020-06-18 15:34:32.142228] Response header 'Server': 'MinIO/RELEASE.2020-06-18T02-23-35Z' +[2020-06-18 15:34:32.142262] Response header 'Vary': 'Origin' +[2020-06-18 15:34:32.142316] Response header 'X-Amz-Request-Id': '1619C4344BCDB673' +[2020-06-18 15:34:32.14235] Response header 'X-Xss-Protection': '1; mode=block' +[2020-06-18 15:34:32.142373] Response header 'Date': 'Thu, 18 Jun 2020 22:34:32 GMT' +[2020-06-18 15:34:32.142419] Response metadata: S3: request ID=, x-amz-id-2= +[2020-06-18 15:34:32.142549] String to sign: "GET\n\n\nThu, 18 Jun 2020 22:34:32 GMT\n/mybucket/" +[2020-06-18 15:34:32.142601] Host: "mybucket.localhost" +[2020-06-18 15:34:32.142643] Path: "/" +[2020-06-18 15:34:32.142665] Query string: "" +[2020-06-18 15:34:32.142717] Header: [("Date","Thu, 18 Jun 2020 22:34:32 GMT"),("Authorization","AWS user:key2")] +[2020-06-18 15:34:32.144475] Response status: Status {statusCode = 403, statusMessage = "Forbidden"} +[2020-06-18 15:34:32.144559] Response header 'Accept-Ranges': 'bytes' +[2020-06-18 15:34:32.144782] Response header 'Content-Length': '334' +[2020-06-18 15:34:32.144854] Response header 'Content-Security-Policy': 'block-all-mixed-content' +[2020-06-18 15:34:32.144887] Response header 'Content-Type': 'application/xml' +[2020-06-18 15:34:32.144917] Response header 'Server': 'MinIO/RELEASE.2020-06-18T02-23-35Z' +[2020-06-18 15:34:32.144965] Response header 'Vary': 'Origin' +[2020-06-18 15:34:32.145004] Response header 'X-Amz-Request-Id': '1619C4344BF32D94' +[2020-06-18 15:34:32.145039] Response header 'X-Xss-Protection': '1; mode=block' +[2020-06-18 15:34:32.145073] Response header 'Date': 'Thu, 18 Jun 2020 22:34:32 GMT' +[2020-06-18 15:34:32.145263] Response metadata: S3: request ID=1619C4344BF32D94, x-amz-id-2= +(creating bucket in us-east-1...) [2020-06-18 15:34:32.145379] String to sign: "PUT\n\n\nThu, 18 Jun 2020 22:34:32 GMT\n/mybucket/" +[2020-06-18 15:34:32.145416] Host: "mybucket.localhost" +[2020-06-18 15:34:32.145448] Path: "/" +[2020-06-18 15:34:32.145491] Query string: "" +[2020-06-18 15:34:32.145535] Header: [("Date","Thu, 18 Jun 2020 22:34:32 GMT"),("Authorization","AWS minioadmin:a7TFnEnBgtRW791jNvAyhC5fywI=")] +[2020-06-18 15:34:32.145614] Body: "us-east-1" +[2020-06-18 15:34:32.153701] Response metadata: S3: request ID=, x-amz-id-2= + +git-annex: HttpExceptionRequest Request { + host = "mybucket.localhost" + port = 9000 + secure = False + requestHeaders = [("Date","Thu, 18 Jun 2020 22:34:32 GMT"),("Authorization","")] + path = "/" + queryString = "" + method = "PUT" + proxy = Nothing + rawBody = False + redirectCount = 10 + responseTimeout = ResponseTimeoutDefault + requestVersion = HTTP/1.1 +} + NoResponseDataReceived +failed +[2020-06-18 15:34:32.15492] process done ExitSuccess +[2020-06-18 15:34:32.155377] process done ExitSuccess +git-annex: initremote: 1 failed +~~~ + +Any ideas on what this could be because of?