Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Documentation Update for Clarification on Ports #1033

Open
michaelmyc opened this issue Oct 10, 2023 · 6 comments
Open

Suggestion: Documentation Update for Clarification on Ports #1033

michaelmyc opened this issue Oct 10, 2023 · 6 comments

Comments

@michaelmyc
Copy link

I was following the "multi-node multi-drive" instructions to set up a testing cluster and was struggling to get it running. Eventually I realized that since I was not using the default port, thus minio isn't binding to the port I'm using, thus not allowing connections in the cluster.

I think this should be included in the documentation as it's a huge gotcha that doesn't have clear error messages. It might also be good to update the single node versions as well as I think changing ports is something that's super common.

@michaelmyc michaelmyc added community triage Needs triage and scheduling labels Oct 10, 2023
@harshavardhana harshavardhana transferred this issue from minio/minio Oct 10, 2023
@ravindk89
Copy link
Collaborator

@michaelmyc can you provide us with more detail here?

https://min.io/docs/minio/linux/operations/install-deploy-manage/deploy-minio-multi-node-multi-drive.html#create-the-service-environment-file

As per our docs, all nodes must use the same config - including MINIO_VOLUMES, which is where the listen port gets specified.

Eventually I realized that since I was not using the default port, thus minio isn't binding to the port I'm using, thus not allowing connections in the cluster.

How were you specifying a non-default port here? Can you provide some specific examples?

@ravindk89 ravindk89 added investigating and removed triage Needs triage and scheduling labels Oct 10, 2023
@michaelmyc
Copy link
Author

Sorry for the late reply.

The listening ports I was referring to is "--address" in "MINIO_OPTS".
image

The config is the same for all nodes, it's just that in MINIO_VOLUMES, I set the port to something other than 9000, and I can't get the cluster working without adding the "address" option in MINIO_OPTS. It's something that's really easy to miss and I only figured it out by thoroughly reading through the manual.

@ravindk89
Copy link
Collaborator

Hm. Interesting.

@harshavardhana @kannappanr arguably if I set

MINIO_VOLUMES=https://minio-{1...n}.example.net:9090/mnt/disk{1...n}

We should parse and use the :9090 and override the default value or that specified to --address. It would be odd to require it in both places, unless it's prohibitively complex to infer it from the VOLUMES.

@ravindk89
Copy link
Collaborator

@michaelmyc can you confirm the error you got when setting just MINIO_VOLUMES ? And what MinIO version you are running here.

@michaelmyc
Copy link
Author

Our group is already using the deployment, so unfortunately it's not that convenient for me to take down the cluster and restart it.

If I recall correctly, the only error I saw was that minio complaining that the other node wasn't available. I remembered it was confusing and I got stuck on it for quite a while before I saw another config by one of my colleagues when he tested a single-node setup and realized I needed to add the --address option.

@ravindk89
Copy link
Collaborator

Thanks - that's enough for me to work with. I'm going to test a few scenarios and see what's happening here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants