errno2:no such file or directory
errno3:no such process
errno4:interrupted system call
errno5:input/output error
errno6:no such device or address
errno7:argument list too long
errno8:exec format error
errno9:bad file descriptor
errno 10:no child processes
errno 11:resource temporarily unavailable
errno 12:cannot allocate memory
errno 13:permission denied
errno 14:bad address
errno 15:block device required
errno 16:device or resource busy
errno 17:file exists
errno 18:invalid cross-device link
errno 19:no such device
errno 20:not a directory
errno 21:is a directory
errno 22:invalid argument
errno 23:too many open files in system
errno 24:too many open files
errno 25:inappropriate ioctl for device
errno 26:text file busy
errno 27:file too large
errno 28:no space left on device
errno 29:illegal seek
errno 30:read-only file system
errno 31:too many links
errno 32:broken pipe
errno 33:numerical argument out of domain
errno 34:numerical result out of range
errno 35:resource deadlock avoided
errno 36:file name too long
errno 37:no locks available
errno 38:function not implemented
errno 39:directory not empty
errno 40:too many levels of symbolic links
errno 41:errno 41
errno 42:no message of desired type
errno 43:identifier removed
errno 44:channel number out of range
errno 45:level 2 not synchronized
errno 46:level 3 halted
errno 47:level 3 reset
errno 48:link number out of range
errno 49:protocol driver not attached
errno 50:no CSI structure available
errno 51:level 2 halted
errno 52:invalid exchange
errno 53:invalid request descriptor
errno 54:exchange full
errno 55:no anode
errno 56:invalid request code
errno 57:invalid slot
errno 58:errno 58
errno 59:bad font file format
errno 60:device not a stream
errno 61:no data available
errno 62:timer expired
errno 63:out of streams resources
errno 64:machine is not on the network
errno 65:package not installed
errno 66:object is remote
errno 67:link has been severed
errno 68:advertise error
errno 69:srmount error
errno 70:communication error on send
errno 71:protocol error
errno 72:multihop attempted
errno 73:RFS specific error
errno 74:bad message
errno 75:value too large for defined data type
errno 76:name not unique on network
errno 77:file descriptor in bad state
errno 78:remote address changed
errno 79:can not access a needed shared library
errno 80:accessing a corrupted shared library
errno 81:.lib section in a.out corrupted
errno 82:attempting to link in too many shared libraries
errno 83:cannot exec a shared library directly
errno 84:invalid or incomplete multibyte or wide character
errno 85:interrupted system call should be restarted
errno 86:streams pipe error
errno 87:too many users
errno 88:socket operation on non-socket
errno 89:destination address required
errno 90:message too long
errno 91:protocol wrong type for socket
errno 92:protocol not available
errno 93:protocol not supported
errno 94:socket type not supported
errno 95:operation not supported
errno 96:protocol family not supported
errno 97:address family not supported by protocol
errno 98:address already in use
errno 99:cannot assign requested address
errno 100:network is down
errno 101:network is unreachable
errno 102:network dropped connection on reset
errno 103:software caused connection abort
errno 104:connection reset by peer
errno 105:no buffer space available
errno 106:transport endpoint is already connected
errno 107:transport endpoint is not connected
errno 108:cannot send after transport endpoint shutdown
errno 109:too many references: cannot splice
errno 110:connection timed out
errno 111:connection refused
errno 112:host is down
errno 113:no route to host
errno 114:operation already in progress
errno 115:operation now in progress
errno 116:stale NFS file handle
errno 117:structure needs cleaning
errno 118:not a XENIX named type file
errno 119:no XENIX semaphores available
errno 120:is a named type file
errno 121:remote I/O error
errno 122:disk quota exceeded
errno 123:no medium found
errno 124:wrong medium type
errno 125:operation canceled
errno 126:required key not available
errno 127:key has expired
errno 128:key has been revoked
errno 129:key was rejected by service
errno 130:owner died
errno 131:state not recoverable
errno 132:operation not possible due to RF-kill
1. FastDFS适用的场景以及不适用的场景?FastDFS是为互联网应用量身定做的一套分布式文件存储系统,非常适合用来存储用户图片、视频、文档等文件。对于互联网应用,和其他分布式文件系统相比,优势非常明显。
FastDFS没有对文件做分块存储,因此不太适合分布式计算场景。
2. 当用fdfs_monitor /etc/fdfs/storage.conf 这个命令进行查看tracker与storage端是否建立连接时,两端始终显示都是offline。
解决:先查看tracker和storage的日志,确认服务是否有问题;如果日志显示正常,则有可能是在 *** 作过程中,删除了tracker或storage某一方的缓存文件,导致缓存不匹配。此时,先关闭tracker和storage服务,
删除tracker.conf和storage.conf中指定的base_path目录下的data文件,再重启服务即可。
注意:如果删除了FastDHT 的base_path目录下的文件,切片集信息将全部丢失。
3. 在上传文件时,出现 ERROR - file: tracker_proto.c, line: 48, server: 101.200.215.232:23000, response status 28 != 0
解决:状态返回28,说明磁盘空间不足,注意FastDFS中有预留空间的概念,在tracker.conf中设置,配置项为:reserved_storage_space,缺省值为4GB,即预留4GB的空间。
请酌情设置reserved_storage_space这个参数,比如可以设置为磁盘总空间的20%左右可以修改/etc/fdfs/tracker.conf文件
4. 执行fdfs_test或fdfs_test1上传文件时,服务器返回错误号2
解决:状态返回2表示没有ACTIVE状态的storage server。可以执行fdfs_monitor查看服务器状态。
5. ERROR - file: /home/nginx/install/fastdfs-nginx-module/src/common.c, line: 561, logic file: M00/00/00/wKgBNU7wRbrcAYGuAALOPrGJ7YQ668.jpg not exists
解决: 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中的相应配置完全一致
6. nginx和apache扩展模块与FastDFS server版本对应关系
解决:扩展模块1.05: 针对FastDFs server v2.x,要求server版本大于等于v2.09
扩展模块1.07及以上版本: 针对FastDFs server v3.x
7. nginx扩展模块,不能正常显示图片的问题
解决:在配置文件/etc/fdfs/mod_fastdfs.conf中,缺省的设置是这样的:http.need_find_content_type=false这个参数在nginx中需要设置为true,apache中应该设置为false。
8. 分布式切图时,控制台为什么会提示“No buffer space available (maximum connections reached?):connect”?38error.png
解决:分布式切图过程中,向 FastDFS 存储上传切片时,占用的端口数增多,可能会达到本地 *** 作系统的端口数的上限,所以出现上述问题。可通过如下方式规避:
Windows 系统
运行 “regedit.exe”,打开注册表,找到 “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters”位置,添加“TcpTimedWaitDelay”,类型为DWORD,值为30;
添加“MaxUserPort”,类型为DWORD,值为20000(调大系统可用端口数)。
Linux 系统
运行 “vi /etc/sysctl.conf”,编辑文件,加入以下内容:
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
然后执行“/sbin/sysctl -p”让参数生效即可。
9. 在启动tracker的时候出现此类错误:ERROR - file: ../common/fdfs_http_shared.c, line: 128, param "http.mime_types_filename" not exist or is empty
解决:修改tracker.conf里面,把##include http.conf 改为#include http.conf ,再重启
10. 报错 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
解决:端口不对。要配置storage和nginx端口一致。
11. 报错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"
解决:修改/fastdfs/conf/mod_fastdfs.conf 里面url_have_group_name = true
12. 在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
解决:修改data里面的 storage_sync_timestamp.dat,把group3的信息删掉,然后重启tracker
13. 如何删除无效的storage server?
解决:可以使用fdfs_monitor来删除。命令行如下:
/usr/local/bin/fdfs_monitor delete
例如:/usr/local/bin/fdfs_monitor /etc/fdfs/client.conf delete group1 192.168.0.100
注意:如果被删除的storage server的状态是ACTIVE,也就是该storage server还在线上服务的情况下,是无法删除掉的
你的servaddr里的IP地址或PORT端口号设置错了吧。服务端和客户端的简单里子请参考:
http://blog.csdn.net/flynetcn/article/details/5829258
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)