I'm facing a strange issue where I can successfully access the MinIO Console using curl
and nc
on port 9001 from my MacBook, but when trying to open the same address in a browser, the page doesn't load and doesn't show up.
Current Setup:
MinIO is running in a Docker container on my Windows desktop machine.
Nginx is used as a reverse proxy to forward requests to MinIO Console on port 9001.
When I run the following commands from my MacBook, I get normal responses:
curl -v http://<server_ip>:9001 nc -vz <server_ip> 9001
Both commands return successful responses (HTTP 200 for
curl
).
However, when I try to access http://<server_ip>:9001
via my browser, the page doesn't load correctly — it doesn't show up.
Additionally:
- Script Issue: I have a script on my MacBook that saves a test bucket and test files to MinIO on the desktop. When I run this script, I get the error
no route to host
. However, if I run the same script withsudo
, it works fine. - User: I am using a single user account on my MacBook, and the issue happens intermittently. Sometimes everything works, sometimes it doesn't, and I can't pinpoint the cause.
What I've Tried:
- Permissions: I checked the firewall and port settings. Ports 9000 and 9001 are open and accessible.
- Browser Issues: I've tried clearing cache and using incognito mode. Still, the issue persists.
- Nginx Configuration: Nginx seems to be working properly, as
curl
andnc
work fine.
Questions:
- Why can I access the MinIO Console with
curl
, but not with the browser? - What could be causing the intermittent behavior (sometimes it works, sometimes it doesn't)?
- Why does the script only work with
sudo
? - Is there something I could have overlooked in my Nginx or MinIO configuration?
It's my first time setting this up on a local network, and it's fascinating how many things I didn't consider just from reading books.
Any help or suggestions would be greatly appreciated!