Closed Bug 605594 Opened 15 years ago Closed 15 years ago

Traceback in update_product_details cron job on mdn.stage

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Assigned: oremj)

Details

I am currently getting the following traceback for a cron job on mdn.stage: --- Traceback (most recent call last): File "manage.py", line 50, in <module> execute_manager(settings) File "/data/www/mdn.staging.mozilla.com/mdn/vendor/packages/Django/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/data/www/mdn.staging.mozilla.com/mdn/vendor/packages/Django/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/data/www/mdn.staging.mozilla.com/mdn/vendor/packages/Django/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/data/www/mdn.staging.mozilla.com/mdn/vendor/packages/Django/django/core/management/base.py", line 218, in execute output = self.handle(*args, **options) File "/data/www/mdn.staging.mozilla.com/mdn/vendor/packages/Django/django/core/management/base.py", line 347, in handle return self.handle_noargs(**options) File "/data/www/mdn.staging.mozilla.com/mdn/vendor/src/django-mozilla-product-details/product_details/management/commands/update_product_details.py", line 54, in handle_noargs if not self.download_json_file(json_file): File "/data/www/mdn.staging.mozilla.com/mdn/vendor/src/django-mozilla-product-details/product_details/management/commands/update_product_details.py", line 157, in download_json_file os.lchmod(tf.name, 0644) AttributeError: 'module' object has no attribute 'lchmod' --- Since lchmod was only added in Python 2.6, this seems to me like it's run on 2.4 on accident. Though the command `python26 manage.py update_product_details` indicates otherwise. The code works great on Python 2.6 locally. Can someone help to figure it out?
Assignee: server-ops → jeremy.orem+bugs
It seems, lchmod is only available on BSD-based unixes, like OS X. Lame. http://bugs.python.org/issue7479 I fixed it and updated the library version MDN is using. Will close this if the traceback does not come back.
Status: NEW → ASSIGNED
I think ozten fixed this yesterday.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Yea, I fixed it first, then Ozten fixed it better, so we took his :) Collaboration++ The email output looks like it's working now, verified.
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.