Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

Filter by
Sorted by
Tagged with
0
votes
0answers
40 views

Unable to apply data patch: elasticsearch6

Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch. Original exception message: Indexer handler is not available: ...
0
votes
1answer
76 views

Magento 2.3.3 Install sample data error on setup upgrade

I got the following error on setup:upgrade after installing sample data in Magento 2.3.3 Error is thrown on Module Magento_CatalogSampleData PHP Fatal error: Uncaught Exception: User Error: Some ...
1
vote
1answer
138 views

Integrity constraint violation on setup:upgrade Magento 2.3.3

After updating to 2.3.3. I get the following error for the Temando_Shipping module. I disabled the module but that gives errors when editing products. When I try to enable and run 'magento setup:...
0
votes
1answer
42 views

After upgrade to 2.3.3, got SQLSTATE[23000]: Integrity constraint violation: 1022 when trying to run bin/magento setup:upgrade

I just upgrade to Magento 2.3.3 from Magento 2.2.9 following these steps (https://magento.stackexchange.com/questions/251778/how-to-upgrade-magento-version-from-2-2-x-to-2-3-0). However, at the step ...
1
vote
0answers
25 views

Upgrading Magento and missing files

If I do the following php bin/magento maintenance:enable composer require magento/product-community-edition 2.3.3 --no-update composer update rm -rf var/di var/generation php bin/magento cache:flush ...
0
votes
0answers
19 views

Git - bin/magento setup:upgrade ruining my branches

each time I create a new module, I understand I have to run bin/magento setup:upgrade to make it work. Thing is, this modifies a ton of files in my branch making it unusable. It is filled with ...
0
votes
0answers
26 views

setup:upgrade command is not running

I am using magento 2.3.2 and installed the theme and enable the theme module but i am not able to run the php bin/magento setup:upgrade command. please check the below image Any Solution please Note:...
0
votes
2answers
44 views

Magento 2: Error in setup:upgrade in magento 2

I am getting the following error during setup:upgrade: EDIT SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_id' in 'NEW', query was: CREATE TRIGGER ...
0
votes
1answer
81 views

Magento 2.3.x setup:upgrade fails after sample-data installed

I have a clean Magento 2.3.2 in docker container. After I installed sample data with bin/magento sampledata:deploy I cannot run setup:upgrade anymore even with --keep-generated parameter: Module '...
0
votes
2answers
47 views

SQL error when run command line upgrade Magento 2

When I run the following commmand: php bin/magento s:up; It throws the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_magen34.mg7a_sm_products_filter' doesn't ...
4
votes
0answers
132 views

setup:db:status still reports “Declarative Schema is not up to date” after update

Since an update to Magento 2.3 I am experiencing the following issue: bin/magento setup:db:status Declarative Schema is not up to date Run setup:upgrade to update your DB schema and data. Although ...
2
votes
2answers
91 views

No region found within the locale 'en' while running UpgradeData.php

I'm trying to set up 2 stores I created using InstallData script, but When I run php bin/magento setup:upgrade, I'm getting an error No region found within the locale 'en' and the process stops. What ...
1
vote
1answer
55 views

Magento2.3 module upgrade not working

I just upgraded from Magento2.2.5 to 2.3.2 and now when I try to go to the site I get a bunch of errors written to the exceptions log file about modules versions being incorrect. For example ...
0
votes
0answers
199 views

PHP Fatal error: Uncaught Error: Cannot instantiate interface in magento 2

I'm getting an error while running bin/magento setup:upgrade or any command from CLI. PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework \Cache\FrontendInterface ...
0
votes
1answer
162 views

Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE `catalog_category_product_index_tmp`

Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), ...
0
votes
1answer
39 views

Error on creating UpgradeSchema.php

<?php namespace Essence\Slider\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\...
0
votes
1answer
87 views

Unknown column 'entity_id' in 'OLD' in setup:upgrade after 2.3.2 migration

Recently I migrate a site to Magento 2.3.2. composer update run fine and without a problem. But, when I run a php bin/magento setup:upgrade it throws this error: Column not found: 1054 Unknown column ...
1
vote
5answers
1k views

php bin/magento setup:upgrade issue

