ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
331 stars 89 forks source link

AMS upgrade not working #201

Closed ryzom-pipeline closed 9 years ago

ryzom-pipeline commented 9 years ago

Original report by Matthew Lagoe (Bitbucket: botanic, GitHub: botanic).


Latest code upgrade throws

( ! ) Warning: mysqli_connect(): (HY000/1049): Unknown database 'mini01' in C:\development\ryzom\code\web\public_php\setup\database.php on line 45 Call Stack

Time Memory Function Location

1 0.0000 285176 {main}( ) ..\upgrade.php:0 2 0.0070 363296 upgrade_domain_databases( ) ..\upgrade.php:47 3 0.0070 363424 connect_database( ) ..\database.php:128 4 0.0070 363520 mysqli_connect ( ) ..\database.php:45 Failed to connect to the ring SQL server: Unknown database 'mini01'

ryzom-pipeline commented 9 years ago

Original comment by Jan Boon (Bitbucket: [Jan Boon](https://bitbucket.org/Jan Boon), ).


Then your config.php is wrong.

Your $cfg['db']['ring']['name'] somehow got changed.

This is only valid when domain role is selected.

ryzom-pipeline commented 9 years ago

Original comment by Matthew Lagoe (Bitbucket: botanic, GitHub: botanic).


Kaetemi, i found the issue the update throws in config values without showing you the options so you can run into issues where an upgrade throws in default values that breaks the install gonna have to change it to show the configuration values screen or somethin
ryzom-pipeline commented 9 years ago

Original comment by Jan Boon (Bitbucket: [Jan Boon](https://bitbucket.org/Jan Boon), ).


No.

The installer only throws in bogus value for web service roles you haven't selected, and besides, the value you have is not even the default value. The default value here is ring_mini01.

The value thrown in by the upgrade does not matter because the domain role did not exist before said upgrade version.

The error you're getting can only happen if you manually created the role_domain file, or if there was an invalid installed version in your config.php.

Issue is non-existent on a clean install or upgrade path.

ryzom-pipeline commented 9 years ago

Original comment by Jan Boon (Bitbucket: [Jan Boon](https://bitbucket.org/Jan Boon), ).


The bug that caused bad version in config.php is already fixed.