You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启动SeaweedFS单节点服务失败:19333端口连接被拒绝

搭建SeaweedFS单Master+单Volume服务时19333端口连接被拒

环境说明

在本地VMware虚拟机和阿里云ECS服务器上均做了测试,系统版本如下:

  • 本地虚拟机:
    Linux version 5.15.0-67-generic (buildd@lcy02-amd64-116) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023
  • 阿里云ECS:
    Linux version 4.15.0-206-generic (buildd@lcy02-amd64-070) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023

SeaweedFS安装过程

从发布页面下载3.44版本的linux_amd64.tar.gz,执行以下命令完成安装:

$ tar -xvf linux_amd64.tar.gz
$ chown root:root weed
$ mv weed /usr/local/bin
$ ls -lah /usr/local/bin/
total 79M
drwxr-xr-x  2 root root 4.0K Mar 31 12:19 .
drwxr-xr-x 10 root root 4.0K Apr 21  2022 ..
-rwxr-xr-x  1 root root  79M Mar 20 03:41 weed
$ weed version
version 30GB 3.44 5b43c4bb98c5e2d83dca5414b4c902b668f91ea5 linux amd64

启动服务时的错误信息

执行weed server -dir=./data -s3启动服务,出现如下错误:

$ mkdir data
$ weed server -dir=./data -s3
I0331 13:45:28.688352 master.go:269 current: 192.168.0.92:9333 peers:
I0331 13:45:28.689331 file_util.go:23 Folder ./data Permission: -rwxrwxr-x
I0331 13:45:28.689812 file_util.go:23 Folder ./data Permission: -rwxrwxr-x
I0331 13:45:28.690026 master.go:269 current: 192.168.0.92:9333 peers:192.168.0.92:9333
I0331 13:45:28.690501 master_server.go:127 Volume Size Limit is 30000 MB
I0331 13:45:28.691132 volume_grpc_client_to_master.go:43 checkWithMaster 192.168.0.92:9333: get master 192.168.0.92:9333 configuration: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 192.168.0.92:19333: connect: connection refused"
I0331 13:45:28.691515 master.go:150 Start Seaweed Master 30GB 3.44 5b43c4bb98c5e2d83dca5414b4c902b668f91ea5 at 192.168.0.92:9333
I0331 13:45:28.692629 raft_server.go:118 Starting RaftServer with 192.168.0.92:9333
I0331 13:45:28.694544 raft_server.go:167 current cluster leader:
I0331 13:45:30.482563 volume_grpc_client_to_master.go:43 checkWithMaster 192.168.0.92:9333: get master 192.168.0.92:9333 configuration: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 192.168.0.92:19333: connect: connection refused"
I0331 13:45:30.690445 s3.go:177 wait to connect to filer 192.168.0.92:8888 grpc address 192.168.0.92:18888
I0331 13:45:31.692348 s3.go:177 wait to connect to filer 192.168.0.92:8888 grpc address 192.168.0.92:18888
I0331 13:45:32.273947 volume_grpc_client_to_master.go:43 checkWithMaster 192.168.0.92:9333: get master 192.168.0.92:9333 configuration: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 192.168.0.92:19333: connect: connection refused"

其中核心错误为:dial tcp 192.168.0.92:19333: connect: connection refused

已完成的排查操作

已关闭防火墙并清空iptables规则,确认端口未被拦截:

$ sudo iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
$ sudo ufw status
Status: inactive

期望服务能正常启动,寻求解决该端口连接被拒问题的方法。


内容的提问来源于stack exchange,提问作者Lyudmila Sun

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 13:45:38