Type Error occurred when creating object: Magento\Framework\Locale\Resolver when I run this command this error shows. I am using third party theme. Already tried deleting generated and var/di
0
votes
1answer
22 views

Remove category attribute script not working in magento 2.3.1

Hi I am trying to remove the category attribute using Uninstall script but it is not working. Here is my code. Setup\Uninstall.php <?php namespace Company\Module\Setup; use Magento\Eav\Setup\...
2
votes
2answers
858 views

Magento 2: Error undefined index while upgrading M 2.2.5 > M 2.3.1

While running bin/Magento setup: upgrade command I am facing this error. Schema creation/updates: Notice: Undefined index: core_store in /data/websites/website_url/public_html/vendor/magento/...
1
vote
2answers
149 views

Upgradeschema.php and UpgradeData.php scenarios

Points: 1.In my case i created a 'Customer Provident' product using upgradeData.php with version 1.0.3 and module version also 1.0.3 and it's created successfully. 2.Second time i wrote ...
1
vote
1answer
28 views

Cron script error on readness check

> Check Cron Scripts Cron script readiness check failed. Hide detail > > Error from Updater Application Cron Script: > > Found non-writable path(s): /var/www/html/pub/media/.htaccess &...
3
votes
1answer
395 views

Changing encryption key on Magento 2.3 | secret key size should be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes

Magento 2.3 has introduced a new encryption method and requires the encryption key to be 32 characters long / 32 bytes in size. If you run a setup:upgrade with a wrongly sized encryption key you will ...
2
votes
1answer
306 views

Patch isn't working

i'm using magento 2 path system but it's not working, when i do a setup upgrade it doesn't reach my die, could you explain me why ? <?php namespace MyVendor\Company\Setup\Patch\Data; use Magento\...
2
votes
0answers
37 views

Preference for Magento\Setup Classes not working

TLDR - Is there a reason I can't use preference for classes in Magento\Setup namespace, specifically during the setup:upgrade processing, OR is there something I am missing with the following ...
0
votes
1answer
53 views

File Upload as Category Attribute - Magento2

I want to create a custom attribute for Category, which is File Attribute. I want to upload any kind of documents in it. Like PDF,txt, doc, etc,. Anyone helps me to do that via setup Upgrade? Same ...
1
vote
0answers
98 views

Magento upgrade from 2.2.3 to 2.3.0 just blew Cheeze balls .. help

just finshed updating composer update, bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/pricesplitters/public_html/generated/code/Composer /home/pricesplitters/...
0
votes
1answer
333 views

Error : Cache frontend 'default' is not recognized after upgrade Magento version in 2.2.5

When I ran Setup:upgrade command then below error showing InvalidArgumentException: Cache frontend 'default' is not recognized. in /vendor/magento/framework/App/Cache/Frontend/Pool.php:150 Stack trace:...
0
votes
1answer
84 views

Warning: set_error_handler() expects parameter 2 to be integer, string given in bin/magento on line 21

I have ungraded my Magento 2.2.x Store to Magento 2.3. After upgrade everything was working fine. I have observed a new issue in PHP CLI. Once I run any CLI command I am getting PHP Warning Like ...
1
vote
0answers
52 views

Error after removing database Prefix

I am in the process of upgrading our Magento 2.2.5 website to version 2.3. I have managed to do this and the website works fine, as far as I can tell. However, we have a third party extension for a ...
1
vote
3answers
282 views

setup upgrade in integration after deployment(Magento2 cloud)

When does command setup:upgrade run after the code is deployed to production environment Is there any option to enable this configuration, and schedule when to run this command or it will run ...
1
vote
3answers
225 views

Magento 2 error upon setup:upgrade command

I am trying to upgrade a Magento 2 extension. When I run setup:upgrade, I get the following error, Upgrading data.. No such entity with cartId = 356670 How can I debug where exactly this error is ...
1
vote
0answers
271 views

Magento 2 : Upgrade Data Version of custom module using setup:db-data:upgrade

I created a custom module which has below UpgradeData.php. <?php namespace Akhil\Database\Setup; use Magento\Framework\Setup\UpgradeDataInterface; use Magento\Framework\Setup\...
0
votes
1answer
275 views

How to avoid issue “Unable to find a physical ancestor for a theme”

