Tab completion errors: bash: cannot create temp file for here-document: No space left on device
When using the tab bar, I keep getting this error:
bash: cannot create temp file for here-document: No space left on device"
Any ideas?
I have been doing some research, and many people talk about the /tmp file, which might be having some overflow. When I execute df -h I get:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.1G 8.7G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 618M 8.8M 609M 2% /run
tmpfs 1.6G 0 1.6G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup
/dev/sda1 511M 132K 511M 1% /boot/efi
/dev/sda4 1.8T 623G 1.1T 37% /home
tmpfs 309M 4.0K 309M 1% /run/user/116
tmpfs 309M 0 309M 0% /run/user/1000
It looks like the /dev/data directory is about to explode, however if I tip:
$ du -sh /dev/sda2
0 /dev/sda2
It seems it's empty.
I am new in Debian and I really don't know how to proceed. I used to typically access this computer via ssh. Besides this problem I have several others with this computer, they might be related, for instance each time I want to enter my user using the GUI (with root it works) I get:
Xsession: warning: unable to write to /tmp: Xsession may exit with an error
debian shell ssh tmp
add a comment |
When using the tab bar, I keep getting this error:
bash: cannot create temp file for here-document: No space left on device"
Any ideas?
I have been doing some research, and many people talk about the /tmp file, which might be having some overflow. When I execute df -h I get:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.1G 8.7G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 618M 8.8M 609M 2% /run
tmpfs 1.6G 0 1.6G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup
/dev/sda1 511M 132K 511M 1% /boot/efi
/dev/sda4 1.8T 623G 1.1T 37% /home
tmpfs 309M 4.0K 309M 1% /run/user/116
tmpfs 309M 0 309M 0% /run/user/1000
It looks like the /dev/data directory is about to explode, however if I tip:
$ du -sh /dev/sda2
0 /dev/sda2
It seems it's empty.
I am new in Debian and I really don't know how to proceed. I used to typically access this computer via ssh. Besides this problem I have several others with this computer, they might be related, for instance each time I want to enter my user using the GUI (with root it works) I get:
Xsession: warning: unable to write to /tmp: Xsession may exit with an error
debian shell ssh tmp
2
You want to run something likedu -hxd1 /, notdu /dev/sda2./dev/sda2doesn't really exist on disk.
– muru
Apr 18 '16 at 22:13
add a comment |
When using the tab bar, I keep getting this error:
bash: cannot create temp file for here-document: No space left on device"
Any ideas?
I have been doing some research, and many people talk about the /tmp file, which might be having some overflow. When I execute df -h I get:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.1G 8.7G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 618M 8.8M 609M 2% /run
tmpfs 1.6G 0 1.6G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup
/dev/sda1 511M 132K 511M 1% /boot/efi
/dev/sda4 1.8T 623G 1.1T 37% /home
tmpfs 309M 4.0K 309M 1% /run/user/116
tmpfs 309M 0 309M 0% /run/user/1000
It looks like the /dev/data directory is about to explode, however if I tip:
$ du -sh /dev/sda2
0 /dev/sda2
It seems it's empty.
I am new in Debian and I really don't know how to proceed. I used to typically access this computer via ssh. Besides this problem I have several others with this computer, they might be related, for instance each time I want to enter my user using the GUI (with root it works) I get:
Xsession: warning: unable to write to /tmp: Xsession may exit with an error
debian shell ssh tmp
When using the tab bar, I keep getting this error:
bash: cannot create temp file for here-document: No space left on device"
Any ideas?
I have been doing some research, and many people talk about the /tmp file, which might be having some overflow. When I execute df -h I get:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.1G 8.7G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 618M 8.8M 609M 2% /run
tmpfs 1.6G 0 1.6G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup
/dev/sda1 511M 132K 511M 1% /boot/efi
/dev/sda4 1.8T 623G 1.1T 37% /home
tmpfs 309M 4.0K 309M 1% /run/user/116
tmpfs 309M 0 309M 0% /run/user/1000
It looks like the /dev/data directory is about to explode, however if I tip:
$ du -sh /dev/sda2
0 /dev/sda2
It seems it's empty.
I am new in Debian and I really don't know how to proceed. I used to typically access this computer via ssh. Besides this problem I have several others with this computer, they might be related, for instance each time I want to enter my user using the GUI (with root it works) I get:
Xsession: warning: unable to write to /tmp: Xsession may exit with an error
debian shell ssh tmp
debian shell ssh tmp
edited Nov 19 '17 at 19:37
Evan Carroll
5,499104381
5,499104381
asked Apr 18 '16 at 22:07
lucasrodesglucasrodesg
238136
238136
2
You want to run something likedu -hxd1 /, notdu /dev/sda2./dev/sda2doesn't really exist on disk.
– muru
Apr 18 '16 at 22:13
add a comment |
2
You want to run something likedu -hxd1 /, notdu /dev/sda2./dev/sda2doesn't really exist on disk.
– muru
Apr 18 '16 at 22:13
2
2
You want to run something like
du -hxd1 /, not du /dev/sda2. /dev/sda2 doesn't really exist on disk.– muru
Apr 18 '16 at 22:13
You want to run something like
du -hxd1 /, not du /dev/sda2. /dev/sda2 doesn't really exist on disk.– muru
Apr 18 '16 at 22:13
add a comment |
6 Answers
6
active
oldest
votes
Your root file system is full and hence your temp dir (/tmp, and /var/tmp for that matter) are also full. A lot of scripts and programs require some space for working files, even lock files. When /tmp is unwriteable bad things happen.
You need to work out how you've filled the filesystem up. Typically places this will happen is in /var/log (check that you're cycling the log files). Or /tmp may be full. There's many, many other ways that a disk can fill up, however.
du -hs /tmp /var/log
You may wish to re-partition to give /tmp it's own partition (that's the old school way of doing it, but if you have plenty of disk it's fine), or map it into memory (which will make it very fast but start to cause swapping issues if you overdo the temporary files).
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
add a comment |
You may also have lost write access to the /tmp/ directory.
It should look like that:
ls -l / |grep tmp
drwxrwxrwt 7 root root 4096 Nov 7 17:17 tmp
You can fix the permissions like that:
chmod a+rwxt /tmp
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
add a comment |
I was getting error, then I saw
[ 672.995482] EXT4-fs (sda2): Remounting filesystem read-only
[ 672.999802] EXT4-fs error (device sda2): ext4_journal_check_start:60: Detected aborted journal
I was able to confirm this,
mount | grep -i sda2
/dev/sda2 on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)
add a comment |
If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i. There are a fixed number of inodes on a filesystem, and every file needs one. If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df.
add a comment |
The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder.
You start with the root folder by:
sudo du -h --max-depth=1 /
Then - EITHER you increase the depth, i.e. the levels below:
sudo du -h --max-depth=2 /
OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:
sudo du -h --max-depth=1 /home/<user>/<overfull-folder>
Once you found it, just remove that one:
rm -rf <path to overfull-folder>
add a comment |
For my case of this same error, it was a cagefs issue as this server was on CloudLinux, addressed with cagefsctl --remount username
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277387%2ftab-completion-errors-bash-cannot-create-temp-file-for-here-document-no-space%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your root file system is full and hence your temp dir (/tmp, and /var/tmp for that matter) are also full. A lot of scripts and programs require some space for working files, even lock files. When /tmp is unwriteable bad things happen.
You need to work out how you've filled the filesystem up. Typically places this will happen is in /var/log (check that you're cycling the log files). Or /tmp may be full. There's many, many other ways that a disk can fill up, however.
du -hs /tmp /var/log
You may wish to re-partition to give /tmp it's own partition (that's the old school way of doing it, but if you have plenty of disk it's fine), or map it into memory (which will make it very fast but start to cause swapping issues if you overdo the temporary files).
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
add a comment |
Your root file system is full and hence your temp dir (/tmp, and /var/tmp for that matter) are also full. A lot of scripts and programs require some space for working files, even lock files. When /tmp is unwriteable bad things happen.
You need to work out how you've filled the filesystem up. Typically places this will happen is in /var/log (check that you're cycling the log files). Or /tmp may be full. There's many, many other ways that a disk can fill up, however.
du -hs /tmp /var/log
You may wish to re-partition to give /tmp it's own partition (that's the old school way of doing it, but if you have plenty of disk it's fine), or map it into memory (which will make it very fast but start to cause swapping issues if you overdo the temporary files).
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
add a comment |
Your root file system is full and hence your temp dir (/tmp, and /var/tmp for that matter) are also full. A lot of scripts and programs require some space for working files, even lock files. When /tmp is unwriteable bad things happen.
You need to work out how you've filled the filesystem up. Typically places this will happen is in /var/log (check that you're cycling the log files). Or /tmp may be full. There's many, many other ways that a disk can fill up, however.
du -hs /tmp /var/log
You may wish to re-partition to give /tmp it's own partition (that's the old school way of doing it, but if you have plenty of disk it's fine), or map it into memory (which will make it very fast but start to cause swapping issues if you overdo the temporary files).
Your root file system is full and hence your temp dir (/tmp, and /var/tmp for that matter) are also full. A lot of scripts and programs require some space for working files, even lock files. When /tmp is unwriteable bad things happen.
You need to work out how you've filled the filesystem up. Typically places this will happen is in /var/log (check that you're cycling the log files). Or /tmp may be full. There's many, many other ways that a disk can fill up, however.
du -hs /tmp /var/log
You may wish to re-partition to give /tmp it's own partition (that's the old school way of doing it, but if you have plenty of disk it's fine), or map it into memory (which will make it very fast but start to cause swapping issues if you overdo the temporary files).
edited Nov 19 '17 at 19:33
Evan Carroll
5,499104381
5,499104381
answered Apr 18 '16 at 22:48
Miles GillhamMiles Gillham
30925
30925
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
add a comment |
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
Hi, I looked at both commands that you suggest and I would say that both /tmp and /var/log are quite empty: 60K and 49M respectively.
– lucasrodesg
Apr 19 '16 at 19:18
1
1
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
Hi again. I finally got it. I don't know why did I place all the owncloud content under /var. It works again!
– lucasrodesg
Apr 19 '16 at 19:32
add a comment |
You may also have lost write access to the /tmp/ directory.
It should look like that:
ls -l / |grep tmp
drwxrwxrwt 7 root root 4096 Nov 7 17:17 tmp
You can fix the permissions like that:
chmod a+rwxt /tmp
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
add a comment |
You may also have lost write access to the /tmp/ directory.
It should look like that:
ls -l / |grep tmp
drwxrwxrwt 7 root root 4096 Nov 7 17:17 tmp
You can fix the permissions like that:
chmod a+rwxt /tmp
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
add a comment |
You may also have lost write access to the /tmp/ directory.
It should look like that:
ls -l / |grep tmp
drwxrwxrwt 7 root root 4096 Nov 7 17:17 tmp
You can fix the permissions like that:
chmod a+rwxt /tmp
You may also have lost write access to the /tmp/ directory.
It should look like that:
ls -l / |grep tmp
drwxrwxrwt 7 root root 4096 Nov 7 17:17 tmp
You can fix the permissions like that:
chmod a+rwxt /tmp
answered Nov 7 '16 at 17:38
dothebartdothebart
22124
22124
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
add a comment |
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
This worked for me!
– Joseph Chambers
Jun 15 '18 at 5:36
add a comment |
I was getting error, then I saw
[ 672.995482] EXT4-fs (sda2): Remounting filesystem read-only
[ 672.999802] EXT4-fs error (device sda2): ext4_journal_check_start:60: Detected aborted journal
I was able to confirm this,
mount | grep -i sda2
/dev/sda2 on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)
add a comment |
I was getting error, then I saw
[ 672.995482] EXT4-fs (sda2): Remounting filesystem read-only
[ 672.999802] EXT4-fs error (device sda2): ext4_journal_check_start:60: Detected aborted journal
I was able to confirm this,
mount | grep -i sda2
/dev/sda2 on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)
add a comment |
I was getting error, then I saw
[ 672.995482] EXT4-fs (sda2): Remounting filesystem read-only
[ 672.999802] EXT4-fs error (device sda2): ext4_journal_check_start:60: Detected aborted journal
I was able to confirm this,
mount | grep -i sda2
/dev/sda2 on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)
I was getting error, then I saw
[ 672.995482] EXT4-fs (sda2): Remounting filesystem read-only
[ 672.999802] EXT4-fs error (device sda2): ext4_journal_check_start:60: Detected aborted journal
I was able to confirm this,
mount | grep -i sda2
/dev/sda2 on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)
answered Nov 19 '17 at 19:36
Evan CarrollEvan Carroll
5,499104381
5,499104381
add a comment |
add a comment |
If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i. There are a fixed number of inodes on a filesystem, and every file needs one. If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df.
add a comment |
If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i. There are a fixed number of inodes on a filesystem, and every file needs one. If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df.
add a comment |
If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i. There are a fixed number of inodes on a filesystem, and every file needs one. If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df.
If anyone gets here with this error when their disk isn't full, be sure to check not just df but also df -i. There are a fixed number of inodes on a filesystem, and every file needs one. If you have just tons of small files, it's very easy for your filesystem to fill up with these small files while there's still plenty of space left on the drive when you run df.
answered Nov 26 '18 at 10:53
Michael SpeerMichael Speer
1112
1112
add a comment |
add a comment |
The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder.
You start with the root folder by:
sudo du -h --max-depth=1 /
Then - EITHER you increase the depth, i.e. the levels below:
sudo du -h --max-depth=2 /
OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:
sudo du -h --max-depth=1 /home/<user>/<overfull-folder>
Once you found it, just remove that one:
rm -rf <path to overfull-folder>
add a comment |
The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder.
You start with the root folder by:
sudo du -h --max-depth=1 /
Then - EITHER you increase the depth, i.e. the levels below:
sudo du -h --max-depth=2 /
OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:
sudo du -h --max-depth=1 /home/<user>/<overfull-folder>
Once you found it, just remove that one:
rm -rf <path to overfull-folder>
add a comment |
The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder.
You start with the root folder by:
sudo du -h --max-depth=1 /
Then - EITHER you increase the depth, i.e. the levels below:
sudo du -h --max-depth=2 /
OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:
sudo du -h --max-depth=1 /home/<user>/<overfull-folder>
Once you found it, just remove that one:
rm -rf <path to overfull-folder>
The fastest way to locate your folders that are too full is by narrowing down the folder file size in levels from the root folder.
You start with the root folder by:
sudo du -h --max-depth=1 /
Then - EITHER you increase the depth, i.e. the levels below:
sudo du -h --max-depth=2 /
OR - quicker - you you look which folder has eaten up the most disk space, and do the same on this folder:
sudo du -h --max-depth=1 /home/<user>/<overfull-folder>
Once you found it, just remove that one:
rm -rf <path to overfull-folder>
answered Jun 10 '18 at 3:47
Agile BeanAgile Bean
1011
1011
add a comment |
add a comment |
For my case of this same error, it was a cagefs issue as this server was on CloudLinux, addressed with cagefsctl --remount username
add a comment |
For my case of this same error, it was a cagefs issue as this server was on CloudLinux, addressed with cagefsctl --remount username
add a comment |
For my case of this same error, it was a cagefs issue as this server was on CloudLinux, addressed with cagefsctl --remount username
For my case of this same error, it was a cagefs issue as this server was on CloudLinux, addressed with cagefsctl --remount username
answered Oct 30 '18 at 12:31
ZebouskiZebouski
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f277387%2ftab-completion-errors-bash-cannot-create-temp-file-for-here-document-no-space%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
You want to run something like
du -hxd1 /, notdu /dev/sda2./dev/sda2doesn't really exist on disk.– muru
Apr 18 '16 at 22:13