[2018-09-26 05:18:14] ERROR - file: connection_pool.c, line: 130, connect to 10.15.24.109:23000 fail, errno: 113, error info: No route to host
upload file fail, error no: 113, error info: No route to host
原因:是storage那台机器没有开启23000端口。
解决:打开该端口即可。
tracker和storage安装完成,测试上传图片报错:
[2018-01-04 16:37:54] ERROR - file: tracker_proto.c, line: 48, server: 192.168.146.111:22122, response status 2 != 0
[2018-01-04 16:37:54] ERROR - file: tracker_proto.c, line: 48, server: 192.168.146.111:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory
经查找是
错误配置:store_path0=/home/fastdfs/storager
正确配置:store_path0=/home/fastdfs/storage
修改配置重启后上传成功
原因为Storage磁盘空间不足造成的,Storage默认的保留磁盘空间大小为reserved_storage_space = 10% # storage server 上保留的空间,保证系统或其他应用需求空间。可通过 storage.conf 配置。
另外还可以通过水平(增加Group和storage节点数)和垂直(增加当前storage的磁盘大小)来解决该问题!
第一台Tracker日志
[2018-09-25 21:57:12] INFO - file: tracker_relationship.c, line: 383, selecting leader...
[2018-09-25 21:57:12] ERROR - file: tracker_proto.c, line: 48, server: 10.15.24.108:22122, response status 2 != 0
第二台Tracker日志
[2018-09-25 21:58:57] ERROR - file: tracker_proto.c, line: 48, server: 10.15.24.107:22122, response status 5 != 0
[2018-09-25 21:58:57] INFO - file: tracker_mem.c, line: 4213, sys files loaded from tracker server 10.15.24.107:22122
[2018-09-25 21:58:57] ERROR - file: tracker_mem.c, line: 596, in the file "/fastdfs/tracker/data/storage_groups_new.dat", item "group_count" is not found
[2018-09-25 21:58:57] ERROR - file: tracker_mem.c, line: 4297, get sys files from other trackers fail, errno: 2
原因:因为两边的tracker里面的配置文件不一致
解决:先两边都停掉,然后把全的那边(或者leader)那边的配置文件覆盖到另外一个tracker,最后重启就可以了。
当所有FastDFS服务器关闭后重启,最开始的时候,防火墙没有关闭,这时
[root@localhost src]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/2.jpg
[2018-10-16 21:44:17] ERROR - file: tracker_proto.c, line: 48, server: 10.15.24.107:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory
关闭防火墙之后,上传仍然报这个错
关闭防火墙之后
systemctl status firewalld
systemctl stop firewalld
再重启所有服务,这个时候
[2018-10-16 21:53:39] INFO - file: tracker_relationship.c, line: 383, selecting leader...
[2018-10-16 21:53:39] INFO - file: tracker_relationship.c, line: 401, I am the new tracker leader 10.15.24.108:22122
然后再上传文件,则报
[root@localhost src]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/2.jpg
[2018-10-16 21:56:48] ERROR - file: connection_pool.c, line: 130, connect to 10.15.24.120:23000 fail, errno: 113, error info: No route to host
upload file fail, error no: 113, error info: No route to host
再关闭 防火墙
~]# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
[root@localhost ~]# service iptables status
!晕,一个服务器开了两个防火墙!
然后再上传图片,就ok了