Skip to content

Instantly share code, notes, and snippets.

@wrpinheiro
Last active April 28, 2017 02:36
Show Gist options
  • Save wrpinheiro/58344cedb2f6830d31d8a1c762a18888 to your computer and use it in GitHub Desktop.
Save wrpinheiro/58344cedb2f6830d31d8a1c762a18888 to your computer and use it in GitHub Desktop.
Minio error
version: '2'
services:
minio:
image: minio/minio:latest
environment:
- MINIO_ACCESS_KEY=minotestkey
- MINIO_SECRET_KEY=miniotestsecret
command: server /export
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
- "9000:9000"
public class Main {
public static void main(String[] args) throws Exception {
MinioClient minioClient = new MinioClient("http://localhost:9000", "minotestkey", "miniotestsecret");
minioClient.makeBucket("test-bucket");
}
}
objc[34933]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Exception in thread "main" error occured
ErrorResponse(code=RequestTimeTooSkewed, message=The difference between the request time and the server's time is too large., bucketName=null, objectName=null, resource=/test-bucket, requestId=3L137, hostId=3L137)
request={method=PUT, url=http://localhost:9000/test-bucket, headers=Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
Host: localhost:9000
User-Agent: Minio (x86_64; x86_64) minio-java/dev
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date: 20170428T021206Z
Authorization: AWS4-HMAC-SHA256 Credential=minotestkey/20170428/us-east-1/s3/aws4_request, SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=d6c28364df98dd1422741804b5fd7265f8a58018d2718e9469e8577bc40de192
Content-Type: application/octet-stream
Content-Length: 0
}
response={code=403, headers=Accept-Ranges: bytes
Content-Type: application/xml
Server: Minio/RELEASE.2017-04-25T01-27-49Z (linux; amd64)
Vary: Origin
X-Amz-Bucket-Region: us-east-1
X-Amz-Request-Id: 14B9641AF109842C
Date: Thu, 27 Apr 2017 23:13:38 GMT
Transfer-Encoding: chunked
OkHttp-Sent-Millis: 1493345527377
OkHttp-Received-Millis: 1493345527384
}
at io.minio.MinioClient.execute(MinioClient.java:1026)
at io.minio.MinioClient.executePut(MinioClient.java:1193)
at io.minio.MinioClient.makeBucket(MinioClient.java:2593)
at io.minio.MinioClient.makeBucket(MinioClient.java:2550)
at Main.main(Main.java:9)
Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment