Closed Bug 488782 Opened 15 years ago Closed 15 years ago

Website: Sometimes there are missing preview images/broken links due to rsync doing pages before images

Categories

(Mozilla Labs Graveyard :: Personas Plus, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stephend, Assigned: oremj)

References

()

Details

Attachments

(1 file)

Sometimes during a push of GetPersonas.com, there are broken links and missing preview images (see screenshot), because rsync seems to take care of pages before images.

(Saw this on http://www.getpersonas.com/gallery/Music/Recent, but this might fix itself by the time this is read.)

Toby can add more more-specific info.
Jeremy - can we futz with the rsynch so that it does the images (the 1-9 directories) before the galleries? The delay difference can actually be quite substantial.
Assignee: cbeard → oremj
Does the rsync also delete stale files?  If so, doing the images first will cause images to get deleted before updating the pages that refer to them, which is the same problem in reverse.  I guess you could always sync images without deleting any first, then sync pages, then do a sync that deletes stale images.
I've changed the rsync 
from:
rsync -aq --delete sm-personas01::personas/ /data/static/www/www.getpersonas.com/static/

to:
rsync -aq --delay-updates --delete-delay sm-personas01::personas/ /data/static/www/www.getpersonas.com/static/

These changes should make it much more atomic.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: