免费注册 查看新帖 |

Chinaunix

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

[FastDFS] tracker不能启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2018-06-28 16:23 |只看该作者 |倒序浏览
一台IBM power服务器,操作系统CentOS 7 altarch

[root@localhost init.d]# /etc/init.d/fdfs_trackerd start #启动tracker服务
Reloading systemd:                                         [  OK  ]
Starting fdfs_trackerd (via systemctl):                    [  OK  ]
[root@localhost init.d]# ps -ef | grep fdfs
root     26845 26785  0 15:59 pts/0    00:00:00 grep --color=auto fdfs
[root@localhost init.d]# cd /fastdfs/tracker/logs/
[root@localhost logs]# ls
trackerd.log
[root@localhost logs]# tail trackerd.log
[2018-06-28 15:58:31] INFO - FastDFS v5.12, base_path=/fastdfs/tracker, run_by_group=, run_by_user=, connect_timeout=10s, network_timeout=60s, port=22122, bind_addr=, max_connections=1024, accept_threads=1, work_threads=4, min_buff_size=8192, max_buff_size=131072, 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
[2018-06-28 15:58:31] ERROR - file: pthread_func.c, line: 121, call pthread_attr_setstacksize fail, errno: 22, error info: Invalid argument
[2018-06-28 15:58:31] ERROR - file: tracker_service.c, line: 78, init_pthread_attr fail, program exit!
[2018-06-28 15:58:31] CRIT - exit abnormally!

tracker.png (40.44 KB, 下载次数: 87)

tracker.png

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2018-06-29 10:27 |只看该作者
thread_stack_size=64 KB
可能是这个参数设置小了,你把这个参数加大到 256KB或者更大试试?

论坛徽章:
0
3 [报告]
发表于 2018-06-29 17:31 |只看该作者
回复 2# happy_fish100

加大之后依然启动不了。日志变得完全没有输出。

论坛徽章:
0
4 [报告]
发表于 2018-06-29 18:52 |只看该作者
新装了一下。
thread_stack_size=512KB,不能启动。

[2018-06-29 18:52:03] INFO - FastDFS v5.12, base_path=/fastdfs/tracker, run_by_group=, run_by_user=, connect_timeout=10s, network_timeout=60s, port=22122, bind_addr=, max_connections=1024, accept_threads=1, work_threads=4, min_buff_size=8192, max_buff_size=131072, 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=512 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
~                                                                                                                                                                                                  
~                                                                                                                                                                                                  
~                                   

论坛徽章:
0
5 [报告]
发表于 2018-06-30 14:55 |只看该作者
重启服务器后貌似tracker能启动了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP