Page MenuHomePhabricator

Errors when rerunning ?page=Install steps
Closed, ResolvedPublic

Description

If rerunning the installer page page=Install, some steps fail non-gracefully:

  • Initializing statistics...

Gives a syntax error at

INSERT INTO site_stats (ss_row_id,ss_total_views,ss_total_edits,ss_good_articles,ss_total_pages,ss_users,ss_admins,ss_images) VALUES ('1','0','0','0','0','0','0','0')

inside "DatabaseSqlite::insert/single-row".

Error "19: column ss_row_id is not unique

Solution: Either an INSERT IGNORE or a REPLACE.

  • Generating default upgrade key...

It may return NULL instead of a Status (fixed in r81006).

  • Creating sysop account

Produces a "Mediawiki tried to access the database via wfGetDB(). This is not allowed" error (also with client installer).

  • Creating main page with default content...

This is the only one showing that it failed instead of a backtrace.
It allows you to continue, so it is already good? Perhaps the error should be smaller.


Version: 1.18.x
Severity: normal

Details

Reference
bz26947

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:24 PM
bzimport set Reference to bz26947.

This shouldn't be a problem as of r81211. It's no longer possible to re-run page=Install if _InstallDone.