-
Notifications
You must be signed in to change notification settings - Fork 1k
Using juicefs mount on windows, using etcd database, the connection always fails. Auto-disconnect! #6057
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
Comments
Single-node mode works fine on my side. And from the log you provided:
Maybe you should change ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 to an real address(not 0.0.0.0) |
Since my etcd service is running inside a Docker container and has undergone NAT (Network Address Translation), the IP address within the container is mapped to the host machine's address through a port. As a result, remote computers cannot access the IP address within the container. |
Could you try ping 0.0.0.0 on your Windows command prompt or PowerShell? On my side, it doesn't work either. And on a Linux system, it seems that the command of pinging 0.0.0.0 will finally result in the pinging of 127.0.0.1. |
version: '3.8'
services:
etcd:
stdin_open: true
tty: true
privileged: true
restart: always
image: bitnami/etcd:3.5
container_name: etcd-standalone
environment:
- ETCD_ROOT_PASSWORD=<password> # 自定义 root 密码
- ETCD_NAME=etcd-single # 节点名称
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_INITIAL_CLUSTER_TOKEN=<password>
- ETCD_INITIAL_CLUSTER_STATE=new
ports:
- "2379:2379"
- "2380:2380"
volumes:
- /media/debian-msx/542c5887-1dbd-48d8-95a1-125a7b3d01c5/etcd-data:/bitnami/etcd/data
networks:
- etcd-net
networks:
etcd-net:
driver: bridge
external: true
name: "mount-verysync_default"
enable_ipv6: true # 启用IPv6支持 [[5]][[9]]
ipam:
config:
- subnet: 172.20.0.0/24 # IPv4子网 [[2]]
gateway: 172.20.0.1
- subnet: fc01:db8:21:172::/64 # IPv6子网(示例,需符合实际网络规划)
gateway: fc01:db8:21:172::1
|
Uh oh!
There was an error while loading. Please reload this page.
What happened:
Using juicefs mount on windows, using etcd database, the connection always fails. Auto-disconnect!
The error might be caused by the fact that etcd is running in single-machine mode and thus unable to obtain the cluster address.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?
Environment:
juicefs --version
) or Hadoop Java SDK version:1.2.3+2025-01-22.4f2aba8
cat /etc/os-release
):windows 11 26100.3775
uname -a
):minio
etcd standalone
not on same computer
The text was updated successfully, but these errors were encountered: