Status

Websites
webifyme.org
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: ozten, Assigned: jabba)

Tracking

Details

(URL)

(Reporter)

Description

7 years ago
Cron <root@mradm02> /data/engagement-dev/python/webifyme.org/update > /dev/null
http://pastebin.mozilla.org/1213572

This is happening every 15 minutes since 9:30am today.
(Assignee)

Comment 1

7 years ago
this is happening because .gitmodules in the project has:

[submodule "ff4/vendor"]
    path = ff4/vendor
    url = git@github.com:mozilla/webifyme-lib.git

which is an ssh url. This worked manually of course because I had my key forwarded and my key is on github, however once I log out and let this run from cron, it fails publickey authentication.

I think changing that to https:// or git:// should probably fix this issue.
Assignee: server-ops → nobody
Component: Server Operations → webifyme.org
Product: mozilla.org → Websites
QA Contact: mrz → webifyme-org
(Assignee)

Comment 2

7 years ago
This is the update script I'm running from cron. Please let me know if it can be simplified or improved upon.

CC'ing jbalogh for his opinion too.


#!/bin/bash


function checkretval()
{
    retval=$?
        if [[ $retval -gt 0 ]]
        then
                $error "Error!!! Exit status of the last command was $retval"
                exit $retval
        fi
}

CODE_DIR="/data/engagement-dev/python/webifyme.org/webifyme"
VENDOR_DIR="$CODE_DIR/ff4/vendor"
#LOCALE_DIR="$CODE_DIR/ff4/locale"

echo -e "Updating code..."
cd $CODE_DIR
git fetch origin -q
git checkout -f origin/master -q
git submodule sync -q
git submodule update --init --recursive -q

echo -e "Updating vendor..."
cd $VENDOR_DIR
git fetch origin -q
git checkout -f origin/master -q
git submodule sync -q
git submodule update --init --recursive -q

cd $CODE_DIR/ff4
python26 ./manage.py migrate
checkretval

#cd $LOCALE_DIR
#svn up
#checkretval

/usr/bin/rsync -aq --exclude '.git*' --exclude '.svn*' --delete /data/engagement-dev/python/webifyme.org/ /data/engagement-dev/www/python/webifyme.org

Comment 3

7 years ago
aebf728 [2 minutes ago] (brez) changing git URL to avoid using ssh
(In reply to comment #3)
> aebf728 [2 minutes ago] (brez) changing git URL to avoid using ssh

If you're going to paste commits, then please make them actual links, like so: https://github.com/mozilla/webifyme/commit/aebf7286ddf09b6c39e00c22a379cd2e75065617

Thanks.

Comment 5

7 years ago
Is this fixed? Thanks!
Assignee: nobody → jdow
(Assignee)

Comment 6

7 years ago
Yes.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.