question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

REOPEN - Minio disable SSL with java client not working !

See original GitHub issue

ISSUE

Minio disable SSL with java client not working !

Expected Behavior

Minio disable SSL with java client should work with disable SSL flag

Current Behavior

Minio disable SSL with java client not working with disable SSL flag

Possible Solution

Steps to Reproduce (for bugs)

Use maven java client



        String serviceUrl = "minio9.s3test.sdsdsd.com";
        String accessKey = "dfgdfgdg";

        String secretKey = "sdfsdfs+sdfsdfsd";

        String bucketName = "mymb2";
        MinioClient minioClient  = MinioClient.builder().endpoint(serviceUrl,9000,false).credentials(accessKey, secretKey).build();
        try {
            ///System.out.println(minioClient.listBuckets());
            minioClient.setTimeout(new Long("121212"),new Long("121212"),new Long("121212"));
            minioClient.makeBucket(
                    MakeBucketArgs.builder()
                            .bucket("my-bucketname")
                            .region("us-east-1")
                            .build());
        } catch ( Exception exception){
            System.out.print(exception.getMessage());
        }

Getting socket timeout error

Sep 27, 2022 7:14:33 PM okhttp3.internal.platform.Platform log INFO: Callback failure for call to http://minio9.s3test.sdfsdf.com:9000/… java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) at java.net.SocketInputStream.read(SocketInputStream.java:141) at okio.InputStreamSource.read(JvmOkio.kt:94) at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:125) at okio.RealBufferedSource.read(RealBufferedSource.kt:189)

Context

<dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.4.5</version> </dependency>

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vaibhavpatil123commented, Sep 27, 2022

[balamurugana] can you try above steps and check at your side ??? without closeing this issue???

1reaction
balamuruganacommented, Sep 27, 2022

Both MinIO server and minio-java work fine with non-TLS i.e. http. It is purely your setup issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

minio client not able to talk to secure minio server that uses ...
You can use 'mc' with standard SSL without using 'insecure' option for example - if you have a domain certificate signed by known...
Read more >
How to fix java.net.SocketException: Broken pipe?
If the server side HTTP application is getting Broken Pipe exceptions it just means the client browser has exited/gone to another page/timed out/gone...
Read more >
How to Fix java.net.SocketException: Broken pipe in ... - Java67
Hello guys, If you have worked in a client-server Java application then you may be familiar with the "java.net.SocketException: Broken pipe" error, ...
Read more >
Untitled
https://www.digitalocean.com/community/questions/sendmail-is-not-working-on-my- ... -a-firewall-while-creating-a-droplet-via-api 2019-09-18T20:04:40.751Z ...
Read more >
Web IDE - GitLab Docs
While the terminal is running, it can be stopped by selecting Stop Terminal. This disconnects the terminal and stops the runner's terminal job....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found