If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Status

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

People

(Reporter: giorgos, Assigned: jd)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Hi,

Please push tag 'v0.3' of github.com/mozilla/remo to our stage server reps.allizom.org

Thanks!
(Assignee)

Comment 1

5 years ago
Giorgos,

I ran into a few errors when attempting to deploy to stage.  Please see attached file.

First you will notice two errors on the first attempt for:
    warning: unable to rmdir vendor-local/src/django-browserid: Directory not empty
    warning: unable to rmdir src/django: Directory not empty

Then I got:
    django.core.exceptions.ImproperlyConfigured: settings.HMAC_KEYS cannot be empty! Check your local settings

I copied the 'HMAC_KEYS = {}' from the dev settings file. If you wish to have a different key from the dev site then please provide the key you would like to use.

I attempted the push again (twice) but got:
    cat: /data/engagement-stage/src/reps.allizom.org/remo/media/static/browserid/browserid.js: No such file or directory

Please let me know when this issue is resolved and I will attempt the push again.

Regards
Status: NEW → ASSIGNED
(Assignee)

Comment 2

5 years ago
Created attachment 645772 [details]
Update Output
(Reporter)

Comment 3

5 years ago
Jason,

sorry for the mess, I forgot to link to the bug with deployment notes. bug 765247

so to your points:

1. Your HMAC solution sounds good. You can place there any big random string
2. For the browserid.js problem, please run 

./manage.py collectstatic --noinput 

to fix this. There is related bug 771789

I believe we should add this command to the update script, also for future use.

3. About src/django dir not being empty, you can safely remove it completely.

Thanks!
(Assignee)

Comment 4

5 years ago
Giorgos,


./manage.py collectstatic --noinput was already in the update script but it came after compress_assets.  I reversed these so that collectstatic will run first in future.  I also completed the steps from bug 765247 and re-ran the update script.  Things seem to have worked this time, I will attach the output.

I have not made the bug 765247 changes to prod yet so please request these when you file the bug for the prod push.

Please let me know if there are additional issues.

Regards
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Assignee)

Comment 5

5 years ago
Created attachment 645833 [details]
Update Output - Good

Comment 6

5 years ago
Thanks guys, I'll start the sec review now
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.