Comments (10)
What's the error log ? @asijoumi
from minio.
Hi @jiuker, I have this :
minio_minio1.1.r19hdu824jv3@worker2 | Error: Unable to resolve DNS for http://minio3/data: lookup minio3 on 127.0.0.11:53: no such host (*fmt.wrapError)
minio_minio1.1.r19hdu824jv3@worker2 | host="minio3", elapsedTime="1 second elapsed"
minio_minio1.1.r19hdu824jv3@worker2 | 10: internal/logger/logonce.go:118:logger.(*logOnceType).logOnceIf()
minio_minio1.1.r19hdu824jv3@worker2 | 9: internal/logger/logonce.go:149:logger.LogOnceIf()
minio_minio1.1.r19hdu824jv3@worker2 | 8: cmd/logging.go:82:cmd.bootLogOnceIf()
minio_minio1.1.r19hdu824jv3@worker2 | 7: cmd/endpoint.go:869:cmd.PoolEndpointList.UpdateIsLocal()
minio_minio1.1.r19hdu824jv3@worker2 | 6: cmd/endpoint.go:1007:cmd.CreatePoolEndpoints()
minio_minio1.1.r19hdu824jv3@worker2 | 5: cmd/endpoint-ellipses.go:508:cmd.createServerEndpoints()
minio_minio1.1.r19hdu824jv3@worker2 | 4: cmd/server-main.go:344:cmd.serverHandleCmdArgs()
minio_minio1.1.r19hdu824jv3@worker2 | 3: cmd/server-main.go:687:cmd.serverMain.func2()
minio_minio1.1.r19hdu824jv3@worker2 | 2: cmd/server-main.go:512:cmd.bootstrapTrace()
minio_minio1.1.r19hdu824jv3@worker2 | 1: cmd/server-main.go:683:cmd.serverMain()
from minio.
I think that's network issue. Not for minio.
from minio.
It seems strange that the exemple of the documentation won't work with Docker Swarm...
Ok, do you have an exemple of deployment of minio with docker-compose ?
from minio.
It seems strange that the exemple of the documentation won't work with Docker Swarm...
Ok, do you have an exemple of deployment of minio with docker-compose ?
You mentioned one could be ok.
from minio.
@jiuker, it is not woking ...
I copied the docker-compose.yml from the documentation :
version: '3.7'
# Settings and configurations that are common for all containers
x-minio-common: &minio-common
image: quay.io/minio/minio:RELEASE.2024-04-18T19-09-19Z
command: server --console-address ":9001" http://minio{1...4}/data{1...2}
expose:
- "9000"
- "9001"
# environment:
# MINIO_ROOT_USER: minioadmin
# MINIO_ROOT_PASSWORD: minioadmin
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
# starts 4 docker containers running minio server instances.
# using nginx reverse proxy, load balancing, you can access
# it through port 9000.
services:
minio1:
<<: *minio-common
hostname: minio1
volumes:
- data1-1:/data1
- data1-2:/data2
minio2:
<<: *minio-common
hostname: minio2
volumes:
- data2-1:/data1
- data2-2:/data2
minio3:
<<: *minio-common
hostname: minio3
volumes:
- data3-1:/data1
- data3-2:/data2
minio4:
<<: *minio-common
hostname: minio4
volumes:
- data4-1:/data1
- data4-2:/data2
nginx:
image: nginx:1.19.2-alpine
hostname: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio1
- minio2
- minio3
- minio4
## By default this config uses default local driver,
## For custom volumes replace with volume driver configuration.
volumes:
data1-1:
data1-2:
data2-1:
data2-2:
data3-1:
data3-2:
data4-1:
data4-2:
Docker compose and Docker Swarm are not the same. So you do have an example for Docker Swarm ?
from minio.
@jiuker, it is not woking ...
I copied the docker-compose.yml from the documentation :
version: '3.7' # Settings and configurations that are common for all containers x-minio-common: &minio-common image: quay.io/minio/minio:RELEASE.2024-04-18T19-09-19Z command: server --console-address ":9001" http://minio{1...4}/data{1...2} expose: - "9000" - "9001" # environment: # MINIO_ROOT_USER: minioadmin # MINIO_ROOT_PASSWORD: minioadmin healthcheck: test: ["CMD", "mc", "ready", "local"] interval: 5s timeout: 5s retries: 5 # starts 4 docker containers running minio server instances. # using nginx reverse proxy, load balancing, you can access # it through port 9000. services: minio1: <<: *minio-common hostname: minio1 volumes: - data1-1:/data1 - data1-2:/data2 minio2: <<: *minio-common hostname: minio2 volumes: - data2-1:/data1 - data2-2:/data2 minio3: <<: *minio-common hostname: minio3 volumes: - data3-1:/data1 - data3-2:/data2 minio4: <<: *minio-common hostname: minio4 volumes: - data4-1:/data1 - data4-2:/data2 nginx: image: nginx:1.19.2-alpine hostname: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro ports: - "9000:9000" - "9001:9001" depends_on: - minio1 - minio2 - minio3 - minio4 ## By default this config uses default local driver, ## For custom volumes replace with volume driver configuration. volumes: data1-1: data1-2: data2-1: data2-2: data3-1: data3-2: data4-1: data4-2:Docker compose and Docker Swarm are not the same. So you do have an example for Docker Swarm ?
You need to check your host. Like firework or others.
from minio.
It seems like something is wrong with your environment, since minio1
hosts cannot be resolved.
from minio.
It's strange ... You can test this example :
version: '3.7'
x-minio-common: &minio-common
image: quay.io/minio/minio:RELEASE.2024-04-18T19-09-19Z
command: server --console-address ":9001" http://minio_minio{1...4}/data
networks:
- minio
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
services:
minio1:
<<: *minio-common
volumes:
- minio1:/data
minio2:
<<: *minio-common
volumes:
- minio2:/data
minio3:
<<: *minio-common
volumes:
- minio3:/data
minio4:
<<: *minio-common
volumes:
- minio4:/data
nginx:
image: nginx:1.19.2-alpine
networks:
- minio
depends_on:
- minio1
- minio2
- minio3
- minio4
volumes:
minio1:
minio2:
minio3:
minio4:
networks:
minio:
driver: overlay
attachable: true
After that run :
docker run --rm -it --network=minio_minio node:18-alpine sh
Then :
apk add curl
And :
curl http://minio_nginx
We got an answer from nginx .. It's the same docker stack. Docker was able to resolve the nginx domain name but not the minio ?
from minio.
The DNS issues are common in docker swarm. Use k8s with a kind cluster much easier and more robust.
Docker is good at containers not at orchestration.
from minio.
Related Issues (20)
- sftp not support directory permission HOT 1
- There are some error when runing systemctl status minio,but when everything is ok when runing mc admin info. HOT 2
- Is there any plan to add a configration for Erasure sets HOT 3
- Since RELEASE.2024-03-26T22-10-45Z console UI is very slow for LDAP authenticated users. HOT 7
- minio admin UI doesn't show all objects: foo/bar is invisible when foo exists HOT 4
- minio single-node mode met performance bottleneck HOT 4
- Error auth encoding in LDAP HOT 9
- Time Zone Settings Not Effective in Docker Container HOT 1
- Monitoring -> Usage -> Download menu is unusable. shows only "Dow..." HOT 1
- spring boot streaming big file to minio failure. HOT 1
- There is a problem with the read and write strategy (selecting nodes) HOT 11
- Slack Web Hooks Not Working HOT 3
- Avoid 524 when using cloudflare, send keepalive every 45s when it takes long time HOT 3
- CopyObject() are slow to modify metadata HOT 8
- systemd minio service doesn't read environment variables from /etc/default/minio HOT 1
- minio stuck on May 22 01:11:42 idk systemd[1]: Starting MinIO... May 22 01:11:42 idk systemd[1]: Started MinIO. HOT 1
- Restore the file path in minio bucket to private access, but it does not take effect. HOT 14
- Access failed: 550 Directory change to bucketname HOT 5
- FTP/SFTP unable to upload properly HOT 10
- Add HostAliases parameter to values.yaml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minio.