I don’t know how to categorize this or where to report it. I see “no space left on device” when I try to create files at the command line, e.g. in Python:
==> Error: OSError: [Errno 28] No space left on device
Yes that /tmp is full, and since I’m totally worn out, I asked “AI” which gave some seemingly good introductory info (be careful what You are going to apply, I suggest not to go on cron job, third [**3.] AI’s idea). Here is the transcript:
There are a few ways to free the temp directory in a Linux based OS.
**1. Using the `rm` command**
The `rm` command is used to delete files. To delete all files in the temp directory, you can use the following command:
`sudo rm -rf /tmp/*`
The `sudo` command is required to delete files in the `/tmp` directory, as it is a system-wide directory.
**2. Using the `find` command**
The `find` command can be used to find files that match a certain criteria. To find all files in the `/tmp` directory that are older than a certain number of days, you can use the following command:
`sudo find /tmp -type f -mtime +X`
The `-type f` option specifies that you are only interested in files. The `-mtime +X` option specifies that you only want to find files that are older than X days.
Once you have found the files that you want to delete, you can use the `rm` command to delete them.
**3. Using a cron job**
You can also use a cron job to automatically delete the temp directory on a regular basis. A cron job is a task that is scheduled to run at a specific time or interval.
To create a cron job to delete the temp directory, you can use the following command:
`0 0 * * * sudo rm -rf /tmp/*`
This cron job will run at 00:00 (midnight) every day.
Which method you choose to use will depend on your specific needs and preferences.
Here are some additional things to keep in mind when freeing the temp directory:
* Be careful not to delete any important files.
* If you are using the `find` command, make sure to specify the correct criteria so that you do not delete any files that you do not want to delete.
* If you are using a cron job, make sure to set the correct time and interval so that the temp directory is not deleted too often or too rarely.
I hope this helps!```
It may also be an inode/metadata exhaustion problem. You may also want to do a btrfs filesystem df / to see what is being exhausted on your btrfs volume.