Closed Bug 876849 Opened 11 years ago Closed 11 years ago

Dev careers site broken compressed assets links (css & js)

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bensternthal, Assigned: cturra)

References

()

Details

We noticed the dev site for careers has broken compressed asset links.

Below is a comment from Jenn describing the issue:

Seems like auto deploy isn't minifying the assets and is grabbing the unminified version which returns a 404. Same error in stage which means /static/*.js and /static/*.css path is invalid now?

Stage does not currently look broken but should be checked for the same issue.
i just manually ran an update and everything *appeared* to run as expected, tho there are some python warnings. additionally, i confirmed that static/css/*.css and static/js/*.js files are indeed present.

does any of the following look incorrect to you?

[root@genericadm.private.phx1 ~]# /usr/bin/flock -w 10 /var/lock/careers-dev /data/genericrhel6-dev/src/careers-dev.allizom.org/update
Updating code...
Updating vendor submodules...
Cleaning gitignore and pyc files...
Compressing assets...
/usr/lib64/python2.6/site-packages/jinja2/__init__.py:31: 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
  __version__ = __import__('pkg_resources') \
To turn on cache busting, use settings.CACHEBUST_IMGS
Unchanged files skipped for minification: 2
Running syncdb and migrate...
/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__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import resource_stream
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
Installed 0 object(s) from 0 fixture(s)
? You have no migrations for the 'careers' app. You might want some.
Running migrations for django_jobvite:
- Nothing to migrate.
 - Loading initial data for django_jobvite.
Installed 0 object(s) from 0 fixture(s)
Updating product details...
/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__.pyc, but /usr/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import resource_stream
Product Details were up to date.
Storing revision information...
Deploying code...
[2013-05-28 13:37:32] Running rsync_project
[2013-05-28 13:37:32] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-dev/src/careers-dev.allizom.org/ /data/genericrhel6-dev/www/careers-dev.allizom.org/
[2013-05-28 13:37:33] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/genericrhel6-dev/src/careers-dev.allizom.org/ /data/genericrhel6-dev/www/careers-dev.allizom.org/ (0.710s)
[2013-05-28 13:37:33] Finished rsync_project (0.711s)
[2013-05-28 13:37:33] Running commit_www
[2013-05-28 13:37:33] [localhost] running: cd /data/genericrhel6-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['careers-dev.allizom.org']'
[2013-05-28 13:37:38] [localhost] finished: cd /data/genericrhel6-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['careers-dev.allizom.org']' (5.004s)
[localhost] out: [master b4b04e4] deploy [careers-dev.allizom.org]
[localhost] out: 4 files changed, 6 insertions(+), 6 deletions(-)
[2013-05-28 13:37:38] Finished commit_www (5.004s)

[root@genericadm.private.phx1 careers-dev.allizom.org]# ls lumbergh/static/
css/    global/ img/    js/

[root@genericadm.private.phx1 careers-dev.allizom.org]# ls lumbergh/static/css/
careers.css  common-all.css  common-min.css  covehead  video-js.css

[root@genericadm.private.phx1 careers-dev.allizom.org]# ls lumbergh/static/js/
careers.js  common-all.js  common-min.js  examples  libs  nav-main.js  util.js
Chris, is there something pointing Apache to render /static/css/covehead/content.css?

Right now https://careers-dev.allizom.org/static/css/covehead/content.css returns a 404 on dev and stage.
i just reviewed the apache config for dev and there was an alias for 'static' in the http (:80), but not for the https (:81) virtual host. i have applied that to the https virtual host now -- can you please test again for me?

*i would do this for you, but don't actually have the require basic auth password for -dev site.
Assignee: server-ops-webops → cturra
works! can you apply the same fix for careers.allizom.org too? thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
(In reply to Jen Fong-Adwent [:ednapiranha] from comment #4)
> works! can you apply the same fix for careers.allizom.org too?

update in stage now also.
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.