Silence startpage-dev update cron job

RESOLVED FIXED

Status

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

People

(Reporter: wenzel, Assigned: jakem)

Tracking

Details

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

(Reporter)

Description

4 years ago
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.
(Reporter)

Comment 1

4 years ago
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

Comment 2

4 years ago
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
Last Resolved: 4 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

4 years ago
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 → ---
(Reporter)

Comment 4

4 years ago
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)

Comment 5

4 years ago
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)

Updated

4 years ago
Component: Server Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
QA Contact: shyam → nmaul

Updated

4 years ago
Whiteboard: [kanban:webops:https://kanbanize.com/ctrl_board/4/1783]

Comment 6

4 years ago
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)

Comment 7

4 years ago
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

Comment 8

4 years ago
(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
(Assignee)

Comment 9

4 years ago
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
Last Resolved: 4 years ago4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.