tracker_query_storage fail, error no: 2, error info: No such file or directory

发布于 2022-09-13 02:37:04 字数 6116 浏览 12 评论 9

本帖最后由 rxxluowei 于 2010-11-18 18:47 编辑

□ 环境:
                                                     全部采用Ubuntu 10.04,FastDFS v2.03, libevent 1.4.12
                                        ® trackerFS-A----202.192.18.199
                                        ® group1
                                                ◊ storageFS-B   (兼做client)--202.192.18.200
                                               
                                □ 新建DFS-A
                                        ® 配置make.sh
                                                ◊ #WITH_HTTPD=1  #即,采用默认,不修改
                                        ® gedit tracker.conf
                                                ◊ bind_addr=  #留空
                                                ◊ base_path= /home/larrydfs/FastDFS
                                                ◊ #include http.conf
                                □ 新建DFS-B
                                        ® 配置make.sh
                                                ◊ #WITH_HTTPD=1  #即,采用默认,不修改
                                        ® gedit storage.conf
                                                ◊ group_name=group1(采用默认参数)
                                                ◊ bind_addr=    #留空
                                                ◊ base_path=/home/larrydfs/FastDFS
                                                ◊ store_path0=/home/larrydfs/FastDFS
                                                ◊ tracker_server=202.192.18.199:22122
                                        ® gedit client.conf
                                                ◊ base_path=/home/larrydfs/FastDFS
                                                ◊ tracker_server=202.192.18.199:22122

root@larrydfs-desktop:/home/larrydfs/FastDFS# /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /usr/include/stdlib.h
This is FastDFS client test program v2.03

Copyright (C) 2008, Happy Fish / YuQing

FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.

base_path=/home/larrydfs/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
[2010-11-18 18:33:34] ERROR - file: tracker_proto.c, line: 48, server: 202.192.18.199:22122, response status 2 != 0
[2010-11-18 18:33:34] ERROR - file: tracker_proto.c, line: 48, server: 202.192.18.199:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory

纠结好长时间了,求解...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

絕版丫頭 2022-09-19 14:17:36

防火墙有问题吧

陌上芳菲 2022-09-19 14:14:19

解决了~!但不知道为什么就解决了

痴情 2022-09-19 13:59:16

现在我搭建在一台机子上,也是报同样的错

孤芳又自赏 2022-09-19 13:42:06

回复 6# mym198878

用monitor看一下集群状态啊。

辞别 2022-09-19 12:44:35

[2011-10-27 15:25:09] INFO - base_path=/home/moym/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0

[2011-10-27 15:25:09] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.32.214:22122, response status 2 != 0
[2011-10-27 15:25:09] DEBUG - file: tracker_proto.c, line: 48, server: 192.168.32.214:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory
我还是一真报错,从未解决

若无相欠,怎会相见 2022-09-19 08:32:45

本帖最后由 rxxluowei 于 2010-11-19 10:27 编辑

回复 4# happy_fish100

    问题解决了,这个问题前些日子就碰到,我以为是文件配置混乱,全部启用新环境,没想到问题又出来了,刚才在尝试寻求解决方法,一不留神,搞定了

   [ 解决方法]
         – DFS-A
                   重启tracker
                             /usr/local/bin/restart.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
root@larrydfs-desktop:# /usr/local/bin/restart.sh /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
stopping fdfs_trackerd ...
.
starting fdfs_trackerd ...

         –  DFS-B
                    重启storage
                            /usr/local/bin/restart.sh /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf

root@larrydfs-desktop:# /usr/local/bin/restart.sh /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf

starting fdfs_storaged ...

                       
          监测(DFS-B)
                             /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf
root@larrydfs-desktop:# /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf base_path=/home/larrydfs/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
server_count=1, server_index=0

tracker server is 202.192.18.199:22122

group count: 1

Group 1:
group name = group1
free space = 42 GB
storage server count = 1
active server count = 1
storage_port = 23000
storage_http_port = 8888
store path count = 1
subdir count per path= 256
current write server index = 0

    Host 1:
        ip_addr = 202.192.18.200 (larrydfs-desktop-2.local)  ACTIVE
        http domain =
        version = 2.03
        join time = 2010-11-18 18:27:34
        up time = 2010-11-19 10:01:42
        total storage = 47GB
        free storage = 42GB
        upload priority = 10
        store_path_count = 1
        subdir_count_per_path = 256
        storage_port = 23000
        storage_http_port = 8888
        current_write_path = 0
        source ip_addr =
        total_upload_count = 0
        success_upload_count = 0
        total_set_meta_count = 0
        success_set_meta_count = 0
        total_delete_count = 0
        success_delete_count = 0
        total_download_count = 0
        success_download_count = 0
        total_get_meta_count = 0
        success_get_meta_count = 0
        total_create_link_count = 0
        success_create_link_count = 0
        total_delete_link_count = 0
        success_delete_link_count = 0
        last_heart_beat_time = 2010-11-19 10:01:43
        last_source_update = 1970-01-01 08:00:00
        last_sync_update = 1970-01-01 08:00:00
        last_synced_timestamp= 1970-01-01 08:00:00

东走西顾 2022-09-18 10:59:05

回复 3# rxxluowei

[2010-11-18 18:27:57] ERROR - file: tracker_proto.c, line: 538, connect to tracker server 202.192.18.199:22122 fail, errno: 111, error info: Connection refused

提示已经很明确了啊。
查找一下为什么连接不上tracker server的原因。

囍孤女 2022-09-17 21:22:32

本帖最后由 rxxluowei 于 2010-11-19 09:05 编辑

回复  rxxluowei

先运行fdfs_monitor看一下storage server状态。
然后再检查一下storage server和trac ...
happy_fish100 发表于 2010-11-18 19:32

--------------DFS-B:
root@larrydfs-desktop:/home/larrydfs/FastDFS# /usr/local/bin/fdfs_monitor /etc/fdfs/storage.conf
base_path=/home/larrydfs/FastDFS, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
server_count=1, server_index=0

tracker server is 202.192.18.199:22122

group count: 0
root@larrydfs-desktop:/home/larrydfs/FastDFS#

--------------storaged.log

[2010-11-18 18:27:34] INFO - FastDFS v2.03, base_path=/home/larrydfs/FastDFS, store_path_count=1, subdir_count_per_path=256, group_name=group1, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=200ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute_path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=60s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=
[2010-11-18 18:27:48] ERROR - file: tracker_proto.c, line: 538, connect to tracker server 202.192.18.199:22122 fail, errno: 111, error info: Connection refused
[2010-11-18 18:27:51] ERROR - file: tracker_proto.c, line: 538, connect to tracker server 202.192.18.199:22122 fail, errno: 111, error info: Connection refused
[2010-11-18 18:27:54] ERROR - file: tracker_proto.c, line: 538, connect to tracker server 202.192.18.199:22122 fail, errno: 111, error info: Connection refused
[2010-11-18 18:27:57] ERROR - file: tracker_proto.c, line: 538, connect to tracker server 202.192.18.199:22122 fail, errno: 111, error info: Connection refused
.......(接下来重复报错30次左右,全部是这个错误)

-------------trackerd.log

[2010-11-18 18:32:34] INFO - FastDFS v2.03, base_path=/home/larrydfs/FastDFS, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=, max_connections=256, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=4096MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=64 KB, storage_ip_changed_auto_adjust=1, storage_sync_file_max_delay=86400s, storage_sync_file_max_time=300s

陌路终见情 2022-09-16 22:40:53

回复 1# rxxluowei

先运行fdfs_monitor看一下storage server状态。
然后再检查一下storage server和tracker server日志。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文