How to fix MinIO console: unable to login due to network error
Problem
When trying to login to the MinIO console, you get the error message:
unable to login due to network error
However, the MinIO server itself is working fine, and you can access it using the mc
command line tool or S3-compatible clients.
Solution
In your docker-compose.yml
running your MinIO server, you have set MINIO_SERVER_URL
. This was required in older MinIO versions, but is no longer needed, and in fact, it breaks the console login.
Just remove the MINIO_SERVER_URL
environment variable, and restart your MinIO container.
Broken config example
services:
minio:
image: quay.io/minio/minio:RELEASE.2025-07-23T15-54-02Z
command: server --console-address ":9001" /data
volumes:
- ./data:/data
- ./config:/root/.minio
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=Aecae1ahl3yadath5uoz3ohSaihooh
- MINIO_DOMAIN=minio.mydomain.com
- MINIO_SERVER_URL=https://minio.mydomain.com
- MINIO_BROWSER_REDIRECT_URL=https://console.minio.mydomain.com
Fixed config example
services:
minio:
image: quay.io/minio/minio:RELEASE.2025-07-23T15-54-02Z
command: server --console-address ":9001" /data
volumes:
- ./data:/data
- ./config:/root/.minio
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=Aecae1ahl3yadath5uoz3ohSaihooh
- MINIO_DOMAIN=minio.mydomain.com
- MINIO_BROWSER_REDIRECT_URL=https://console.minio.mydomain.com
Now restart your MinIO container, and you should be able to login to the console again.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow