简体   繁体   English

AWS EC2错误:-bash:无法为此处文档创建临时文件:设备上没有剩余空间

[英]AWS EC2 ERROR: -bash: cannot create temp file for here-document: No space left on device

I'm getting following error while doing tab. 做标签时出现以下错误。 And unable to change the files, can open the files but not able to save the files. 并且无法更改文件,可以打开文件但不能保存文件。 It looks like the server is working fine and long scripts are continuously executing and never ending. 看起来服务器工作正常,并且长脚本不断执行,而且永无止境。

ubuntu@ip-172-31-49-89:~$ cat /etc/issue.net
Ubuntu 14.04.4 LTS

ubuntu@ip-172-31-49-89:~$ uname -a    
Linux ip-172-31-49-89 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@ip-172-31-49-89:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            492M   12K  492M   1% /dev
tmpfs           100M  376K   99M   1% /run
/dev/xvda1       50G   47G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            497M     0  497M   0% /run/shm
none            100M     0  100M   0% /run/user

ubuntu@ip-172-31-49-89:~$ df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            125803    387  125416    1% /dev
tmpfs           127040    315  126725    1% /run
/dev/xvda1     3276800 134435 3142365    5% /
none            127040      2  127038    1% /sys/fs/cgroup
none            127040      1  127039    1% /run/lock
none            127040      1  127039    1% /run/shm
none            127040      2  127038    1% /run/user

ubuntu@ip-172-31-49-89:~$ cd new
-bash: cannot create temp file for here-document: No space left on device

What should I do now? 我现在应该怎么办? I just deleted my unnecessary founders and files. 我只是删除了不必要的创建者和文件。 Still the same error after some time. 一段时间后仍然是相同的错误。

I tried solving this issue and my tmp and log files are smaller: 我尝试解决此问题,但我的tmp和日志文件较小:

ubuntu@ip-172-31-49-89:~$ du -sh /tmp
1.3M    /tmp
ubuntu@ip-172-31-49-89:~$ du -sh /var/log
6.2M    /var/log

Well, you said it yourself: you disk is full: 好吧,你自己说:磁盘已满:

/dev/xvda1 50G 47G 0 100% /

Start investigating where you disk space is gone from the root folder: 开始调查根目录文件夹中磁盘空间的位置:

du -hs /* | sort -h

That should give a pretty good idea what's occupying most of the disk drive. 那应该给出一个很好的主意,即什么占据了大部分磁盘驱动器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM