Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

minio local dashboard is not opening

Tags:

docker

minio

I have installed minio in docker. It installed successfully and below are logs of the minio server:

enter image description here

I think all is well but when I invoke localhost:9000 url in browser it redirects to localhost:40793 with error message site can't be reached.

enter image description here

I don't know the issue. Can anyone help ? Thanks in advance.

like image 232
Lalit Goswami Avatar asked Jul 09 '21 13:07

Lalit Goswami


People also ask

How do I use MinIO locally?

Point a web browser running on the host machine to http://127.0.0.1:9000 and log in with the root credentials. You can use the Browser to create buckets, upload objects, and browse the contents of the MinIO server. You can also connect using any S3-compatible tool, such as the MinIO Client mc commandline tool.

How do I open the MinIO console?

You can also deploy a standalone MinIO Console using the instructions in the github repository. You can explore the Console using https://play.min.io:9443. Log in with the following credentials: Username: Q3AM3UQ867SPQQA43P2F.

How do I update my MinIO?

Update the MinIO Binary in the virtual machine or container one at a time. Restart the MinIO deployment using mc admin service restart . Update the virtual machine/container configuration to use the matching newer MinIO image. Perform the rolling restart of each machine/container with the updated image.

What hostname does the MinIO console use to connect to the server?

The URL hostname the MinIO Console uses for connecting to the MinIO Server. The hostname must be resolveable and reachable for the Console to function correctly. The MinIO Console connects to the MinIO Server using an IP address by default.

Why does Minio keep redirecting me to the console?

I think the issue is that minio serves the API on port 9000, but tries to redirect you to the console when that address visited in the browser (e.g. localhost:9000). The console is on a dynamic port that isn't exposed by docker. Instead, we can specify the console port using the --console-address flag and expose it in the docker command.

What is the default IP address for connecting to Minio?

The MinIO Console defaults to connecting using <IP ADDRESS 1>. The MinIO Console may require setting this variable in the following scenarios: The MinIO server TLS certificates do not include the local IP address as a Subject Alternative Name (SAN).

Does the MinIO server TLS certificate include the local IP address?

The MinIO server TLS certificates do not include the local IP address as a Subject Alternative Name (SAN). Specify a hostname contained in the TLS certificate to allow the MinIO Console to validate the TLS connection. The MinIO server’s local IP address is not reachable by the MinIO Console.


Video Answer


1 Answers

Addressing the warning about the dynamic port worked for me. I think the issue is that minio serves the API on port 9000, but tries to redirect you to the console when that address visited in the browser (e.g. localhost:9000). The console is on a dynamic port that isn't exposed by docker.

Instead, we can specify the console port using the --console-address flag and expose it in the docker command. This worked for me:

docker run -p 9000:9000 -p 9001:9001 --name minio -d -v ~/minio/data:/data -e "MINIO_ROOT_USER={ACCESS_KEY}" -e "MINIO_ROOT_PASSWORD={ACCESS_SECRET}" minio/minio server --console-address :9001 /data

I was then able to visit the console at localhost:9001 (although visiting localhost:9000 also redirected me there).

like image 71
wedm Avatar answered Oct 20 '22 19:10

wedm