-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
setup:upgrade not possible in after installing Sample Data Magento 2.4.1 #30685
Comments
Hi @NielsVroman. Thank you for your report.
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:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hello @NielsVroman Thank you for your report We have rechecked the reported issue on Magento 2.4.1 and did not face any error We have successfully deployed Sample Data using the command Can you please provide more information about your store and settings? Thank you in advance |
@engcom-Bravo I'll try to give some more info, this is al i've got: server is setup with The commands we used to set magento up are as followed: "$INSTALL_DIR/bin/magento" setup:install --base-url="$MAGENTO_BASE_URL" after this, we set the permissions. "$RUN_DIR/bin/magento" cron:install after this some configurations.
After this completes magento is running. This is about everything i can give regarding the setup of magento. |
Hello @NielsVroman Thank you for the quick response We are able to reproduce the issue. We have discovered that the main cause of the issue is the Production Mode Additional info from Engcom is added to the description |
✅ Confirmed by @engcom-Bravo Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Further investigation discovered that according to Install Sample Data using Composer article on Developer Documentation, Installing sample data in production mode fails. Please use Developer mode |
Hi @engcom-Golf. Thank you for working on this issue.
|
Hello, I am still facing this issue! |
I am also still have this issue! |
Yes, this same exact failure happens as originally reported, magento 2.4.1, attempting to install sample data, in Developer mode. |
Am also facing the same issue, may I know what is the fix or solution for this. I am in much needed. |
I got it to work after applying the merge request. I applied this directly on the server as this was just a temp demo site we created. |
How can I fix this issue? |
I have the same problem. I'm in |
Have the same issue with 2.4.3-p1 which includes the PR. Nothing is fixed. |
Same on 2.4.4: bin/magento setup:upgrade: System.log: |
Same on 2.3.5 |
I'm getting the same issue for 2.4.0, 2.4.1, 2.4.2, 2.4.3 and i've tried with all mode (default, developer) |
Still happening in 2.4.5 for me in developer mode. Has anyone got a solution? |
@max3w @PascalBrouwers [2022-09-29 12:25:04] main.ERROR: Sample Data error: {"error":{"root_cause":[{"type":"cluster_block_exception","reason":"index [magento2_product_1_v1] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}],"type":"cluster_block_exception","reason":"index [magento2_product_1_v1] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"},"status":403} [] []
[2022-09-29 12:25:05] main.ERROR: Sample Data error: Unable to unserialize value. Error: Syntax error [] []
[2022-09-29 12:25:05] main.ERROR: Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly. After searching the web I realized, there is not much space on a disk Elasticsearch can use (inside docker container in my case). I freed up some space in location the container was assigned to and it fixed issue. There is another solution, when you don’t want to free up disk space: https://www.naguel.com/blocked-by-forbidden-12-index-read-only-allow-delete-api/ but I haven’t tested that yet. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Error thrown:
unable to apply data patch magento\catalogrulesampledata\setup\patch\data\installcatalogrulesampledata for module magento_catalogrulesampledata. original exception message: rolled back transaction has not been completed correctly.
In the system log:
[2020-10-28 11:12:45] main.ERROR: Sample Data error: Unable to unserialize value. Error: Syntax error [] []
Returning the string that causes the error is:
string(352) "{"type":"Magento\CatalogRule\Model\Rule\Condition\Combine","attribute":null,"operator":null,"value":"1","is_value_processed":null,"aggregator":"all","conditions":[{"type":"Magento\CatalogRule\Model\Rule\Condition\Product","attribute":"category_ids","operator":"()","value":%url_key=pants-women,url_key=pants-men%,"is_value_processed":false}]}"
When returning an empty array instead of throwing the error it continues into the next error:
Module 'Magento_ConfigurableSampleData':
Running data recurring...{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}
Additional info from Engcom
Precondition MySQL 8
Steps to reproduce
create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.4.1 .
bin/magento sampledata:deploy
bin/magento setup:upgrade
Actual Result
Setup upgrade is aborted with an error
❌ Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly.
The text was updated successfully, but these errors were encountered: