happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

使用libfastcommon-1.0.72版本, storage启动是提示tracker内网IPv6(fe80开头)地址无效的参数Invalid argument #694

Open liukang58 opened 4 months ago

liukang58 commented 4 months ago

使用ipv6部署时,libfastcommon使用1.0.72版本时,任然报地址无效的参数Invalid argument错误 版本信息:fastdfs-6.12.0 libserverframe-1.2.2 libfastcommon-1.0.72 storage.conf配置: tracker_server = [fe80:0000:0000:0000:020c:29ff:fe8e:457c]:22122 启动storage日志: [2024-02-19 14:40:00] INFO - FastDFS v6.12.0, base_path=/opt/fastdfs/storage/log, max_connections=1024, connect_timeout=5, network_timeout=60, thread_stack_size=512 KB, buff_size=256 KB, tcp_quick_ack=1, log_level=INFO, run_by_group=, run_by_user=, error-log: {sync_log_buff_interval=1, rotate_everyday=1, rotate_time=00:00, rotate_on_size=0, compress_old=0, compress_days_before=1, keep_days=0, delete_old_time=01:30}, port=23000, bind_addr=, address_family=IPv6, accept_threads=1, work_threads=4, store_path_count=1, subdir_count_per_path=256, group_name=group1, client_bind=1, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, disk_recovery_threads=3, 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_binlog_buff_interval=1s, sync_stat_file_interval=300s, 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, compress_old_access_log=0, compress_access_log_days_before=7, rotate_access_log_size=0, file_sync_skip_invalid_record=0, use_connection_pool=1, g_connection_pool_max_idle_time=3600s, compress_binlog=1, compress_binlog_time=01:30, check_store_path_mark=1 [2024-02-19 14:40:15] ERROR - file: storage_ip_changed_dealer.c, line: 165, connect to tracker server fe80:0000:0000:0000:020c:29ff:fe8e:457c:22122 fail, errno: 22, error info: Invalid argument

liukang58 commented 4 months ago

image 我看您之前的信息说2023年12月说修复了,但是我部署测试了加 %网络接口名 任然不行,麻烦帮忙确认下

happyfish100 commented 4 months ago

fe80:0000:0000:0000:020c:29ff:fe8e:457c 这个IPv6地址,建议采用缩写格式:fe80::20c:29ff:fe8e:457c 还要加上后缀 %对应网卡的网络接口名,通过 ifconfig -a 或者 ip a 可以查看对应的网络接口。

happyfish100 commented 4 months ago

另外,FastDFS要使用最新的 V6.12