Description
Event Timeline
"Wikimedia\Rdbms\DBTransactionError":
e01acfbf03aff9644fa2f37e
"LogicException":
2892a22ba7022c0833768618
For deleting a page:
rhinos@mwtask1:~$ sudo -u www-data php /srv/mediawiki/w/maintenance/deleteBatch.php delsuper.txt --wiki=superwiki דף הביתLogicException from line 432 of /srv/mediawiki/w/includes/page/DeletePage.php: No revisions for דף הבית? #0 /srv/mediawiki/w/includes/page/DeletePage.php(385): MediaWiki\Page\DeletePage->deleteInternal('') #1 /srv/mediawiki/w/includes/page/WikiPage.php(2698): MediaWiki\Page\DeletePage->deleteUnsafe('') #2 /srv/mediawiki/w/maintenance/deleteBatch.php(124): WikiPage->doDeleteArticleReal('', Object(User), false, NULL, '', NULL, Array, 'delete', true) #3 /srv/mediawiki/w/maintenance/doMaintenance.php(108): DeleteBatch->execute() #4 /srv/mediawiki/w/maintenance/deleteBatch.php(141): require_once('/srv/mediawiki/...') #5 {main} [180dd79fbf942d9c795f7887] [no req] Wikimedia\Rdbms\DBTransactionError: Explicit transaction still active. A caller may have caught an error. Open transactions: MediaWiki\Page\DeletePage::deleteInternal Backtrace: from /srv/mediawiki/w/includes/libs/rdbms/database/Database.php(1637) #0 /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1757): Wikimedia\Rdbms\Database->assertNoOpenTransactions() #1 /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2344): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\DatabaseMysqli) #2 /srv/mediawiki/w/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1781): Wikimedia\Rdbms\LoadBalancer->forEachOpenPrimaryConnection(Closure) #3 /srv/mediawiki/w/includes/libs/rdbms/lbfactory/LBFactory.php(249): Wikimedia\Rdbms\LoadBalancer->approvePrimaryChanges(array, string, integer) #4 /srv/mediawiki/w/includes/libs/rdbms/lbfactory/LBFactoryMulti.php(236): Wikimedia\Rdbms\LBFactory::Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\LoadBalancer, string, array) #5 /srv/mediawiki/w/includes/libs/rdbms/lbfactory/LBFactory.php(251): Wikimedia\Rdbms\LBFactoryMulti->forEachLB(Closure, array) #6 /srv/mediawiki/w/includes/libs/rdbms/lbfactory/LBFactory.php(315): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod(string, array) #7 /srv/mediawiki/w/maintenance/includes/Maintenance.php(1243): Wikimedia\Rdbms\LBFactory->commitPrimaryChanges(string) #8 /srv/mediawiki/w/maintenance/doMaintenance.php(130): Maintenance->shutdown() #9 /srv/mediawiki/w/maintenance/deleteBatch.php(141): require_once(string) #10 {main}
The page somehow managed to exist with no revisions. I've dropped it from the backend tables.
Please get an exception id for the import issue.
I'll cleanup in a second. Have you tried the import again? It's the import leaving it broken causing it.
I just created that page, exported it, deleted it and then tried to import it just to check.
"No revisions imported (all were either already present, or skipped due to errors)."
I assume you can reproduce this issue too.
Please list the pages.
Please also give us the exact options you're using to export.
(And preferably don't try any more until we can fix this)
Okay.
All the mainspace pages:
Export:
*Include only the current revision, not the full history
*Save as file
Import:
*Prefix: superwiki
*Assign edits to local users where the named user exists locally
*No comment
*Import to default locations
I moved all of the mainspace pages with all of their history to a draft, and then successfully imported the last versions (there's no copyright problem). Everything seems fine. Thank you for your help.
This issue reminded me this old file. I don't even remember what it was and I don't need it anymore. Can you remove it?
The page was deleted, but the file itself remained:
An unknown error occurred in storage backend "local-backend".
It still appears under "Unused files".
I've checked every place I can think MediaWiki would hold data but so far it still persists.
Whatever you did worked. You somehow deleted the older version so I was able to delete the newer version... and then there were none. Thanks!