This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » strange problem with multiple...
expandshrink

strange problem with multiple "trashed" folders

strange problem with multiple "trashed" folders

Thursday 16 December 2010 8:03:47 pm - 12 replies

I noticed a very strange thing happening on my ezp site...

In the storage/images folder a lot of recursive trashed folders are created, for example:

var/sitename/storage/images/.../37867-25-cro-HR/trashed/trashed/trashed/trashed/trashed/trashed

When I took a look at the content of these folder I notice another strange thing. All files in the folder have the same size and the sum of their sizes doesn't match the disk usage reported for this folder. For example I have 28 files all with 512K size (which total to 14 MB) but disk usage reported for this folder is only 512K.

It seems like all of the 28 files are just hard links to the same file.

This problem is not specific for my site, because I found a similar problem on issues:

http://issues.ez.no/IssueView.php?Id=16823

It's not the very same problem, because my site is not on a clustered ezp installation, but the pattern with repeated "trashed" folders is the same.

Also, the problem doesn't occur for only one object, it happens for many different objects.

So any clue why does this happen?

Is it a bug?

Modified on Thursday 16 December 2010 8:12:49 pm by Mavko Žmak - Žmale

Thursday 16 December 2010 8:12:24 pm

Update...

This 28 files are hard links to the same file, and there are total 7009 hard links to this file.

This is definitely not normal...

Modified on Thursday 16 December 2010 8:16:42 pm by Mavko Žmak - Žmale

Thursday 16 December 2010 9:25:52 pm

I think I nailed it, it's a bug:

http://issues.ez.no/IssueView.php?Id=17781&activeItem=1

Can someone confirm it?

Friday 17 December 2010 9:50:13 am

Note; also reported here http://share.ez.no/forums/install-configuration/removing-item-creates-infinite-loop

Thanks for filing the bug report Marko.

Regards Robin

Monday 20 December 2010 3:58:47 pm

I'm on it.

My god, this part is weird happy.gif Emoticon

Thursday 31 March 2011 6:41:34 pm

Hi guys

Just to notify that I'm on this one, taking over Bertrand's work happy.gif Emoticon

Modified on Thursday 31 March 2011 6:53:52 pm by Jérôme Vieilledent

Thursday 31 March 2011 8:20:33 pm

Hi guys

Just to notify that I'm on this one, taking over Bertrand's work happy.gif Emoticon

Will it be fixed in the 4.5 community release?

Friday 01 April 2011 9:55:08 am

Unfortunately not, it's far too late for that sad.gif Emoticon

Friday 01 April 2011 10:20:36 am

Unfortunately not, it's far too late for that sad.gif Emoticon

Any chance that we'll also get a sanitizer script that will clean up all redundant "trashed" folders and images?

Friday 01 April 2011 4:26:48 pm

1. hopefully the bug is fixed very soon

2. a sanitizer script would be nice too have

Friday 01 April 2011 4:43:05 pm

The fix should be committed very soon.

About the sanitizer script, I need more information like your current situation (Are your objects still in the trash ?) and the situation you want to get back to.

Please add comments inside the issue happy.gif Emoticon.

Thanks !

Thursday 21 July 2011 11:26:47 am

A commit has been added to the community as mentioned in the issue.

I have further asked in the "issue" about the sanitiser, or at least the cleaner.

For those who are curious to see if they suffer from this problem.

Jump into your storage for your sites and do the following commands.

# This one lists all images with a trashed folder.
find . -type f -wholename '*trashed*' | wc -l

# This one lists all images with more two or more trashed folders.
find . -type f -wholename '*trashed/trashed*' | wc -l

 

I have asked if it is expected behaviour to have nested trashed folders.

 

Has anyone tried just deleting all folders with "trashed/trashed/"? and then doing a similiar command to the "ezimagefile" table to remove rows with filepath having "trashed/trashed/?

Is this dangerous happy.gif Emoticon

Modified on Thursday 21 July 2011 11:27:22 am by Chris Williams

Thursday 04 August 2011 9:35:41 am

The sanitizer script can be found in:
eZ Publish 4.6: https://github.com/ezsystems/ezpublish/commit/67d2c9ec4b7cf581c261438a0351076a9a0b1db4

Thanks for your patience!

Cheers,
Patrick 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from