I have an emonpi, and after a while (around a couple of months) the root directory fills up and it becomes unusable.
In the past I’ve tried a reboot, but then it won’t boot, so I have to reimage the SD card and load from backups. I’ve caught it at the moment and I’m hoping someone can help me find the root cause.
I caught it once before and scanned for what was using up the drive space, but couldn’t figure it out.
I can currently login to the web interface, but SSH keeps telling me “access denied”. I never changed the ssh password, and i’ve tried every combination I can think of, so I think the full disk is stopping ssh from working.
My admin page looks like this:
<details><summary>Server Information</summary>
# Server Information
## Services
- **feedwriter** :- **Activating** loaded activating auto-restart 785 feed points pending write
- **emonhub** :- **Active** Running
- **emoncms_mqtt** :- **Active** Running
- **service-runner** :- **Active** Running
- **emonPiLCD** :- **Active** Running
- **redis-server** :- **Active** Running
- **mosquitto** :- **Active** Running
- **emoncms_sync** :- **Active** Running
- **demandshaper** :- Not found or not installed
## Emoncms
- **Version** :- low-write 11.6.11
- **Git** :-
- **URL** :- https://github.com/emoncms/emoncms.git
- **Branch** :- * stable
- **Describe** :- 11.6.11
- **Components** :- Emoncms Core v11.6.11 | App v3.1.1 | EmonHub Config v2.1.5 | Dashboard v2.4.1 | Device v2.2.6 | Graph v2.2.4 | Network Setup v1.0.5 | Backup v2.3.4 | Network v3.1.6 | Postprocess v2.4.7 | Sync v3.2.0 | Usefulscripts v2.3.13 | EmonScripts v1.8.7 | RFM2Pi v1.4.2 | Avrdude-rpi v1.0.3 | EmonPiLCD v2.0.1 | Emonhub v2.7.2
## Server
- **CPU** :- Cortex-A53 | 1 Threads(s) | 4 Core(s) | 1 Sockets(s) | 76.80MIPS |
- **OS** :- Linux 6.1.0-rpi8-rpi-v7
- **Host** :- emonpi | emonpi | (192.168.1.222)
- **Date** :- 2025-03-15 11:10:00 AEDT
- **Uptime** :- 11:10:00 up 1 day, 13:36, 0 user, load average: 1.63, 1.78, 1.85
## Memory
- **RAM** :- Used: 27.34%
- **Total** :- 921.96 MB
- **Used** :- 252.07 MB
- **Free** :- 669.89 MB
- **Swap** :- Used: 1.75%
- **Total** :- 200 MB
- **Used** :- 3.5 MB
- **Free** :- 196.5 MB
## Disk
- **** :- - **/** :- Used: 99.64%
- **Total** :- 4.39 GB
- **Used** :- 4.38 GB
- **Free** :- 0 B
- **Read Load** :- -156.98 B/s
- **Write Load** :- -126.38 B/s
- **Load Time** :- 51 days 14 hours 17 mins
- **/boot/firmware** :- Used: 18.07%
- **Total** :- 509.99 MB
- **Used** :- 92.17 MB
- **Free** :- 417.82 MB
- **Read Load** :- n/a
- **Write Load** :- n/a
- **Load Time** :- n/a
- **/mnt/usbbackup** :- Used: 97.78%
- **Total** :- 14.32 GB
- **Used** :- 14 GB
- **Free** :- 324.75 MB
- **Read Load** :- n/a
- **Write Load** :- n/a
- **Load Time** :- n/a
- **/var/opt/emoncms** :- Used: 25.48%
- **Total** :- 9.68 GB
- **Used** :- 2.47 GB
- **Free** :- 6.72 GB
- **Read Load** :- 285.47 B/s
- **Write Load** :- -580.52 B/s
- **Load Time** :- 51 days 14 hours 17 mins
- **/var/log** :- Used: 100.00%
- **Total** :- 50 MB
- **Used** :- 50 MB
- **Free** :- 0 B
- **Read Load** :- n/a
- **Write Load** :- n/a
- **Load Time** :- n/a
- **/mnt/vera_usb** :- Used: 94.99%
- **Total** :- 14 GB
- **Used** :- 13.3 GB
- **Free** :- 718 MB
- **Read Load** :- n/a
- **Write Load** :- n/a
- **Load Time** :- n/a
## HTTP
- **Server** :- Apache/2.4.62 (Raspbian) HTTP/1.1 CGI/1.1 80
## MySQL
- **Version** :- 10.11.3-MariaDB-1+rpi1
- **Host** :- 127.0.0.1 (127.0.0.1)
- **Date** :- 2025-03-15 11:09:59 (UTC 11:00)
- **Stats** :- Uptime: 135426 Threads: 9 Questions: 4877749 Slow queries: 0 Opens: 55 Open tables: 45 Queries per second avg: 36.017
## Redis
- **Version** :-
- **Redis Server** :- 7.0.15
- **PHP Redis** :- 6.0.3-dev
- **Host** :- localhost:6379
- **Size** :- 425 keys (1.35M)
- **Uptime** :- 1 days
## MQTT Server
- **Version** :- Mosquitto 2.0.11
- **Host** :- localhost:1883 (127.0.0.1)
## PHP
- **Version** :- 8.1.31 (Zend Version 4.1.31)
- **Run user** :- User: www-data Group: www-data video Script Owner: pi
- **Modules** :- apache2handler calendar Core ctype curl date exif FFI fileinfo filter ftp gd gettext hash iconv json libxml mbstring mosquitto v0.4.0mysqli mysqlnd vmysqlnd 8.1.31openssl pcre PDO pdo_mysql Phar posix readline redis v6.0.3-devReflection session shmop sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer Zend OPcache zlib
## Pi
- **Model** :- Raspberry Pi 3 Model B Rev 1.2 - 1GB (Sony UK)
- **Serial num.** :- EF55701E
- **CPU Temperature** :- 78.44°C
- **GPU Temperature** :- N/A (to show GPU temp execute this command from the console "sudo usermod -G video www-data" )
- **emonpiRelease** :- emonSD-01Feb24
- **File-system** :- read-write
</details>
<details><summary>Client Information</summary>
# Client Information
## HTTP
- **Browser** :- Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
- **Language** :- en-AU,en;q=0.8
## Window
- **Size** :- 360 x 553
## Screen
- **Resolution** :- 360 x 780
</details>
Any tips? Thanks.