occasional random missing files, site with ~2000 files in file manager

Permalink
Okay all you C5 gurus, I've got a head scratcher for you: I set up a site that has been slowly growing since April of 2012. Right now it has ~300 pages and ~2000 files in the file manager. Very sporadically I will be told of a random broken image or two on a page. In the file manager the file will be listed, but have no thumbnail, a name of "File", and an active date of 12/31/1969 (see attached image). The html still has the correct alt tag, but the the source will be: <img src="/files/" (see other attached image)
Here's the thing - If I clear the site cache, all is restored to normal.

I've set up a cron job to clear the site cache once a week, so hopefully I won't be seeing any more of the blue broken image icons, but I am very curious as to what's going on.

Any ideas? See Environment Info below.
My first thought was the host (Site5 - which I've been very pleased with, very fast with C5), but I've got another site on the same host- not quite as large, and this has never happened to it - or any other site I've built with C5.




Environment Info:

# concrete5 Version
5.5.2.1

# concrete5 Packages
Dojo Page Filter Pro (2.1), Manual Nav (1.2), MindNet Clear Cache (1.0), Page List Teasers (1.2).

# concrete5 Overrides
blocks/industry_content, blocks/image, blocks/audio_player, blocks/scroll_to_top, blocks/page_list, blocks/autonav, blocks/related_content_links, blocks/content, blocks/next_previous, blocks/tags, elements/editor_config.php, themes/newco

# Server Software
Apache

# Server API
cgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, bz2, calendar, cgi, ctype, curl, date, dom, exif, ffmpeg, filter, ftp, gd, gettext, hash, iconv, imagick, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, SQLite, ssh2, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Optimizer, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 64M
post_max_size - 12M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 10M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

2 Attachments

foster
 
stratumsystems replied on at Permalink Reply
Don't have an answer for you, but I'm experiencing the same thing after I moved a site to a new server.

Did you figure out what was caused your problem?
stratumsystems replied on at Permalink Reply
Never mind, I didn't read that you cleared the cache to fix it. That fixed it for me, and I suspect that it will fix it for good as the cache was probably messed up by me moving servers.

Best of luck with your issue!
foster replied on at Permalink Reply
foster
One thing that I tried is going in to phpMyAdmin, selecting all of the tables in the database, and doing a repair, then optimize. I did this at the end of the day and my site seemed a little faster the next morning. I haven't seen any broken links since then.

I'm very interested in getting to the bottom of this.
foster replied on at Permalink Reply
foster
Clearing the cache usually gets the broken links to be fixed, but I did have one time where it did not take care of it. I am running an automated nightly job that clears the cache, which has helped, but I don't like the idea that there may be times when there is a broken link before the cache is auto cleared.

How large is your site in pages and images?
stratumsystems replied on at Permalink Reply
We're hosting on an in-house LAMP server. We have about 2200 images, roughly 80 pages (Gallery heavy site).

I just had the problem again, images not showing up. Clearing the cache fixed it.

I don't have any insight as to what might have caused it this time, I'll definitely let you know if I figure anything out. Please keep me posted as well.
mkly replied on at Permalink Reply
mkly
Hi @foster,
It looks like you are running 5.5.2.1. That's not too difficult of an upgrade to 5.6.1(our very latest release). If you have a stage where you can do a test upgrade to our latest version, I'd be very interested to see how it goes. Caching has changed quite a bit, although on the image side not quite as much.

As for the issue at hand, it likely depends on how you are including those files. Like from a content block or a slideshow etc, as there are a couple different ways to get an image out. If you look in files/cache you will see quite a few image files, and I wonder if you have a job that is clearing that out manually and deleting some of those images, but a block is still caching the old location.

Best Wishes,
Mike
foster replied on at Permalink Reply 1 Attachment
foster
Mike,

Thanks so much for the response! I was on an 5.5.2.1 in September. The problem has most recently been seen while running 5.6.0.2
I updated to 5.6.1 this morning, so I'll watch and see if I find broken image links again.

All of the images that I have had problems with are from the Content block, inserted by "add image" at the top of the editor.

The attached screengrab from Feb 20th shows what appears in Inspector when the problem happens. There is a placeholder for the image, but the source is missing.

I'd be happy to provide access to the site if there are things that would be helpful for you to see. I did not have any cron jobs set-up before I started seeing the broken links. To help lesson the time the broken links appear on the site, I installed the MindNet Clear Cache add-on and automated access to the Automated Jobs url.