Silence startpage-dev update cron job



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


(Reporter: wenzel, Assigned: jakem)



(Whiteboard: [kanban:webops:] )



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/"

Please silence it by default unless an error occurs.

In addition, please take me off the recipients list for this, for the time being.

Comment 1

4 years ago
Actually, this should be an IT bug.
Assignee: nobody → server-ops
Component: Firefox Start → Server Operations
Product: Websites →
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$

-0-59/10 * * * * root /data/startpage-dev/src/
+0-59/10 * * * * root /data/startpage-dev/src/ > /dev/null

This will send that output to /dev/null and only email if something is logged to stderr.
Assignee: server-ops → rbryce
Last Resolved: 4 years ago
Resolution: --- → FIXED

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/ /data/startpage-dev/www/
[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/ /data/startpage-dev/www/ (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 ['']'
[2014-10-29 20:10:03] [localhost] failed: cd /data/startpage-dev/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['']' (0.046s)
[localhost] out: # On branch master
[localhost] out: nothing to commit (working directory clean)
Resolution: FIXED → ---

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)


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


4 years ago
Whiteboard: [kanban:webops:]

Comment 6

4 years ago
It looks like this update script does a 'git pull' from //

$ git remote -v
origin (fetch)
origin (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

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
Updated to bsternthal@m.c

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 script. This can be silenced with a "-q" flag (which I added).
Assignee: rbryce → nmaul
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.