https://bugzilla.wikimedia.org/show_bug.cgi?id=61350

Marcin Cieślak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected],
                   |                            |[email protected]
          Component|Installer                   |General
            Version|1.23.0                      |unspecified
           Assignee|[email protected]. |[email protected]
                   |org                         |
            Product|MediaWiki                   |MediaWiki-Vagrant

--- Comment #1 from Marcin Cieślak <[email protected]> ---
As of 21eb1ab07a8d95c58c6887078620ec90a05d27d7 (current master as of now)

I am getting a silent database error:

$ php -c /usr/home/saper/php.ini maintenance/install.php --dbtype=postgres
--dbuser=bzinstall --dbpass=bzinstall --pass=test wiki admin
PHP 5.3.27-pl0-gentoo is installed.
Warning: Could not find APC, XCache or WinCache.
Object caching is not enabled.
Found ImageMagick: /usr/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Warning: No --scriptpath specified, using default: /wiki.
Using server URL "/wiki".
Warning: Your default directory for uploads
(/usr/home/saper/public_html/pg/w/images/) is not checked for vulnerability
to arbitrary script execution during the CLI install.
Using the intl PECL extension for Unicode normalization.
The environment has been checked.
You can install MediaWiki.
Setting up database
$ 

Applying I61d5f262e60722bc08201b40b61a298d8af42223 as a fix for the bug 70030 I
am getting this:

(...)
Setting up database
A database query error has occurred.
Query: CREATE DATABASE ""
Function: PostgresInstaller::setupDatabase
Error: 42601 ERROR:  zero-length delimited identifier at or near """"
LINE 1: .../* PostgresInstaller::setupDatabase 127.0.0.1 */ DATABASE ""
                                                                     ^


Backtrace:
#0 /usr/home/saper/public_html/pg/w/includes/db/DatabasePostgres.php(537):
DatabaseBase->reportQueryError('ERROR:  zero-le...', '42601', 'CREATE
DATABASE...', 'PostgresInstall...', false)
#1 /usr/home/saper/public_html/pg/w/includes/db/Database.php(1182):
DatabasePostgres->reportQueryError('ERROR:  zero-le...', '42601', 'CREATE
DATABASE...', 'PostgresInstall...', false)
#2
/usr/home/saper/public_html/pg/w/includes/installer/PostgresInstaller.php(489):
DatabaseBase->query('CREATE DATABASE...', 'PostgresInstall...')
#3 [internal function]:
PostgresInstaller->setupDatabase(Object(PostgresInstaller))
#4 /usr/home/saper/public_html/pg/w/includes/installer/Installer.php(1584):
call_user_func(Array, Object(PostgresInstaller))
#5 /usr/home/saper/public_html/pg/w/includes/installer/CliInstaller.php(126):
Installer->performInstallation(Array, Array)
#6 /usr/home/saper/public_html/pg/w/maintenance/install.php(144):
CliInstaller->execute()
#7 /usr/home/saper/public_html/pg/w/maintenance/doMaintenance.php(98):
CommandLineInstaller->execute()
#8 /usr/home/saper/public_html/pg/w/maintenance/install.php(158):
require_once('/usr/home/saper...')
#9 {main}


which seems to indicates that --dbname parameter is missing.

With pure 1.23.0 (1346cdbba7e7f4560b572a73ecd3625192440e98) I am getting:

PHP 5.3.27-pl0-gentoo is installed.
Warning: Could not find APC, XCache or WinCache.
Object caching is not enabled.
Found ImageMagick: /usr/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Warning: No --scriptpath specified, using default: /wiki.
Using server URL "/wiki".
Warning: Your default directory for uploads
(/usr/home/saper/public_html/pg/w/images/) is not checked for vulnerability
to arbitrary script execution during the CLI install.
Using the intl PECL extension for Unicode normalization.
The environment has been checked.
You can install MediaWiki.
Setting up database
done
Checking for language PL/pgSQL
done
Creating schema
Tables creation failed.
Make sure that the user "bzinstall" can write to the schema "".

I am not using vagrant stuff, can you check if all files are in place?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to