免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6732 | 回复: 5
打印 上一主题 下一主题

[FastDFS] ngnix 加入fastdfs-nginx-module出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-01-09 16:06 |只看该作者 |倒序浏览
通过查看nginx可以看到启动nginx时就报如下错误。
/usr/fastdfs-nginx-module/src//common.c, line: 103, section: group1, you must set parameter: group_name!

通过错误,我检查了mod_fastdfs.conf和storage.conf,已经确定group_name=group1.

目前通过客户端,可以确定tracker和storage可以正常运行

论坛徽章:
0
2 [报告]
发表于 2014-01-09 16:17 |只看该作者
回复 1# myheartcalmdown

[root@test002 usr]# /usr/local/bin/fdfs_test /etc/fdfs/client.conf  upload  test.txt
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-01-09 16:11:08] DEBUG - base_path=/home/fastdfs/storage, connect_timeout=30, network_timeout=60, tracker_server_count=2, 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=192.168.41.160, port=23000

group_name=group1, ip_addr=192.168.41.160, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKgpoFLOWZyAanbIAAAADXj9r-s191.txt
source ip address: 192.168.41.160
file timestamp=2014-01-09 16:11:08
file size=13
file crc32=2029891563
file url: http://192.168.41.144/group1/M00 ... IAAAADXj9r-s191.txt
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKgpoFLOWZyAanbIAAAADXj9r-s191_big.txt
source ip address: 192.168.41.160
file timestamp=2014-01-09 16:11:08
file size=13
file crc32=2029891563
file url: http://192.168.41.144/group1/M00 ... ADXj9r-s191_big.txt

上传正常,返回的路径明明有group1


   

论坛徽章:
0
3 [报告]
发表于 2014-01-09 17:19 |只看该作者
搞定通过看源码,排查到问题。是groupcount配置错误

论坛徽章:
0
4 [报告]
发表于 2014-02-27 19:39 |只看该作者
myheartcalmdown 发表于 2014-01-09 17:19
搞定通过看源码,排查到问题。是groupcount配置错误



请问楼上是怎么改的,我也遇到了,百思不得其解...

论坛徽章:
0
5 [报告]
发表于 2014-03-14 11:16 |只看该作者
回复 4# luxr123
我是修改mod_fastdfs.conf里面的配置解决的。
group_count=2
[group1]
group_name=group1
storage_server_port=23000
store_path_count=1
store_path0=/home/fastdfs/storage
[group2]
group_name=group2
storage_server_port=23000
store_path_count=1
store_path0=/home/fastdfs/storage

   

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-04-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-26 06:20:00
6 [报告]
发表于 2016-04-09 18:20 |只看该作者
其实 error.log说的挺清楚了。我是粗心,没有全部打开注释,[group1]这个标签忘了打开了。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP