RobertWang / fastdfs

Automatically exported from code.google.com/p/fastdfs
GNU General Public License v3.0
1 stars 0 forks source link

在AIX 6.1操作系统上,无法上传文件?? #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
错误如下:
ERROR - file: tracker_nio.c, line: 82, call read failed, errno: 0, error info: 
Error 0

请帮忙看一下,哪里有问题了,十分感谢!

Original issue reported on code.google.com by ddsw0...@gmail.com on 6 Apr 2012 at 2:50

GoogleCodeExporter commented 9 years ago
这个问题很诡异啊!
只在Linux和FreeBSD做过测试,其他Unix系统不保证正确性。

Original comment by happyfis...@gmail.com on 6 Apr 2012 at 9:20

GoogleCodeExporter commented 9 years ago
是呀,没看出问题在哪,目前没有在AIX上的使用案例吗?如��
�没有,能否找个环境测试一下,对您的这个产品很欣赏,但�
��力有限,解决不了这个问题,但确实很想使用你这个产品!

Original comment by ddsw0...@gmail.com on 6 Apr 2012 at 10:51

GoogleCodeExporter commented 9 years ago
AIX 5.3(64) + gcc 4.2.0.3 + libevent1.4.14b
fastdfs 3.0.6   3.0.7

Storgae启动时,storged.log:
[2012-05-14 15:29:37] INFO - local_host_ip_count: 3,  127.0.0.1  192.168.1.12  
192.168.5.12
[2012-05-14 15:29:38] INFO - file: tracker_client_thread.c, line: 307, 
successfully connect to tracker server 192.168.1.12:22122, as a tracker client, 
my ip is 192.168.1.12
[2012-05-14 15:29:38] INFO - file: tracker_client_thread.c, line: 1103, tracker 
server 192.168.1.12:22122, set tracker leader: 192.168.1.12:22122

Storage启动时,tracker.log:
[2012-05-14 15:26:15] INFO - FastDFS v3.07, base_path=/fastdfs/FastDFS_Tracker, 
run_by_group=, run_by_user=, connect_timeout=30s, network_timeout=60s, 
port=22122, bind_addr=, max_connections=256, work_threads=4, store_lookup=2, 
store_group=, store_server=0, store_path=0, reserved_storage_space=1024MB, 
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
[2012-05-14 15:26:15] ERROR - file: ../common/sockopt.c, line: 1549, max_count: 
4 < iterface count: 17
[2012-05-14 15:26:15] INFO - local_host_ip_count: 3,  127.0.0.1  192.168.1.12  
192.168.5.12
[2012-05-14 15:26:23] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:23] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:23] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:25] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:25] INFO - file: tracker_relationship.c, line: 374, selecting 
leader...
[2012-05-14 15:26:25] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:25] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:25] ERROR - file: tracker_nio.c, line: 82, call read failed, 
errno: 0, error info: Error 0
[2012-05-14 15:26:25] INFO - file: tracker_relationship.c, line: 392, I am the 
new tracker leader 192.168.1.12:22122

Cygwin上传时:(Cygwin向Linux上传文件OK)
Peizf@Peizf-PC /usr/local/bin
$ ./fdfs_test /src/FastDFS/conf/client.conf upload /src/ass109.awk
This is FastDFS client test program v3.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.

[2012-05-14 15:39:21] INFO - base_path=/src/FastDFS_Client, connect_timeout=30, 
network_timeout=60, tracker_server_count=1, anti_steal_token=0, 
anti_steal_secret_key length=0

tracker_query_storage_store_list_without_group:
        server 1. group_name=group1, ip_addr=192.168.1.12, port=23000

group_name=group1, ip_addr=192.168.1.12, port=23000
[2012-05-14 15:39:21] ERROR - file: tracker_proto.c, line: 37, server: 
192.168.1.12:23000, recv data fail, errno: 128, error info: Transport endpoint 
is not connected
storage_upload_by_filename
upload file fail, error no: 128, error info: Transport endpoint is not connected
[2012-05-14 15:39:21] ERROR - file: tracker_proto.c, line: 154, tracker server: 
192.168.1.12:23000, send data fail, errno: 9, error info: Bad file descriptor

Original comment by zhengfen...@gmail.com on 14 May 2012 at 7:40

GoogleCodeExporter commented 9 years ago
其中在编译libevent时,修改了如下地方:

//#ifndef _EVENT_HAVE_FD_MASK
/* This type is mandatory, but Android doesn't define it. */
/*
#undef NFDBITS
#define NFDBITS (sizeof(long)*8)
typedef unsigned long fd_mask;
#endif
*/

修改后libevent编译通过

Original comment by zhengfen...@gmail.com on 14 May 2012 at 7:41