simplex-chat / simplexmq

⚙️ SimpleXMQ - A reference implementation of the SimpleX Messaging Protocol for simplex queues over public networks.
https://simplex.chat
GNU Affero General Public License v3.0
544 stars 62 forks source link

xftp-server doesn't seem to be expiring files sent before it started #1299

Closed DarkmatterUAE closed 2 months ago

DarkmatterUAE commented 2 months ago

I am hosting a XFTP server and I noticed some files that are considered too old on the xftp storage directory. My server is configured to expire files after 2 days, but these files are already 9 days old.

root@simplex-server:/simplex/xftp# ls -alh
total 21M
drwxr-xr-x 2 simplex root    0 Sep  4 12:14  .
drwxr-xr-x 5 simplex root 4.0K Aug  3 05:43  ..
-rwxr-xr-x 1 simplex root  64K Sep  3 01:40 '3dkqc-pZUb8KzdA=='
-rwxr-xr-x 1 simplex root 256K Sep  3 10:55 '4BDRmEzIP3-ylRA=='
-rwxr-xr-x 1 simplex root 256K Sep  3 10:40 '6kJzQHZcicXhIfg=='
-rwxr-xr-x 1 simplex root 4.0M Sep  4 12:13 wRWVSWGfGOhXrrmQ=='
-rwxr-xr-x 1 simplex root 256K Aug 26 09:50 'aKmEBvlHkhKFUug=='
-rwxr-xr-x 1 simplex root 256K Aug 26 09:51 'fcnagJTw8Od9MIQ=='
-rwxr-xr-x 1 simplex root 256K Sep  3 11:17 'fspRohAWkw0GoyQ=='
-rwxr-xr-x 1 simplex root 256K Aug 26 09:53 'JSp07vDU9Q7iAHg=='
-rwxr-xr-x 1 simplex root 256K Sep  3 00:26 'Ju4kMNwP8oIZcEw=='
-rwxr-xr-x 1 simplex root 4.0M Sep  4 12:13 'N6y0RDIirVevMXA=='
-rwxr-xr-x 1 simplex root 256K Aug 26 10:01 'nHsBqOK4477fLxw=='
-rwxr-xr-x 1 simplex root 256K Sep  3 11:21 'NY9MVtQpi7pm5bQ=='
-rwxr-xr-x 1 simplex root 4.0M Sep  4 12:12 'PMDxX-OlFoOMK0Q=='
-rwxr-xr-x 1 simplex root 1.0M Sep  4 12:14 'Qww26Ak3Tk6C1Fw=='
-rwxr-xr-x 1 simplex root  64K Sep  3 01:40 'rdYnH7rQc5OQcqQ=='
-rwxr-xr-x 1 simplex root 256K Sep  3 10:46 'r_N8s1OqngD6pog=='
-rwxr-xr-x 1 simplex root 256K Aug 26 09:51 'sbzy9g0@xcoausA=='
-rwxr-xr-x 1 simplex root  64K Sep  4 12:02 'soqiu3fv_WB0Evg=='
-rwxr-xr-x 1 simplex root 256K Sep  3 03:48 'unpSBzl14-cVevA=='
-rwxr-xr-x 1 simplex root 4.0M Sep  4 12:12 'VSFlfJiDD3MRZlA=='
-rwxr-xr-x 1 simplex root 256K Aug 26 09:55 'zDR-BlrEHdhVzhw=='
root@simplex-server:/simplex/xftp# date
Wed Sep  4 12:22:00 PM UTC 2024

Since I remembered that XFTP server reclaim space during server startup I manually restarted the server but it didn't reclaim any space.

[INFO 2024-09-04 12:19:28 +0000 src/Simplex/FileTransfer/Server.hs:545] Used 18mb -> 18mb, 0mb reclaimed.

I wonder if I interpreted the description wrong? Or the XFTP server wasn't functioning correctly?

DarkmatterUAE commented 2 months ago

Amendment: This issue didn't appear this time I restarted xftp-server so closing for now.