Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Mango not starting ! Disk is full.
-
Please look at my error in the past with unaccessable Mango
-
Hi stensma,
Whenever a disk is full there's only one course of action: free up some space. I would use the command line, and SSH into the device. If you are using a Mac or a Linux OS, you can type 'ssh -p 2222 mango@ip' into a terminal to begin the SSH connection, or if you are on Windows you may need to download Putty as the SSH client. The login credentials will probably be the same over SSH as they were through Webmin
I would start by checking the size of Mango's files, specifically:
du -sh /opt/mango/backup du -sh /opt/mango/logs du -sh /opt/mango
Emptying the logs directory and the backup directory (or copying them elsewhere) is a good first step.
Here are some helpful commands, where %d is a file or directory name:
#Size of a file or directory: du -sh %d #List 20 largest files: sudo du -ahx / | sort -rh | head -20 #Find all files over 100 MB: sudo find / -size +100MB #Remove a file rm %d #Remove a directory rm -r %d
Please do share where the space has gone when you find some large files, if you can.
-
-
What Mihai says is true! Or, was true. That problem was among those fixed in 2.8.x and there are no more logs which can easily grow indefinitely anymore.
-
Hi all !
Mango still has some issues.
There was not room for the temp files needed in the commands.
What is wrong ? Where do I find space?mango@stensmango:/$ sudo du -ahx / | sort -rh | head -20
[sudo] password for mango:
Sorry, try again.
[sudo] password for mango:
sort: cannot create temporary file in ‘/tmp’: No space left on device
ot local -
Weird... why does / report as only being 47% full if the disk is full? I would restart the device if I saw that.
You could see if there's an abundance of logging from something else
sudo du -sh /var/log/*
-
I would check your /opt/mango/backup folder. You may have a lot of NoSQL database backups which you can delete to free up space. You can turn off incremental backups on the system settings page under the NoSQL settings.
-
Hi this pictures was taken right after a cold boot.
And ALL backup are moved to an external disk. -
-
Result with Find size
mango@stensmango:/opt/mango/logs$ sudo find / -size +100M
find:/proc/26770/task/26770/fd/5': No such file or directory find:
/proc/26770/task/26770/fdinfo/5': No such file or directory
find:/proc/26770/fd/5': No such file or directory find:
/proc/26770/fdinfo/5': No such file or directory -
-
Can you check the output of
df -i
as it may be there are no more inodes. If that is the case that they're 100% utilized, you'll have to find some files (and directories) to delete. They can be any files of any size, but you should of course exercise care.A useful command may be:
#count the number of files and directories in /path/to/dir find /path/to/dir | wc -l
-
Then I am able to run basic Webmin functions, but what is creating the problem?
I have tried no to run apt-get purge and autoremove but there is nothing to clean out.Now I work with following command.
$ for i in /*; do echo $i; find $i |wc -l; done
This lists the folders and inode number.
and I fount that /var had over 300k nodes
I will dig deeper on where exactly
-
-
-
-
It was supposed to be constructing a file in /opt/systeminfo/ (I believe, might be /opt/info/ or something like that) which would then be read by a preconfigured ASCII File Data Source for system information like remaining disk space. You can certainly deactivate it without much loss, and you may as well disable the ASCII data source that was preloaded. I will definitely investigate if other MangoES's are having a problem with it creating files in /var/spool/
-
I used this command straight from the terminal to list inodes and found it easier:
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
-
This issue has happened again, and the same folder caused the problem.
ASCII File Reader has been off for a long time, so that did not prevent the issue from re-occurring.
edit: This is happening on Mango v3, but not on Mango v1 or on an Ubuntu install.