I have already checked this topic and this one But both them not actually solve 100% my real problem. My theme is installed via composer and it will placed in vendor folder. It's not have any parent ...
0
votes
1answer
153 views

Magento 2.3 setup:upgrade error sql

I used magento 2.3 and meet problem when run command upgrade. It shows: Warning: PDOStatement::execute(): MySQL server has gone away in vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo....
2
votes
3answers
2k views

Magento upgrade from 2.2.3 -> 2.3 error in module-configurable-product

Upgrading M2 from 2.2.3 to 2.3 gives me the following error during the magento setup:upgrade process: PHP Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, boolean given ...
1
vote
2answers
353 views

Magento 2 How to upgrade existing custom customer address attribute?

I have created a module, which creates one custom customer address attribute. In my attribute I have visible true, Now I need to visible false. I need to update that attribute. My code is as below: ...
0
votes
1answer
225 views

Constraint “email_order_to_sales_order” references table that does not exist

When upgrading a site from Magento 2.2.6 to 2.3.0, the following error occurs during setup:upgrade ... Module 'Magento_AdminNotification': Module 'Magento_Search': Module 'Magento_Amqp': Running ...
3
votes
1answer
1k views

Magento 2 : setup:upgrade throwing error. After Magento 2.1 to 2.3 update

I recently updated my Magento version form 2.1 to 2.3.0. Update was successful in my local system. Now its throwing error while running setup:upgrade like this. Schema creation/updates: PHP Fatal ...
6
votes
2answers
3k views

Magento2.3 setup:upgrade error

After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/...
8
votes
7answers
5k views

Cannot process definition to array for type tinytext in Magento 2.3.0

I'm getting following error "Cannot process definition to array for type tinytext" on Magento 2.3.0 when executing php bin/magento setup:upgrade command. Thanks
0
votes
0answers
305 views

Notice: Undefined index

I'm trying to update my Components with magento-cli setup:upgrade and I'm getting an error: Notice: Undefined index: websites in /opt/bitnami/apps/magento/htdocs/vendor/magento/module-config/App/...
0
votes
2answers
101 views

Undefined variable: eavSetup magento 2

I checkout from version SVn and i tried to run setup upgrade but it show me this error
0
votes
0answers
141 views

setup:upgrade stuck exit at installing Data

I have created following Setup Script <?php namespace Anshu\Custom\Setup; use Magento\Framework\Setup\ModuleDataSetupInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\...
0
votes
1answer
199 views

Prevent Magento 2 website down when running setup:upgrade

Currently my magento 2 website is on production mode and the website traffic is very high 24/7 , when there's a code/module update i need to run the following command in the terminal: php bin/...
1
vote
2answers
33 views

mess up ownerships after cli action

so I am running a magento 2.2.4 in development and one in production, the dev is ok and I can do all, the production is an exact copy of it on apache 2.4 and Ubuntu 16.04, every time I use any kind of ...
2
votes
5answers
285 views

Failure reason: 'Unable to unserialize value, string is corrupted.' after upgrade magento 2.1.5 to magento 2.2.6

I have upgraded Magento 2.1.5 to Magento 2.2.6 but after that I am getting error in running upgrade command: Error converting field value in table quote_item_option where option_id=85330 using ...
2
votes
3answers
363 views

Magento 2 why always need to run static content deploy every after upgrade?

I'm using Magento 2.2.6 version, I already set to developer mode, but when I ran setup:upgrade, and when I open my Magento project the css and js not loaded. But after I ran setup:static-content:...
2
votes
0answers
107 views

Upgrading from 2.2.5 to 2.2.6 several problems encrypt key exceed 32 character and layout

I'm working on upgrading my store from 2.2.5 to 2.2.6 I'm following this with my cron jobs of https://devdocs.magento.com/guides/v2.2/comp-mgr/cli/cli-upgrade.html first problem arises at php bin/...
1
vote
1answer
40 views

Magento 2.1.7 static content deploy creates _temp.min.js file instead of .js file

In Magento 2.1.7 when I have customized some js as per our requirement in app\design\frontend\vendor\theme\Magento_ProductVideo and then fire following commands php -dmemory_limit=6G bin/magento ...