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

RESOLVED FIXED

Status

Mozilla Labs Graveyard
Personas Plus
RESOLVED FIXED
9 years ago
2 years ago

People

(Reporter: stephend, Assigned: oremj)

Tracking

Details

(URL)

Attachments

(1 attachment)

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.
Created attachment 373241 [details]
Screenshot showing missing images
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.
(Assignee)

Comment 4

9 years ago
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
Last Resolved: 9 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.