免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: happy_fish100
打印 上一主题 下一主题

[FastDFS] FastDFS FAQ (欢迎反馈,我将及时整理) [复制链接]

论坛徽章:
0
111 [报告]
发表于 2015-09-16 10:31 |只看该作者
余兄,我在做group集群时,不知道自己配置有误还是什么问题,有两个group,1和2.比如将文件上传到group1上面,通过浏览器group1/文件名可以访问到。但是改成group2/文件名  也可以访问到。我检查了一下group2下面的storage并没有该存储文件,是不是在group2下面没找到的时候,就根据文件名解析到源storageIP去进行查找。请教了

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-09-20 06:20:00
112 [报告]
发表于 2015-09-23 11:01 |只看该作者
storage的日志如下:
[2015-09-23 11:44:54] INFO - FastDFS v5.05, base_path=/storage, 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=, 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=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, log_file_keep_days=0, file_sync_skip_invalid_record=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s
[2015-09-23 11:44:54] 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=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, trunk_compress_binlog_min_interval=0, store_slave_file_use_link=0
[2015-09-23 11:44:54] INFO - file: storage_func.c, line: 254, tracker_client_ip: 192.168.1.92, my_server_id_str: 192.168.1.92, g_server_id_in_filename: 1543612608
[2015-09-23 11:44:54] ERROR - file: sockopt.c, line: 770, bind port 23000 failed, errno: 98, error info: Address already in use.
[2015-09-23 11:44:54] CRIT - exit abnormally!
tracker的日志如下:
[2015-09-23 11:44:44] INFO - FastDFS v5.05, base_path=/tracker, 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=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, 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
[2015-09-23 11:44:44] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.1.92
[2015-09-23 11:44:44] ERROR - file: sockopt.c, line: 770, bind port 22122 failed, errno: 98, error info: Address already in use.
[2015-09-23 11:44:44] CRIT - exit abnormally!
nginx的错误日志如下:
[2015-09-23 11:25:41] ERROR - file: /usr/local/fastdfs-nginx-module/src/common.c, line: 103, section: group1, you must set parameter: group_name!
2015/09/23 11:25:41 [alert] 6110#0: worker process 6111 exited with fatal code 2 and cannot be respawned
ngx_http_fastdfs_process_init pid=6122
[2015-09-23 11:31:31] ERROR - file: /usr/local/fastdfs-nginx-module/src/common.c, line: 103, section: group1, you must set parameter: group_name!
2015/09/23 11:31:31 [alert] 6121#0: worker process 6122 exited with fatal code 2 and cannot be respawned




现在192.168.1.92:80网页打不开  应该怎么修改错误呢  

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-09-26 06:20:00
113 [报告]
发表于 2015-09-23 17:53 |只看该作者
您好,group1 中 2台storage 配置fastdht后, 运行正常,

我在group1 中再次添加2台storage, storage中data目录大小与原2台storage相同, 但是 fdht目录中的__db.001 __db.002 __db.003  data目录大小都不同,

[2015-09-23 17:50:22] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.74:11411 not the sync src server!
[2015-09-23 17:50:22] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.71:11411 not the sync src server!
[2015-09-23 17:50:23] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.72:11411 not the sync src server!
[2015-09-23 17:50:23] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.74:11411 not the sync src server!
[2015-09-23 17:50:23] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.71:11411 not the sync src server!
[2015-09-23 17:50:24] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.72:11411 not the sync src server!
[2015-09-23 17:50:24] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.74:11411 not the sync src server!
[2015-09-23 17:50:24] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.71:11411 not the sync src server!
[2015-09-23 17:50:25] ERROR - file: work_thread.c, line: 1576, server: 192.168.30.72:11411 not the sync src server!

本机是192.168.30.73, 不能从其他3台机器上 同步fdht目录数据,请帮忙解答一下

论坛徽章:
0
114 [报告]
发表于 2015-11-12 15:59 |只看该作者
余大,想知道,现在fastdfs 现在有好的监控工具没

论坛徽章:
0
115 [报告]
发表于 2015-11-16 14:24 |只看该作者
那位大神知道    java.io.IOException: recv cmd: 32 is not correct, expect cmd: 100 这个问题要怎么解决呢

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-11-07 06:20:00
116 [报告]
发表于 2015-11-17 17:19 |只看该作者
您好,我想请教一个一直疑惑的问题,
同组内我有两台storage 机器 storage 1 和 storage 2 上面通过nginx 模块来负载这两台机器
假设文件上传到机器storage 1 我直接通过nginx 模块访问 机器storage 2 的时候会不会存在时间差导致404出现?

论坛徽章:
0
117 [报告]
发表于 2015-11-18 19:54 |只看该作者
请问Java客户端上传文件的时候报这个错,怎么解决- java.io.IOException: recv package size -1 != 10

论坛徽章:
0
118 [报告]
发表于 2015-11-18 19:56 |只看该作者
请问Java客户端上传文件的时候报这个错,怎么解决- java.io.IOException: recv package size -1 != 10

论坛徽章:
0
119 [报告]
发表于 2015-11-24 19:19 |只看该作者
回复 54# 豆腐兵

您好,请问 python api的问题
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/fdfs_client/client.py", line 83, in upload_by_filename
store_serv = tc.tracker_query_storage_stor_without_group()
File "/usr/lib64/python2.6/site-packages/fdfs_client/tracker_client.py", line 382, in tracker_query_storage_stor_without_group
raise DataError('[-] Error: %d, %s' % (th.status, os.strerror(th.status)))
fdfs_client.exceptions.DataError: [-] Error: 2, No such file or directory
您是怎么解决的呢?
我现在用这个api的时候也出现这样的错误,不过是在使用它上传从文件的时候,上传主文件的时候可以上传成功,错误如下:
Traceback (most recent call last):
  File "test.py", line 35, in upload_file
    slave_res=client.upload_slave_by_filename(slaveFilePath,master_fileId,"-html")
  File "/usr/local/lib/python2.7/site-packages/fdfs_client/client.py", line 162, in upload_slave_by_filename
    meta_dict = None)
  File "/usr/local/lib/python2.7/site-packages/fdfs_client/storage_client.py", line 289, in storage_upload_slave_by_filename
    file_ext_name)
  File "/usr/local/lib/python2.7/site-packages/fdfs_client/storage_client.py", line 217, in _storage_do_upload_file
    raise DataError('[-] Error: %d, %s' % (th.status, os.strerror(th.status)))
DataError: [-] Error: 2, No such file or directory

这是我在重装系统之后重新配置后运行时报的错,之前一直没问题,还请不吝赐教,谢谢。

论坛徽章:
0
120 [报告]
发表于 2015-11-24 19:22 |只看该作者
回复 84# chaichai543
可以,我试过


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP