Last modified: 2012-11-18 13:45:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42983, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40983 - beta autoupdater does not work anymore
beta autoupdater does not work anymore
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
: 41311 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-12 15:21 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-11-18 13:45 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-10-12 15:21:52 UTC
I have applied the beta autoupdater system on deployment-jobrunner06 but the service does not start anymore :(


root@deployment-jobrunner06:/etc/init.d# service wmf-beta-autoupdate start
wmf-beta-autoupdate start/running, process 22652
root@deployment-jobrunner06:/etc/init.d# service wmf-beta-autoupdate status
wmf-beta-autoupdate stop/waiting
root@deployment-jobrunner06:/etc/init.d# 


Something terribly wrong there.
Comment 1 Sumana Harihareswara 2012-10-12 15:23:56 UTC
(In case it's relevant, the current version on the beta cluster http://deployment.wikimedia.beta.wmflabs.org/wiki/Special:Version is from 9 October.)
Comment 2 Antoine "hashar" Musso (WMF) 2012-10-12 16:08:38 UTC
# su -l -s /bin/bash mwdeploy
No directory, logging in with HOME=/
mwdeploy@deployment-jobrunner06:/$  exec /usr/local/bin/wmf-beta-autoupdate
2012-10-12 16:07:04 update MediaWiki core in /home/wikipedia/common/php-master

...

I have no idea what is going on :(
Comment 3 Antoine "hashar" Musso (WMF) 2012-10-12 16:38:56 UTC
I have spotted some additional error related to running the script as mwdeploy user :

https://gerrit.wikimedia.org/r/#/c/27372/ - fix a shell function name typo
https://gerrit.wikimedia.org/r/#/c/27731/ - some sudo rights were wrong
Comment 4 Antoine "hashar" Musso (WMF) 2012-10-12 16:40:53 UTC
The upstart script puppet:///files/upstart/wmf-beta-autoupdate.conf has a very simple script section:

     exec /usr/local/bin/wmf-beta-autoupdate 2>&1 1>> /var/log/wmf-beta-autoupdate.log

Of course that file is not writable by the mwdeploy user :(
Comment 5 Antoine "hashar" Musso (WMF) 2012-10-12 16:54:33 UTC
I have manually applied the pending patches and restart the service. It seems to be able to be running again. There might some file permissions error though.
Comment 6 Antoine "hashar" Musso (WMF) 2012-10-18 10:19:17 UTC
https://gerrit.wikimedia.org/r/#/c/28497/ - fix the git output  not being shown
Comment 7 Antoine "hashar" Musso (WMF) 2012-10-18 10:20:06 UTC
The updater is running on jobrunner06 where mwdeploy has UID #114 but the files in /home/wikipedia/common/ belong to UID #1002 (which is mwdeploy on deployment-dbdump at least).
Comment 8 Antoine "hashar" Musso (WMF) 2012-10-18 10:27:24 UTC
I have changed the UID of mwdeploy@deployment-jobrunner06 from 114 to 1002.  Seems to be working again.
Comment 9 Antoine "hashar" Musso (WMF) 2012-11-05 21:04:10 UTC
*** Bug 41311 has been marked as a duplicate of this bug. ***
Comment 10 Antoine "hashar" Musso (WMF) 2012-11-05 21:04:56 UTC
Moved the beta autoupdater from jobrunner06 to bastion instance.
Comment 11 Antoine "hashar" Musso (WMF) 2012-11-18 13:45:21 UTC
Users now update the configuration using the mwdeploy user as well, so we no more have any permissions issues between beta updater and regular users.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links