Careers Dev Does Not Appear To Be Auto-Updating

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: bensternthal, Assigned: cturra)

Tracking

Details

(URL)

(Reporter)

Description

4 years ago
Checking dev this morning it does not look to have the latest merged code from master.

It looks like it has updated in the past... just not recently.

Can you check to see if things are running OK?
(Assignee)

Comment 1

4 years ago
i manually ran the update script in -dev and the following was returned. thoughts on how to resolve?

+ echo -e 'Compressing assets...'
Compressing assets...
+ cd /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh
+ python ./manage.py compress_assets
/usr/lib/python2.6/site-packages/pytz/__init__.py:32: UserWarning: Module git was already imported from /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/git/__init__.py, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import resource_stream
/usr/lib/python2.6/site-packages/pytz/__init__.py:32: UserWarning: Module south was already imported from /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor-local/lib/python/south/__init__.py, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import resource_stream
To turn on cache busting, use settings.CACHEBUST_IMGS
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university.css: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university.css > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university-all.css.tmp exited with a non-zero status.
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university-ie8.css: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university-ie8.css > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/university-ie8-all.css.tmp exited with a non-zero status.
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/base.css: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/base.css > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/css/common-all.css.tmp exited with a non-zero status.
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/html5shiv-printshiv.js: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/html5shiv-printshiv.js > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/ie8shims-all.js.tmp exited with a non-zero status.
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/university.js: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/university.js > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/university-all.js.tmp exited with a non-zero status.
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/jquery-1.7.1.min.js: No such file or directory
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/modernizr.custom.05289.js: No such file or directory
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/waypoints.min.js: No such file or directory
cat: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/base.js: No such file or directory
cat /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/jquery-1.7.1.min.js /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/modernizr.custom.05289.js /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/libs/waypoints.min.js /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/base.js > /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/js/common-all.js.tmp exited with a non-zero status.
Traceback (most recent call last):
  File "./manage.py", line 23, in <module>
    manage.main()
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/src/funfactory/funfactory/manage.py", line 143, in main
    execute_manager(current_settings)
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor-local/lib/python/jingo_minify/management/commands/compress_assets.py", line 115, in handle
    self.update_hashes(options.get('add_timestamp', False))
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor-local/lib/python/jingo_minify/management/commands/compress_assets.py", line 53, in update_hashes
    f.write('BUILD_ID_IMG = "%s"\n' % media_git_id('img'))
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor-local/lib/python/jingo_minify/management/commands/compress_assets.py", line 42, in media_git_id
    id = git.repo.Repo(path(media_path)).log('-1')[0].id_abbrev
  File "/data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/vendor/lib/python/git/repo.py", line 50, in __init__
    raise NoSuchPathError(epath)
git.errors.NoSuchPathError: /data/genericrhel6-dev/src/careers-dev.allizom.org/lumbergh/static/img
Flags: needinfo?(booboobenny+bugzilla)
(Reporter)

Comment 2

4 years ago
I need to defer to mkelly on this one.
Flags: needinfo?(booboobenny+bugzilla) → needinfo?(mkelly)
Aha, I believe this was affected by some of the changes made for bug 918355 (moved static assets out of root static folder). The new push script will work with the new layout, but the old one will fail.

Short-term the fix is to add a call to `python manage.py collectstatic` before the asset compression part of the script. Once we get chief set up we should switch to a cron that triggers it instead of the current IT-managed script.
Flags: needinfo?(mkelly)

Comment 4

4 years ago
Getting the following, should I answer yes??

You have requested to collect static files at the destination
location as specified in your settings.

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel:
Whoops, yes. In fact, just use the --noinput flag to make it happy:

python manage.py collectstatic --noinput
(Assignee)

Comment 6

4 years ago
:mkelly - you're the man. with the changes you have suggested, the update script manually runs without error once again :) we should be back on track \o/
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.