Last modified: 2014-06-15 23:15:26 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 T68644, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66644 - runJobs.php stop working?
runJobs.php stop working?
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.23.0
All other
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-15 20:59 UTC by zoglun
Modified: 2014-06-15 23:15 UTC (History)
2 users (show)

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


Attachments

Description zoglun 2014-06-15 20:59:24 UTC
I am running MW 1.23.0 on centos with following environment: PHP	5.4.27 (fpm-fcgi) MySQL	5.6.17.

User report the wiki stop from update template. Then I realized that php runJobs.php stop working after I upgrade MW to 1.23.0.

I tried to run php runJobs.php --globals, and script stop here:

            [mPreprocessorClass] => Preprocessor_DOM
        )

    [wgTitle] =>
    [wgDeferredUpdateList] => Array
        (
        )

    [func] => DuoshuoExtension
    [profName] => Setup.php-extensions-DuoshuoExtension
    [wgServerName] =>
    [wgFullyInitialised] => 1
    [wgSharedSchema] =>
)

Which looks like a extension called Duoshuo blocked the runJobs.php. Unfortunately this is an important extension, I can not stop it. May I please to know what is wgSharedSchema, and how to modify the extension to fix this problem?

Extension page: https://github.com/duoshuo/duoshuo-mediawiki/blob/master/Duoshuo/Duoshuo.php
Comment 1 zoglun 2014-06-15 22:24:38 UTC
I tried to removed all extension and this time the runjob.php stop here:

 *RECURSION*
                    [user:RequestContext:private] => User Object
                        (
                            [mId] =>
                            [mName] =>
                            [mRealName] =>
                            [mPassword] =>
                            [mNewpassword] =>
                            [mNewpassTime] =>
                            [mEmail] =>
                            [mTouched] =>
                            [mToken] =>
                            [mEmailAuthenticated] =>
                            [mEmailToken] =>
                            [mEmailTokenExpires] =>
                            [mRegistration] =>
                            [mEditCount] =>
                            [mGroups] =>
                            [mOptionOverrides] =>
                            [mPasswordExpires:protected] =>
                            [mOptionsLoaded] =>
                            [mLoadedItems:User:private] => Array
                                (
                                )

                            [mFrom] => session
                            [mNewtalk] => -1
                            [mDatePreference] =>
                            [mBlockedby] => -1
                            [mHash] =>
                            [mRights] =>
                            [mBlockreason] =>
                            [mEffectiveGroups] =>
                            [mImplicitGroups] =>
                            [mFormerGroups] =>
                            [mBlockedGlobally] =>
                            [mLocked] =>
                            [mHideName] =>
                            [mOptions] =>
                            [mRequest:User:private] => FauxRequest Object
                                (
                                    [wasPosted:FauxRequest:private] =>
                                    [session:FauxRequest:private] => Array
                                        (
                                        )

                                    [data:protected] => Array
                                        (
                                        )

                                    [headers:protected] => Array
                                        (
                                        )

                                    [response:WebRequest:private] =>
                                    [ip:WebRequest:private] =>
                                    [protocol:protected] => http
                                )

                            [mBlock] =>
                            [mAllowUsertalk] =>
                            [mBlockedFromCreateAccount:User:private] =>
                            [mWatchedItems:User:private] => Array
                                (
                                )

                        )

                    [lang:RequestContext:private] =>
                    [skin:RequestContext:private] =>
                    [config:RequestContext:private] =>
                )

        )

    [wgParser] => StubObject Object
        (
            [mGlobal] => wgParser
            [mClass] => Parser
            [mParams] => Array
                (
                    [0] => Array
                        (
                            [class] => Parser
                        )

                )

        )

    [wgTitle] =>
    [wgDeferredUpdateList] => Array
        (
        )

    [wgFullyInitialised] => 1
    [wgSharedSchema] =>
)
Comment 2 Andre Klapper 2014-06-15 22:30:08 UTC
Might be a question for https://www.mediawiki.org/wiki/Project:Support_desk
Comment 3 Bawolff (Brian Wolff) 2014-06-15 22:41:44 UTC
> 
> Which looks like a extension called Duoshuo blocked the runJobs.php.
> Unfortunately this is an important extension, I can not stop it. May I
> please to know what is wgSharedSchema, and how to modify the extension to
> fix this problem?
> 

I don't think that conclusion is justified based on what you said here. --globals is unlikely to get you interesting debugging output. If you really want debugging output to see where it stops, do php runJobs.php --profiler trace

----

What happens when you run it just normally

php runJobs.php

What's the output of
php showJobs.php

what about

php showJobs.php --group

-----
(In reply to Andre Klapper from comment #2)
> Might be a question for https://www.mediawiki.org/wiki/Project:Support_desk

probably.
Comment 4 zoglun 2014-06-15 22:51:07 UTC
There are not any result of php runJobs.php:

[root@moegirl-1 maintenance]# php runJobs.php
[root@moegirl-1 maintenance]#


A interesting thing I found is that php showJobs.php got 0 result. But http://zh.moegirl.org/api.php?action=query&meta=siteinfo&siprop=statistics shows there are 449 jobs.

There are no result of php showJobs.php --group

[root@moegirl-1 maintenance]# php showJobs.php --group
[root@moegirl-1 maintenance]#

By php runJobs.php --profiler trace

It show as:

0.000042   -0.9    < LoadBalancer::getConnection
            6.9    > DatabaseBase::query
            0.8     > query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X' LIMIT N,...,N
0.000199    0.4     < query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X' LIMIT N,...,N
0.000228   -0.6    < DatabaseBase::query
            0.2    > DatabaseBase::query
            0.8     > query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X') ORDER BY job_random ASC LIMIT N
0.000206    0.5     < query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X') ORDER BY job_random ASC LIMIT N
0.000236   -0.6    < DatabaseBase::query
           -0.2    > DatabaseBase::query
            0.8     > query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X') ORDER BY job_random DESC LIMIT N
0.000217    0.5     < query: SELECT job_id,job_cmd,job_namespace,job_title,job_t
imestamp,job_params,job_random,job_attempts,job_token,job_token_timestamp,job_sh
aN FROM `job` WHERE job_cmd = 'X') ORDER BY job_random DESC LIMIT N
0.000255   -0.6    < DatabaseBase::query
0.001315  -10.9   < JobQueue::pop
            0.2   > JobQueueAggregator::notifyQueueEmpty
0.000022   -0.5   < JobQueueAggregator::notifyQueueEmpty
           14.1   > DeferredUpdates::doUpdates
0.000024   -0.5   < DeferredUpdates::doUpdates
Comment 5 Kunal Mehta (Legoktm) 2014-06-15 23:02:24 UTC
What version of MediaWiki did you upgrade from?
Comment 6 zoglun 2014-06-15 23:03:46 UTC
upgrade from mediawiki-1.22.6
Comment 7 zoglun 2014-06-15 23:15:26 UTC
I "TRUNCATE" the job table then rerun php runJobs.php, everything works fine now. I guess the job table was damaged while upgrading.

Thank you Bawolff! Thank you for your help

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


Navigation
Links