What is filestore/tmp about?

234 views
Skip to first unread message

Yadin Flammer

unread,
Sep 25, 2017, 5:51:41 PM9/25/17
to ResourceSpace
I'm looking for info as to what /filestore/tmp is used for.  It recently got a TON of symbolic links to various files in the filestore created in it.  There is no evidence this has ever happened before in the months we have been running the system, and in the past 4 days 7 directories full of dozens upon dozens of links has been created.  This results in a ton of errors in our backup routine as these links won't copy to the CIFS share on the Windows file server by rsync.

So, in an effort to clean up all the errors in the rsync log, I'm looking to see if we can purge the stuff in this tmp directory pre-backup to keep it clean, or if these files have a function that isn't clear.  Any info on why they seem to be a new thing and how important they are is appreciated.

Dan Huby

unread,
Sep 26, 2017, 2:26:26 AM9/26/17
to ResourceSpace
My guess is that your users have been using the TAR download function but aborting it mid way. This will leave the symbolic links it uses in place. 

You could have a nightly cron to flush out /filestore/tmp (if you're sure nobody is using it at that time)

Yadin Flammer

unread,
Sep 26, 2017, 9:40:19 AM9/26/17
to ResourceSpace
I don't think that's the cause, but it sounds like that's an opportunity for improvement.  I'd think it best if the software cleaned up after itself.
That said, sounds like you're confirming that /tmp is exactly that, just temp stuff that can be cleaned out without concern of damage to operation.  Good to know given the variety of files and directories that appear in there
Thanks!

Allison Stec

unread,
Sep 26, 2017, 10:12:29 AM9/26/17
to resour...@googlegroups.com, Yadin Flammer
There is something that cleans the tmp folder baked into RS, which is turned off by default:

# Option for the system to empty the configured temp folder of old files when it is creating new temporary files there.
# Set to 0 (off) by default.
# Please use with care e.g. make sure your IIS/Apache service account doesn't have write access to the whole server
$purge_temp_folder_age=0;

Allison Stec


--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yadin Flammer

unread,
Sep 26, 2017, 10:17:40 AM9/26/17
to ResourceSpace

Awesome!  Thanks Allison!

Yadin Flammer

unread,
Sep 26, 2017, 3:14:46 PM9/26/17
to ResourceSpace
Either this is not working, or I'm missing something.  I set it to 1 under the assumption that is either enabled, or anything older than 1 day is removed.  I'm not seeing anything being cleaned up.  Any ideas?

Allison Stec

unread,
Sep 26, 2017, 3:56:59 PM9/26/17
to resour...@googlegroups.com, Yadin Flammer
This only fires when a collection is downloaded. The config description does say that it checks when new temp files are being created. Have you tried to download a collection?
Allison Stec



On September 26, 2017 at 3:14:51 PM, Yadin Flammer (ebonw...@gmail.com) wrote:

Either this is not working, or I'm missing something.  I set it to 1 under the assumption that is either enabled, or anything older than 1 day is removed.  I'm not seeing anything being cleaned up.  Any ideas?

Yadin Flammer

unread,
Sep 26, 2017, 7:18:38 PM9/26/17
to ResourceSpace
I have downloaded resources and entire collections in both standard and tar format.  I even downloaded a report.  While all the other random files in tmp are now gone, all the directories full of dozens of symlinks are still there.  They all have names like rs_2_Col109-59c584c096740 if that sheds any light on what these are.  And they are all similar to this in structure:
 RS5420_889A4775.jpg -> /var/www/resourcespace/include/../filestore/5/4/2/0_07e6ef982320f5d/5420_dac3d9aac636300.jpg

Yadin Flammer

unread,
Sep 30, 2017, 11:36:37 AM9/30/17
to ResourceSpace
Any other ideas why these are being made and not cleaned up?  Seems that for now the only course of action is to rm -rf rs_* in this location to clear out the cruft if RS isn't self cleaning...
Reply all
Reply to author
Forward
0 new messages