淦,前端上传视频时报错,一直报 java.net.SocketException: Connection reset by peer: socket write error,排除了半天,看了看fastfds日志
[2020-11-11 10:52:18] ERROR - file: storage_nio.c, line: 371, client ip: 192.168.126.28, pkg length: -183248834550325426 < 0
[2020-11-11 10:56:19] ERROR - file: storage_service.c, line: 4529, no space to upload file, free space: 953 MB is too small, file bytes: 3755916, reserved space: 952 MB(10.00%)
[2020-11-11 10:56:19] ERROR - file: storage_service.c, line: 8069, client ip: 192.168.126.28, unkown cmd: -40
日,原来是空间不够了,找了个删除脚本
#!/bin/bash
#删除文件
#解释 找到/FastDFDS/FastDFS 目录下 30 天前修改的 名字任意 并删除
find /usr/local/program/fastDFS/storageData/data -mtime +15 -name "*.*" -exec rm -rf {} \;
#删除文件夹
#find /data2/fastdfs/fastdfs_storage_data/data -mtime +1 -name "*" -type d -exec rm -rf {} \ ;
删完了就可以了,啊淦!
来源:oschina
链接:https://my.oschina.net/u/3834527/blog/4712331