RealPath failed (0x00000002): The system cannot find the file specified.

环境:ubuntu20.04

跑着程序,突然验证码出不来了。用的是hutool生成

RealPath failed (0x00000002): The system cannot find the file specified._第1张图片

 

意思是没法创建缓存目录。那就自己建立一个。结果整个/usr 下建立都这个问题。

RealPath failed (0x00000002): The system cannot find the file specified._第2张图片

 

最终发现,/usr下其他目录有个二个程序,拥有超级大的日志。直接把这个目录的磁盘占满了。

删除日志即可。

你可能感兴趣的:(运维,Ubuntu)