Closed Bug 1091061 Opened 10 years ago Closed 10 years ago

Silence startpage-dev update cron job

Categories

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

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wenzel, Assigned: nmaul)

Details

(Whiteboard: [kanban:webops:https://kanbanize.com/ctrl_board/4/1783] )

I receive an email every ten minutes (rain or shine) from the update cron job on startpageadm.

Subject is this:
"Cron <root@startpageadm> /data/startpage-dev/src/start-dev.allizom.org/update.sh"

Please silence it by default unless an error occurs.

In addition, please take me off the recipients list for this, for the time being.
Actually, this should be an IT bug.
Assignee: nobody → server-ops
Component: Firefox Start → Server Operations
Product: Websites → mozilla.org
QA Contact: shyam
Version: unspecified → other
revision 96185

Index: modules/webapp/files/startpage/admin/etc-cron.d/startpage-dev-cron
===================================================================
--- modules/webapp/files/startpage/admin/etc-cron.d/startpage-dev-cron	(revision 96181)
+++ modules/webapp/files/startpage/admin/etc-cron.d/startpage-dev-cron	(working copy)
@@ -1,4 +1,4 @@
 #  $Id$

 MAILTO="fwenzel@mozilla.com"
-0-59/10 * * * * root /data/startpage-dev/src/start-dev.allizom.org/update.sh
+0-59/10 * * * * root /data/startpage-dev/src/start-dev.allizom.org/update.sh > /dev/null

This will send that output to /dev/null and only email if something is logged to stderr.
Assignee: server-ops → rbryce
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
It's still emailing, presumably because there is stuff being output to stderr. Here's the email content:

[2014-10-29 20:10:03] Running rsync_project
[2014-10-29 20:10:03] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/startpage-dev/src/start-dev.allizom.org/ /data/startpage-dev/www/start-dev.allizom.org/
[2014-10-29 20:10:03] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/startpage-dev/src/start-dev.allizom.org/ /data/startpage-dev/www/start-dev.allizom.org/ (0.120s)
[2014-10-29 20:10:03] Finished rsync_project (0.120s)
[2014-10-29 20:10:03] Running commit_www
[2014-10-29 20:10:03] [localhost] running: cd /data/startpage-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['start-dev.allizom.org']'
[2014-10-29 20:10:03] [localhost] failed: cd /data/startpage-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['start-dev.allizom.org']' (0.046s)
[localhost] out: # On branch master
[localhost] out: nothing to commit (working directory clean)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Also, Ben, who should receive emails on the 3.6 start page? Not me, but I'm currently the only one on there.
Flags: needinfo?(booboobenny+bugzilla)
Hmm why is there a cronjob running every 10 minutes on a 3.6 start page?

Based on that output.. it looks like it's doing an autodeploy to dev?

Can you point me in the direction of the repo it's pulling from. If we have not updated this page in many moons perhaps turning off the auto deploy is the best approach. I hate wasting electrons.
Flags: needinfo?(booboobenny+bugzilla)
Component: Server Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
QA Contact: shyam → nmaul
Whiteboard: [kanban:webops:https://kanbanize.com/ctrl_board/4/1783]
It looks like this update script does a 'git pull' from //github.com/mozilla/fx36start:

$ git remote -v
origin	https://github.com/mozilla/fx36start (fetch)
origin	https://github.com/mozilla/fx36start (push)
Sorry for the delay.

Let's do the following.

1. Please silence this unless there is an error.
2. Remove Fred's email and replace with mine bsternthal@mozilla.com
(In reply to Ben (:bensternthal) from comment #7)
> Sorry for the delay.
> 
> Let's do the following.
> 
> 1. Please silence this unless there is an error.
I need to take a look at how the script is exiting.  Currently, you should only get what is logged to STDERR.  From what :wenzel told me, this script doesn't exit cleanly most of the time.
> 2. Remove Fred's email and replace with mine bsternthal@mozilla.com
Updated to bsternthal@m.c
Should be good now.

all the output in comment 3 is from the 'deploy' script called at the end of the update.sh script. This can be silenced with a "-q" flag (which I added).
Assignee: rbryce → nmaul
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.