- 论坛徽章:
- 0
|
打字打了半天,发帖的时候告诉我没有权限发URL,然后累死写了半天的内容都没有。。。
最近需要做一个文件存储系统,在网上都推荐用FastDFS,就自己试着配了一下,配的过程中遇到了问题,不知道怎么解决,希望大神能帮忙看一下。
/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /var/www/api/web/images/photos/1/e4da3b7fbbce2345d7772b0674a318d5.jpg
This is FastDFS client test program v4.06
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.
[2014-11-26 16:15:37] DEBUG - base_path=/data/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0
tracker_query_storage_store_list_without_group:
server 1. group_name=, ip_addr=10.161.176.234, port=23000
group_name=group1, ip_addr=10.161.176.234, port=23000
[2014-11-26 16:15:37] ERROR - file: tracker_proto.c, line: 37, server: 10.161.176.234:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
storage_upload_by_filename
upload file fail, error no: 107, error info: Transport endpoint is not connected
tracker server IP:10.161.179.70
storage server IP:10.161.176.234
我去查看了一下storage server 的storaged.log
NFO - FastDFS v4.06, base_path=/data/fastdfs, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, port=23000, bind_addr=10.161.176.234, 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=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=80, 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, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2014-11-26 14:05:28] INFO - file: storage_param_getter.c, line: 187, 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=0, 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, store_slave_file_use_link=0
[2014-11-26 14:05:28] INFO - file: storage_func.c, line: 174, tracker_client_ip: 10.161.176.234, my_server_id_str: 10.161.176.234, g_server_id_in_filename: -357523190
[2014-11-26 14:05:29] INFO - local_host_ip_count: 3, 127.0.0.1 10.161.176.234 115.29.168.100
[2014-11-26 14:05:29] INFO - file: tracker_client_thread.c, line: 308, successfully connect to tracker server 10.161.179.70:22122, as a tracker client, my ip is 10.161.176.234
[2014-11-26 14:05:29] INFO - file: tracker_client_thread.c, line: 1124, tracker server 10.161.179.70:22122, set tracker leader: 10.161.179.70:22122
[2014-11-26 14:48:52] ERROR - file: storage_nio.c, line: 404, client ip: 10.161.179.70, recv failed, errno: 9, error info: Bad file descriptor
[2014-11-26 14:54:12] ERROR - file: storage_nio.c, line: 404, client ip: 10.161.179.70, recv failed, errno: 9, error info: Bad file descriptor
[2014-11-26 14:54:30] ERROR - file: storage_nio.c, line: 404, client ip: 10.161.179.70, recv failed, errno: 9, error info: Bad file descriptor
[2014-11-26 14:56:31] CRIT - file: fdfs_storaged.c, line: 453, catch signal 15, program exiting...
[2014-11-26 14:56:32] INFO - exit normally.
希望大神帮忙看一下。
顺便问一下,如何移除组下面的一台storage server |
|