爱萝莉真是太好了 爱萝莉真是太好了

努力让自己变得更优秀呀!

目录
记录一次fdfs上传失败,错误码28的问题
/  

记录一次fdfs上传失败,错误码28的问题

上传文件时异常

1org.csource.common.MyException: getStoreStorage fail, errno code: 28
2	at org.csource.fastdfs.StorageClient.newWritableStorageConnection(StorageClient.java:1629)
3	at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:639)
4	at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:162)
5	at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:180)
6	at org.csource.fastdfs.StorageClient1.upload_file1(StorageClient1.java:103)

这个报错是 tracker 的一个配置原因

 1# reserved storage space for system or other applications.
 2# if the free(available) space of any stoarge server in 
 3# a group <= reserved_storage_space, 
 4# no file can be uploaded to this group.
 5# bytes unit can be one of follows:
 6### G or g for gigabyte(GB)
 7### M or m for megabyte(MB)
 8### K or k for kilobyte(KB)
 9### no unit for byte(B)
10### XX.XX% as ratio such as reserved_storage_space = 10%
11reserved_storage_space = 10%

这个配置的含义是 storage 上的剩余磁盘空间必须是 10% 以上才能上传成功

解决方案:1.修改配置 2.扩大磁盘存储 3.删掉一些垃圾文件


标题:记录一次fdfs上传失败,错误码28的问题
地址:https://www.1-love.cn/FastDFS-errorCode-28