Closed Bug 540117 Opened 16 years ago Closed 16 years ago

postupload fails if directory exists

Categories

(Release Engineering :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: bhearsum)

Details

Attachments

(1 file, 1 obsolete file)

I suspect this happens when two slaves are uploading at the same time: Running post-upload command: post_upload.py -p firefox -v 3.6rc2 -n 1 --release-to-candidates-dir http://stage.mozilla.org/pub/mozilla.org/firefox/nightly/3.6rc2-candidates/build1/linux-i686/eo/firefox-3.6rc2.tar.bz2 Traceback (most recent call last): File "/usr/bin/post_upload.py", line 267, in ? func(options, upload_dir, files) File "/usr/bin/post_upload.py", line 140, in ReleaseToCandidatesDir CopyFileToDir(f, upload_dir, realCandidatesPath, preserve_dirs=True) File "/usr/bin/post_upload.py", line 38, in CopyFileToDir os.makedirs(full_dest_dir, 0755) File "/usr/lib/python2.4/os.py", line 159, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/home/ftp/pub/firefox/nightly/3.6rc2-candidates/build1/linux-i686/xpi' Encountered error while uploading
This should be a simple fix, I'll have a look.
Assignee: nobody → bhearsum
Pretty hard to reproduce this in staging, but I have verified that 'make upload' works as intended still.
Attachment #422210 - Attachment is obsolete: true
Attachment #422224 - Flags: review?(catlee)
Attachment #422224 - Flags: review?(catlee) → review+
Comment on attachment 422224 [details] [diff] [review] better version, using errno changeset: 479:694b96076cd8
Attachment #422224 - Flags: checked-in+
Landed, updated the checkout on stage.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: