Page MenuHomePhabricator

Database error when running install script with postgres: 23505 ERROR: duplicate key value violates unique constant "updatelog_pkey". (Key ul_key from filearchive-fa_major_mime-patch-fa_major_mime-chemical.sql already exists)
Closed, DuplicatePublic

Description

Hey,
Trying to install and set up MediaWiki on my machine with postgreSQL. However got this error. Any suggestions on what I could do?

Screenshot from 2018-02-13 14-09-15.png (1×3 px, 800 KB)

Event Timeline

Hi @aniansson, thanks for taking the time to report this!
Which exact MediaWiki version is this about? Which Postgres version? (Also, can you please post text as text so it can be found by search engines? Thanks!)
Is this an update, as it says "MediaWiki tables seem to already exist"? If so, from which exact version? How did you upgrade the extensions?

(This might turn out to be a support request for https://www.mediawiki.org/wiki/Project:Support_desk instead of a software bug.)

Aklapper renamed this task from Database error when running install script with postgres to Database error when running install script with postgres: 23505 ERROR: duplicate key value violates unique constant "updatelog_pkey". (Key ul_key from filearchive-fa_major_mime-patch-fa_major_mime-chemical.sql already exists).Feb 13 2018, 2:22 PM

Hi, this is not an update.

This is me trying to get Mediawiki running on my machine for the first time. I think the mediawiki version is 1.31.0 and the postgres version is 9.5.11

nevermind, it seems to be wroking now. not sure why or how, guess thats programming. ;)

Great to hear it works for you now!

Issue looks like this is the same problem as T167924, hence closing as duplicate.