Q:/fdfs_trackerd: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory
A:export LD_LIBRARY_PATH=/usr/loal/lib(libevent的安裝路徑,可以通過find來查找)
Q:Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
ifconfig: command not found
A:export PATH=$PATH:/sbin
Q:nginx@ubuntu:~/fastdfs/bak$ ./run_nginx.sh
/home/nginx/nginx/sbin/nginx: error while loading shared libraries: libfastcommon.so: cannot open shared object file: No such file or directory
A:找不到fastdfs的庫文件,因爲前面執行了 export LD_LIBRARY_PATH=/usr/loal/lib,所以 爲了使得使用方便,就把所有需要用到的LIB放在一起:
cp libf*.so /usr/local/lib
ls -l /usr/local/lib/libf* 如果沒有鏈接映射,就需要自己做一個或者把四個文件全部拷過去
sudo ln -sf /home/nginx/fastdfs/lib/libfastcommon.so.1 /usr/local/lib/libfastcommon.so
sudo ln -sf /home/nginx/fastdfs/lib/libfdfsclient.so.1 /usr/local/lib/libfdfsclient.so
注意:做軟鏈接的時候需要加絕對路徑,不然會出現黑色的提示。
Q:400 badrequest
[2011-12-12 15:24:21] ERROR - file: /tmp/fastdfs-nginx-module/src/common.c, line: 561, logic file: M00/00/00/wKgBNU7lqyjzJZ4mAA4CRXl5SCQ670.jpg not exists
2011/12/12 15:24:21 [error] 14147#0: *1 open() "/home/nginx/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.1.123, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.53:8090"
A:修改/fastdfs/conf/mod_fastdfs.conf
裏面url_have_group_name = true
Q:[2011-12-12 17:11:44] ERROR - file: /tmp/fastdfs-nginx-module/src/common.c, line: 561, logic file: M00/00/00/wKgBNU7lqyjzJZ4mAA4CRXl5SCQ670.jpg not exists
Q:404錯誤
nginx-erro:
2011/12/12 17:18:03 [error] 16640#0: *27 open() "/home/nginx/nginx/html/M00/00/00/wKgBNU7lqyjzJZ4mAA4CRXl5SCQ670.jpg" failed (2: No such file or directory), client: 192.168.1.123, server: localhost, request: "GET /M00/00/00/wKgBNU7lqyjzJZ4mAA4CRXl5SCQ670.jpg HTTP/1.1", host: "192.168.1.53:8090"
mod-fastdfs.log
2011-12-12 17:26:30] ERROR - file: storage_client.c, line: 1966, filename is too short, length: 40 < 44
A:老版本的一個bug,下載最近的無此類錯誤。
Q: 在tracker的日誌裏報出此類錯誤
ERROR - file: tracker_mem.c, line: 1406, the format of the file "/home/bstar/dfs_data/data/storage_sync_timestamp.dat" is invalid, group: group3, row count:1 > server count:0
A:修改data裏面的 storage_sync_timestamp.dat,把group3的信息刪掉,然後重啓tracker
Q:在啓動tracker的時候出現此類錯誤:
ERROR - file: ../common/fdfs_http_shared.c, line: 128, param "http.mime_types_filename" not exist or is empty
A:修改tracker.conf裏面,把##include http.conf 改爲#include http.conf ,再重啓
Q:ERROR - file: tracker_http_check.c, line: 132, http check alive, connect to http server 192.168.1.53:8888 fail, errno: 111, error info: Connection refused
A:端口不對。要配置storage和nginx端口一致/
Q:ERROR - file: /home/nginx/install/fastdfs-nginx-module/src/common.c, line: 561, logic file: M00/00/00/wKgBNU7wRbrcAYGuAALOPrGJ7YQ668.jpg not exists
A:apache和nginx擴展模塊版本v1.06及以上版本,需要在配置文件/etc/fdfs/fastdfs_mod.conf中設置storage server的存儲路徑信息。
一個示例如下所示:
store_path_count=1
store_path0=/home/yuqing/fastdfs
store_path_count和store_path#均需要正確設置,必須和storage.conf中的相應配置完全一致
Q: DEBUG - file: tracker_proto.c, line: 48, server: 192.168.1.51:22122, response status 28 != 0
tracker_query_storage fail, error no: 28, error info: No space left on device
A:空間不足
Q:EBUG - file: storage_disk_recovery.c, line: 699, disk recovery: begin recovery data path: /home/nginx/fastdfs ...
A:這個是數據遷移後的問題,這個需要之前配置的sub_dir的數目前後保持一致。