Hey,
I was trying to upgrade from Magento 2.3.0 to Magento 2.3.1 via composer. While downloading all dependencies worked, the setup:upgrade command fails instantly. Any way to fix this? Details below:
composer require magento/product-community-edition 2.3.1 --no-update
composer update
php bin/magento setup:upgrade
Hi @abcpremium. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me 2.3-develop instance
- upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@abcpremium do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@magento-engcom-team give me 2.3-develop instance
Hi @abcpremium. Thank you for your request. I'm working on Magento 2.3-develop instance for you
Hi @abcpremium, here is your Magento instance.
Admin access: https://i-21957-2-3-develop.instances.magento-community.engineering/admin
Login: admin
Password: 123123q
Instance will be terminated in up to 3 hours.
I tried to connect via SSH to the deployed instance, which does not seem to be possible. How should I reproduce the issue then?
EDIT: I used my own second vanilla magento instance and I can reproduce the issue.
@abcpremium Flush your redis cache. And you should be all set. I am facing different error during compilation.
In Generator.php line 218:
Source class "\Magento\Elasticsearch6\Model\Adapter\FieldMapper\ProductField" for "Magento\Elasticsearch6\Model\Adapter\FieldMapper\P
roductFieldMapper" generation does not exist.
@ethniccode Thank you that worked. However I face a similar issue to yours:
In Generator.php line 218:
Source class "\AuthorizenetAcceptjsVirtualErrorMessage" for "AuthorizenetAcceptjsVirtualErrorMessageMapper" generation does not exist.
EDIT: Running the setup:di:compile
a second time resolved the issue for me.
@abcpremium I tried setup di:compile multiple times. Doesn't seem to work for me. Also can you tell me if you are facing this issue. https://github.com/magento/magento2/issues/20255
@ethniccode Sorry to hear that. But regarding your question, I do not have that issue. However now with 2.3.1 some JS files are missing. Only some, not all ... weird...
@ethniccode I am facing the same problem as you with the Elasticsearch6 error.
Please share your solution when you find it.
@mikehenze Sure. I will do that. You also please share if you find a solution.
@ethniccode You can disable the Elasticsearch6 module and continue for now:
php bin/magento module:disable Magento_Elasticsearch6
@mikehenze Thanks Mike. Do let me know if you find a permanent solution. This seems to be a workaround.
Clearing redis cache ( redis-cli flushall
) resolved the issue for me.
Clearing redis cache (
redis-cli flushall
) resolved the issue for me.
This should be part of the steps outlined in the upgrade document (https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html). The command should be run after composer update
and before bin/magento cache:clean
.
The Magento team should take note of this.
Got this error too when upgrading to 2.3.1
Flushing redis cache manually is a working workaround, but a permanent solution should be found.
Hi @engcom-Alfa. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.[x] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[x] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[x] 4. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[ ] 6. Add label Issue: Confirmed
once verification is complete.
[ ] 7. Make sure that automatic system confirms that report has been added to the backlog.
I can't reproduce this issue on 2.3-develop.
Most helpful comment
Clearing redis cache (
redis-cli flushall
) resolved the issue for me.