Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error Magento Release 2.4.8-beta1 #91

Open
princessfrombabylon99 opened this issue Nov 4, 2024 · 2 comments
Open

Installation error Magento Release 2.4.8-beta1 #91

princessfrombabylon99 opened this issue Nov 4, 2024 · 2 comments

Comments

@princessfrombabylon99
Copy link

princessfrombabylon99 commented Nov 4, 2024

Preconditions (*)

Meta-for -magento21.3.4 , ubuntu 24.04
Magento Release 2.4.8-beta1
1.
2.

Steps to reproduce (*)

php bin/magento setup:static-content:deploy -f

Deploy using quick strategy
Error happened during deploy process: SQLSTATE[HY000] [2002] Connection refused

Execution time: 0.022507190704346

In Abstract.php line 148:

SQLSTATE[HY000] [2002] Connection refused

In Abstract.php line 128:

SQLSTATE[HY000] [2002] Connection refused
Deploy using quick strategy
Error happened during deploy process: SQLSTATE[HY000] [2002] Connection refused

Execution time: 0.01332688331604

In Abstract.php line 148:

SQLSTATE[HY000] [2002] Connection refused

In Abstract.php line 128:

SQLSTATE[HY000] [2002] Connection refused
11% < 1 sec 119.0 MiBPHP Fatal error: Declaration of Meta\BusinessExtension\Logger\Handler::write(array $record): void must be compatible with Magento\Framework\Logger\Handler\Base::write(Monolog\LogRecord $record): void in /var/www/html/magento2/vendor/meta/module-business-extension/Logger/Handler.php on line 66

Expected result (*)

  1. [Screenshots, logs or description]

Actual result (*)

  1. image
@sol-loup
Copy link
Contributor

sol-loup commented Nov 8, 2024

Hi @princessfrombabylon99 thanks for the input.

You have two issues here. The first is that during deployment, your MYSQL db is encountering an issue -- may just need to run one more time. We have seen this happen in the past; sometimes patch updates to DB schema take longer than the duration of a deployment.

However, the second issue (logging the error itself) is being caused by an update in Magento 2.4.8's monolog base library. We'll push a fix for this, but if you're trying to get unblocked in the interim, simply remove the "array" parameter typehint from this line

https://github.com/magento/meta-for-magento2/blob/main/app/code/Meta/BusinessExtension/Logger/Handler.php#L66

@princessfrombabylon99
Copy link
Author

Hi @princessfrombabylon99 thanks for the input.

You have two issues here. The first is that during deployment, your MYSQL db is encountering an issue -- may just need to run one more time. We have seen this happen in the past; sometimes patch updates to DB schema take longer than the duration of a deployment.

However, the second issue (logging the error itself) is being caused by an update in Magento 2.4.8's monolog base library. We'll push a fix for this, but if you're trying to get unblocked in the interim, simply remove the "array" parameter typehint from this line

https://github.com/magento/meta-for-magento2/blob/main/app/code/Meta/BusinessExtension/Logger/Handler.php#L66

Will wait for the FIX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants