- 论坛徽章:
- 0
|
FastDFS 5.0.4安装在mac上面storage连接tracker失败,提示文件未找到
刚开始单独启动tracker是正常的,但启动storage之后 tracker的日志如下:
[2014-10-31 08:18:57] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:18:57] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:18:58] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:18:59] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:19:00] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:19:00] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:19:01] INFO - file: tracker_relationship.c, line: 383, selecting leader...
[2014-10-31 08:19:01] ERROR - file: tracker_nio.c, line: 423, ioevent_modify fail, errno: 2, error info: No such file or directory
[2014-10-31 08:19:01] ERROR - file: tracker_proto.c, line: 37, server: 192.168.10.113:22122, recv data fail, errno: 57, error info: Socket is not connected
[2014-10-31 08:19:08] INFO - file: tracker_relationship.c, line: 383, selecting leader...
这个错误,不知道是tracker出现的,还是storage在连接trakcer时,storage端的这个错误。
查看了下源代码,如下:
请各位帮忙看看,我从5.0.1 5.0.3 5.0.4都存在这个问题
配置文件里面的base_path和store_path0 这两个路径都是存在的
@happyfish 5.0.4里面的安装路径问题,默认安装到/usr/local/bin和/etc/fdfs目录下面,这个不是很好,
我在生产环境上面部署的时候,是不会有这两个目录的权限的,需要安装到自己的用户目录下面。
我一般采用的目录结构如下:
drwxr-xr-x 2 mixuan app 4096 Oct 23 19:50 bin
drwxr-xr-x 2 mixuan app 4096 Oct 30 20:19 conf
drwxr-xr-x 4 mixuan mixuan 4096 Oct 23 21:34 data
drwxr-xr-x 4 mixuan app 4096 Oct 20 13:10 include
drwxr-xr-x 2 mixuan app 4096 Oct 20 13:10 lib
drwxr-xr-x 2 mixuan mixuan 4096 Oct 20 13:13 logs
conf下面是配置文件,data里面是pid和同步信息,没有数据
以上只是用作参考,希望余大能够在这方面改进一下。
只启动tracker的日志如下:
[2014-10-31 08:17:56] INFO - FastDFS v5.04, base_path=/Users/coral/fastdfs, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=22122, bind_addr=, max_connections=256, accept_threads=1, work_threads=4, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=10.00%, 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, use_trunk_file=1, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, trunk_compress_binlog_min_interval=0, use_storage_id=0, id_type_in_filename=ip, storage_id_count=0, rotate_error_log=0, error_log_rotate_time=00:00, rotate_error_log_size=0, log_file_keep_days=0, store_slave_file_use_link=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2014-10-31 08:17:56] INFO - local_host_ip_count: 2, 127.0.0.1 192.168.10.113
启动storage后storage.log:
[2014-10-31 08:18:58] INFO - FastDFS v5.04, base_path=/Users/coral/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=g1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, accept_threads=1, 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=50ms, 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=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priority=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access_log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, log_file_keep_days=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2014-10-31 08:18:58] INFO - file: storage_param_getter.c, line: 191, use_storage_id=0, id_type_in_filename=ip, storage_ip_changed_auto_adjust=1, store_path=0, reserved_storage_space=10.00%, use_trunk_file=1, slot_min_size=256, slot_max_size=16 MB, trunk_file_size=64 MB, trunk_create_file_advance=0, trunk_create_file_time_base=02:00, trunk_create_file_interval=86400, trunk_create_file_space_threshold=20 GB, trunk_init_check_occupying=0, trunk_init_reload_from_binlog=0, trunk_compress_binlog_min_interval=0, store_slave_file_use_link=0
[2014-10-31 08:18:58] INFO - file: storage_func.c, line: 175, tracker_client_ip: 192.168.10.113, my_server_id_str: 192.168.10.113, g_server_id_in_filename: 1896523968
[2014-10-31 08:18:58] ERROR - file: tracker_proto.c, line: 37, server: 192.168.10.113:22122, recv data fail, errno: 57, error info: Socket is not connected
[2014-10-31 08:18:59] ERROR - file: tracker_proto.c, line: 37, server: 192.168.10.113:22122, recv data fail, errno: 57, error info: Socket is not connected
[2014-10-31 08:19:00] ERROR - file: tracker_proto.c, line: 37, server: 192.168.10.113:22122, recv data fail, errno: 57, error info: Socket is not connected
[2014-10-31 08:19:01] INFO - local_host_ip_count: 2, 127.0.0.1 192.168.10.113
[2014-10-31 08:19:01] INFO - file: tracker_client_thread.c, line: 310, successfully connect to tracker server 192.168.10.113:22122, as a tracker client, my ip is 192.168.10.113 |
|