Page MenuHomePhabricator

importDump.php dies with status 1 for sqlite:LError: 8 attempt to write a readonly database
Open, MediumPublicBUG REPORT

Description

Author: wmf.amgine3691

Description:
Attempted to import a dump of uncyclopedia into a clean install (via git) using sqlite:

$ nice -10 time php maintenance/importDump.php /home/amgine/Downloads/pages_full.xml.gz
A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: INSERT OR IGNORE INTO page (page_id,page_namespace,page_title,page_counter,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES (NULL,'4','Upload_log','0','','0','1','0.727702939800','20121114033246','0','0')
Function: WikiPage::insertOn/single-row
Error: 8 attempt to write a readonly database

Command exited with non-zero status 1

I've dumped the LocalSettings.php and reinstalled with MySQL, and restarted the import, am crossing fingers, knocking on wood, and will likely sacrifice a virgin (kitten) if it's still running in the a.m.


Version: 1.21.x
Severity: major

Details

Reference
bz42093