Page MenuHomePhabricator

nowiki: MediaWiki\Storage\NameTableAccessException: No insert possible but primary DB didn't give us a record for 'vue' in 'content_models'
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.45.0-wmf.24
  • timestamp: 2025-10-28T01:34:41.404Z
  • phpversion: 8.1.33
  • reqId: 8cb85e8f-8932-42c5-8fa8-4591e76a3e18
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   MediaWiki\Storage\NameTableAccessException: No insert possible but primary DB didn't give us a record for 'vue' in 'content_models'
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.24/includes/Storage/NameTableStore.php(391)
#0/srv/mediawiki/php-1.45.0-wmf.24/includes/Storage/NameTableStore.php(151)MediaWiki\Storage\NameTableStore->store(string)
#1/srv/mediawiki/php-1.45.0-wmf.24/includes/Revision/RevisionStore.php(924)MediaWiki\Storage\NameTableStore->acquireId(string)
#2/srv/mediawiki/php-1.45.0-wmf.24/includes/Revision/RevisionStore.php(663)MediaWiki\Revision\RevisionStore->insertContentRowOn(MediaWiki\Revision\SlotRecord, Wikimedia\Rdbms\DatabaseMySQL, string)
#3/srv/mediawiki/php-1.45.0-wmf.24/includes/Revision/RevisionStore.php(621)MediaWiki\Revision\RevisionStore->insertSlotOn(Wikimedia\Rdbms\DatabaseMySQL, int, MediaWiki\Revision\SlotRecord, MediaWiki\Page\PageIdentityValue, array)
#4/srv/mediawiki/php-1.45.0-wmf.24/includes/Revision/RevisionStore.php(434)MediaWiki\Revision\RevisionStore->insertRevisionInternal(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseMySQL, MediaWiki\User\User, MediaWiki\CommentStore\CommentStoreComment, MediaWiki\Page\PageIdentityValue, int, int)
#5/srv/mediawiki/php-1.45.0-wmf.24/includes/libs/rdbms/database/Database.php(2323)MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(Wikimedia\Rdbms\DatabaseMySQL, string)
#6/srv/mediawiki/php-1.45.0-wmf.24/includes/libs/rdbms/database/DBConnRef.php(127)Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)
#7/srv/mediawiki/php-1.45.0-wmf.24/includes/libs/rdbms/database/DBConnRef.php(764)Wikimedia\Rdbms\DBConnRef->__call(string, array)
#8/srv/mediawiki/php-1.45.0-wmf.24/includes/Revision/RevisionStore.php(442)Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure)
#9/srv/mediawiki/php-1.45.0-wmf.24/includes/Storage/PageUpdater.php(1562)MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DBConnRef)
#10/srv/mediawiki/php-1.45.0-wmf.24/includes/Storage/PageUpdater.php(972)MediaWiki\Storage\PageUpdater->doCreate(MediaWiki\CommentStore\CommentStoreComment)
#11/srv/mediawiki/php-1.45.0-wmf.24/includes/editpage/EditPage.php(2548)MediaWiki\Storage\PageUpdater->saveRevision(MediaWiki\CommentStore\CommentStoreComment, int)
#12/srv/mediawiki/php-1.45.0-wmf.24/includes/editpage/EditPage.php(1819)MediaWiki\EditPage\EditPage->internalAttemptSave(array, bool, bool)
#13/srv/mediawiki/php-1.45.0-wmf.24/includes/editpage/EditPage.php(710)MediaWiki\EditPage\EditPage->attemptSave(array)
#14/srv/mediawiki/php-1.45.0-wmf.24/includes/actions/EditAction.php(55)MediaWiki\EditPage\EditPage->edit()
#15/srv/mediawiki/php-1.45.0-wmf.24/includes/actions/SubmitAction.php(29)MediaWiki\Actions\EditAction->show()
#16/srv/mediawiki/php-1.45.0-wmf.24/includes/actions/ActionEntryPoint.php(734)MediaWiki\Actions\SubmitAction->show()
#17/srv/mediawiki/php-1.45.0-wmf.24/includes/actions/ActionEntryPoint.php(505)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#18/srv/mediawiki/php-1.45.0-wmf.24/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#19/srv/mediawiki/php-1.45.0-wmf.24/includes/MediaWikiEntryPoint.php(184)MediaWiki\Actions\ActionEntryPoint->execute()
#20/srv/mediawiki/php-1.45.0-wmf.24/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#21/srv/mediawiki/w/index.php(3)require(string)
#22{main}
Impact
Notes

Details

MediaWiki Version
1.45.0-wmf.24
Request URL
https://no.wikipedia.org/w/index.php?action=submit&title=*

Event Timeline

This happened when I tried to create https://no.wikipedia.org/w/index.php?title=MediaWiki:Gadget-quickBlock/Main.vue&action=submit . I also tried creating it with just the boilerplate content instead of what I was actually adding, with the same result. I also tried creating it as a .js page, then moving it to the .vue name and changing the content model, and it failed with the same error at that last step.

Note that this would be the first page with the vue content model in this wiki.

jhsoby renamed this task from MediaWiki\Storage\NameTableAccessException: No insert possible but primary DB didn't give us a record for 'vue' in 'content_models' to nowiki: MediaWiki\Storage\NameTableAccessException: No insert possible but primary DB didn't give us a record for 'vue' in 'content_models'.Oct 28 2025, 1:50 AM

FYI, I was able to create the page, with the Vue content model, a couple days after this task was filed: https://no.wikipedia.org/w/index.php?title=MediaWiki:Gadget-quickBlock/Main.vue&action=history

I don't know if someone did something (@Zabe?), or if it just "magically" started working.

Should the task be closed, then, or is there a point to keeping it open?