Big size of /opt/rt4/var directory

Hello all.
I’m using Request Tracker 4.2.1 and Lighttpd (1.4.28-2ubuntu4) via
fastcgi on Ubuntu 12.04 LTS.
Now size of “/opt/rt4/var” directory is 5.2 Gb and full backup archive
of “/opt/rt4/” is very big.
In this directory a lot of folders with random name:
ls -la /opt/rt4/var
[…]
drwx------ 2 www-data www-data 4096 Dec 30 19:19 xO_kAcCdQA
drwx------ 2 www-data www-data 4096 Dec 30 20:34 xR08jEpXhN
drwx------ 2 www-data www-data 4096 Dec 30 18:21 y2A3tJXMy8
drwx------ 2 www-data www-data 4096 Dec 30 21:01 Y5mPEdMSWh
drwx------ 2 www-data www-data 4096 Dec 30 17:42 yBixm9CtAO
drwx------ 2 www-data www-data 4096 Dec 30 17:41 yeihY9J9VX
drwx------ 2 www-data www-data 4096 Dec 30 22:25 yKjJdoKUNU
[…]
Can I delete all this folders from “/opt/rt4/var”? If yes, how to delete
this folders automaticaly? This is cache of attachments?

Best regards,
Ivan Osipov

Hello all.
I’m using Request Tracker 4.2.1 and Lighttpd (1.4.28-2ubuntu4) via fastcgi
on Ubuntu 12.04 LTS.
Now size of “/opt/rt4/var” directory is 5.2 Gb and full backup archive of
“/opt/rt4/” is very big.
In this directory a lot of folders with random name:

ls -la /opt/rt4/var
[…]
drwx------ 2 www-data www-data 4096 Dec 30 19:19 xO_kAcCdQA
drwx------ 2 www-data www-data 4096 Dec 30 20:34 xR08jEpXhN
drwx------ 2 www-data www-data 4096 Dec 30 18:21 y2A3tJXMy8
drwx------ 2 www-data www-data 4096 Dec 30 21:01 Y5mPEdMSWh
drwx------ 2 www-data www-data 4096 Dec 30 17:42 yBixm9CtAO
drwx------ 2 www-data www-data 4096 Dec 30 17:41 yeihY9J9VX
drwx------ 2 www-data www-data 4096 Dec 30 22:25 yKjJdoKUNU
[…]

Can I delete all this folders from “/opt/rt4/var”? If yes, how to delete
this folders automaticaly? This is cache of attachments?

I may be mistaken but to me those look like they might be procmail storing
mail in a directory because it doesn’t know what else to do with them.
Those shouldn’t be there though so I’d probably first advise that you
resolve that issue before you start using ‘find’ in a crontab to delete
them if they are a certain number of days old or something.

Landon Stewart :: lstewart@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932

I’m using Request Tracker 4.2.1 and Lighttpd (1.4.28-2ubuntu4) via
fastcgi on Ubuntu 12.04 LTS.
Now size of “/opt/rt4/var” directory is 5.2 Gb and full backup
archive of “/opt/rt4/” is very big.
In this directory a lot of folders with random name:

ls -la /opt/rt4/var
[…]
drwx------ 2 www-data www-data 4096 Dec 30 19:19 xO_kAcCdQA
drwx------ 2 www-data www-data 4096 Dec 30 20:34 xR08jEpXhN
drwx------ 2 www-data www-data 4096 Dec 30 18:21 y2A3tJXMy8
drwx------ 2 www-data www-data 4096 Dec 30 21:01 Y5mPEdMSWh
drwx------ 2 www-data www-data 4096 Dec 30 17:42 yBixm9CtAO
drwx------ 2 www-data www-data 4096 Dec 30 17:41 yeihY9J9VX
drwx------ 2 www-data www-data 4096 Dec 30 22:25 yKjJdoKUNU
[…]

Can I delete all this folders from “/opt/rt4/var”? If yes, how to
delete this folders automaticaly? This is cache of attachments?

When you ran file on one of these, or opened one up in a text editor,
what was the content of the files?

RT wouldn’t normally write things into /opt/rt4/var. Subdirectories
of /opt/rt4/var sure, but not the top level.

-kevin

06.01.2014 20:44, Kevin Falcone wrote:

I’m using Request Tracker 4.2.1 and Lighttpd (1.4.28-2ubuntu4) via
fastcgi on Ubuntu 12.04 LTS.
Now size of “/opt/rt4/var” directory is 5.2 Gb and full backup
archive of “/opt/rt4/” is very big.
In this directory a lot of folders with random name:

ls -la /opt/rt4/var
[…]
drwx------ 2 www-data www-data 4096 Dec 30 19:19 xO_kAcCdQA
drwx------ 2 www-data www-data 4096 Dec 30 20:34 xR08jEpXhN
drwx------ 2 www-data www-data 4096 Dec 30 18:21 y2A3tJXMy8
drwx------ 2 www-data www-data 4096 Dec 30 21:01 Y5mPEdMSWh
drwx------ 2 www-data www-data 4096 Dec 30 17:42 yBixm9CtAO
drwx------ 2 www-data www-data 4096 Dec 30 17:41 yeihY9J9VX
drwx------ 2 www-data www-data 4096 Dec 30 22:25 yKjJdoKUNU
[…]

Can I delete all this folders from “/opt/rt4/var”? If yes, how to
delete this folders automaticaly? This is cache of attachments?
When you ran file on one of these, or opened one up in a text editor,
what was the content of the files?
Every these folder contain *.html with mail message body and attachments
in base64.
Also all this folders has been changed in one day - 30 Dec 2013.
I’m using fetchmail. May be this folders created by rt-mailgate?

RT wouldn’t normally write things into /opt/rt4/var. Subdirectories
of /opt/rt4/var sure, but not the top level.

-kevin

Best regards,
Ivan Osipov