Fresh install broken @ 2.3.0+1.39.3 #33

Closed
opened 2023-06-25 10:50:11 +00:00 by iexos · 3 comments
Member

Fresh deploy of 2.2.3+1.39.3, then upgrade to 2.3.0+1.39.3 works though

Fresh deploy of `2.2.3+1.39.3`, then upgrade to `2.3.0+1.39.3` works though
Owner

Thanks for the report @iexos!

I tried abra app new mediawiki and then deploying, and got this blow-up:

�2023-06-25T19:57:42.733859652Z 2023-06-25 19:57:42 6 [Warning] Access denied for user 'mediawiki'@'10.0.3.4' (using password: YES)
�2023-06-25T19:57:42.735071168Z Wikimedia\Rdbms\DBConnectionError from line 1477 of /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Access denied for user 'mediawiki'@'10.0.3.4' (using password: YES) (db)
�2023-06-25T19:57:42.735130929Z #0 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(972): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
�2023-06-25T19:57:42.735143687Z #1 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(944): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'mediawiki', 4)
�2023-06-25T19:57:42.735151502Z #2 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(95): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(-2, Array, 'mediawiki', 4)
�2023-06-25T19:57:42.735162518Z #3 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(101): Wikimedia\Rdbms\DBConnRef->ensureConnection()
�2023-06-25T19:57:42.735169546Z #4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(280): Wikimedia\Rdbms\DBConnRef->__call('getServerVersio...', Array)
{2023-06-25T19:57:42.735207888Z #5 /var/www/html/maintenance/update.php(156): Wikimedia\Rdbms\DBConnRef->getServerVersion()
|2023-06-25T19:57:42.735217959Z #6 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute()
�2023-06-25T19:57:42.735226786Z #7 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
p2023-06-25T19:57:42.735233883Z #8 /var/www/html/maintenance/update.php(312): require_once('/var/www/html/m...')
)2023-06-25T19:57:42.735240464Z #9 {main}

EDIT: I think this specific error was from leftover volumes from a previous test deployment, but I still think I'm on the right track with a cause / solution..

Thanks for the report @iexos! I tried `abra app new mediawiki` and then deploying, and got this blow-up: ``` �2023-06-25T19:57:42.733859652Z 2023-06-25 19:57:42 6 [Warning] Access denied for user 'mediawiki'@'10.0.3.4' (using password: YES) �2023-06-25T19:57:42.735071168Z Wikimedia\Rdbms\DBConnectionError from line 1477 of /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Access denied for user 'mediawiki'@'10.0.3.4' (using password: YES) (db) �2023-06-25T19:57:42.735130929Z #0 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(972): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() �2023-06-25T19:57:42.735143687Z #1 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(944): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'mediawiki', 4) �2023-06-25T19:57:42.735151502Z #2 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(95): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(-2, Array, 'mediawiki', 4) �2023-06-25T19:57:42.735162518Z #3 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(101): Wikimedia\Rdbms\DBConnRef->ensureConnection() �2023-06-25T19:57:42.735169546Z #4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(280): Wikimedia\Rdbms\DBConnRef->__call('getServerVersio...', Array) {2023-06-25T19:57:42.735207888Z #5 /var/www/html/maintenance/update.php(156): Wikimedia\Rdbms\DBConnRef->getServerVersion() |2023-06-25T19:57:42.735217959Z #6 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): UpdateMediaWiki->execute() �2023-06-25T19:57:42.735226786Z #7 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run() p2023-06-25T19:57:42.735233883Z #8 /var/www/html/maintenance/update.php(312): require_once('/var/www/html/m...') )2023-06-25T19:57:42.735240464Z #9 {main} ``` EDIT: I think this specific error was from leftover volumes from a previous test deployment, but I still think I'm on the right track with a cause / solution..
Owner

My guess is that the problem was introduced in 57cf8db -- which tries to run composer_install before init_db, where composer_install now tries to run maintenante/update.php -- which I guess fails because the database isn't initialised yet?

My guess is that the problem was introduced in 57cf8db -- which [tries to run `composer_install` before `init_db`](https://git.coopcloud.tech/coop-cloud/mediawiki/src/branch/main/entrypoint.sh.tmpl#L137-L141), where `composer_install` now [tries to run `maintenante/update.php`](https://git.coopcloud.tech/coop-cloud/mediawiki/src/branch/main/entrypoint.sh.tmpl#L22) -- which I guess fails because the database isn't initialised yet?
Owner

Attempting a fix now, stay tuned.

Attempting a fix now, stay tuned.
3wordchant referenced this issue from a commit 2023-06-25 20:17:21 +00:00
iexos closed this issue 2023-06-30 12:45:19 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/mediawiki#33
No description provided.