惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security Affairs
N
News and Events Feed by Topic
T
Tenable Blog
P
Proofpoint News Feed
W
WeLiveSecurity
Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
Help Net Security
Help Net Security
I
Intezer
T
Threat Research - Cisco Blogs
S
Secure Thoughts
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
Google Online Security Blog
Google Online Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tor Project blog
N
News | PayPal Newsroom
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
A
Arctic Wolf
Forbes - Security
Forbes - Security
O
OpenAI News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Latest
Security Latest
P
Palo Alto Networks Blog
S
Schneier on Security
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
H
Heimdal Security Blog
V
Vulnerabilities – Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园_首页
T
Troy Hunt's Blog
Latest news
Latest news
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
L
LINUX DO - 热门话题
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
V
Visual Studio Blog
H
Hacker News: Front Page

博客园 - 三国梦回

spring boot 项目中oracle datasource设置schema spring cloud项目中,在bootstrap.yml中指定了active的profile,结果不生效 线上服务重启后,从nacos取不到配置了,怎么回事 nginx location没学好,把自己坑了一把 技术问题记录20260125 最近遇到的两个技术问题记录 线上遇到的redis和数据库数据未同步问题、redisson内部实现问题 复杂业务系统线上问题排查过程 nacos中配了一个数字,springboot取回来怎么变了 一个java空指针异常的解决过程 简单记录下最近2个月完成的线上系统迁移工作 centos停服,迁移centos7.3系统到新搭建的openEuler 端口telnet不通排查过程 https证书中的subject alternative name字段作用及如何生成含该字段的证书 linux中如何判断一个rpm是手动安装还是通过yum安装的 对接服务升级后仅支持tls1.2,jdk1.7默认使用tls1.0,导致调用失败 网络抓包文件太大,如何切分 分页查询不加排序有问题,加了排序怎么还有问题 利用mybatis拦截器记录sql,辅助我们建立索引(二) 利用mybatis拦截器记录sql,辅助我们建立索引(一) sql server版本太老,java客户端连接失败问题定位
linux服务器文件上传失败
三国梦回 · 2025-12-10 · via 博客园 - 三国梦回

背景

我们这边的项目基本都是前后端分离,nginx服务器上存放前端代码并反向代理接口。一般来说,是jenkins自动构建前端包;不过我新接手的某个项目是前端同事自己在本地打包后上传到nginx服务器的对应目录下。

昨天前端同事给我反馈说,上传到某个目录下(/opt/xxx)失败,发了个截图给我,问我是不是服务器弄了什么权限:

image-20251210170640821

问了下,上传用的finalShell。

解决过程

我就直接过去看他操作,发现确实不行。

我ssh登了下,试了下上传文件,也没报错,但就是传不上去,我用的是windterm。不只是/opt/xxx这个目录,其他目录也不行。

以为真是什么权限问题,拿下面这个在网上搜索了半天,感觉都不太对:

Authorized users only. All activities may be monitored and reported

然后,我给他发了个winscp,让他试试上传。

这次是这样,winscp用sftp登录linux服务器时,也提示:

image-20251210170640821

不过可以跳过。然后上传文件,弹框报错:

General failure (server should provide error description).
Error code: 4
Error message from server: Failure

Common reasons for the Error code 4 are:
- Renaming a file to a name of already existing file.
- Creating a directory that already exists.
- Moving a remote file to a different filesystem (HDD).
- Uploading a file to a full filesystem (HDD).
- Exceeding a user disk quota.

我这时候,还是一边查网上,一边看这个报错,注意到上述的倒数第二句:

- Uploading a file to a full filesystem (HDD).

难道是磁盘满了吗?

但是一般磁盘满了的话,在服务器上输命令时,一般命令的自动补齐都会报错,这次并没有,所以才没想那么多。

不过这个提示的话,我就看了下,还真他么磁盘满了:

image-20251210171608394

然后就是查找了下大文件,发现下图所示,有两个日志文件都几十个g了(机器上有后台java服务,启动时没把标准输出写到/dev/null):

image-20251210171633047

rm把文件删了,发现磁盘空间还是没释放,还是重启了下java服务,就可以了。