Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

Filter by
Sorted by
Tagged with
0
votes
1answer
24 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
25 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
27 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 ...
0
votes
4answers
166 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
17 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
1answer
75 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
134 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
21 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
0answers
100 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
52 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\...
1
vote
0answers
27 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
29 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
59 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
179 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
39 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
46 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
118 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
165 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
171 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
147 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
94 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
1k 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
205 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
139 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 ...
2
votes
1answer
747 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
2k 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/...
4
votes
5answers
3k views

Cannot process definition to array for type tinytext on Magento 2.3.0

I'm getting following error "Cannot process definition to array for type tinytext" on Magento 2.3.0 when executing setup:upgrade command. Thanks
0
votes
0answers
250 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
82 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
87 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
75 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
32 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 ...
0
votes
2answers
130 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 ...
1
vote
3answers
241 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
101 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/...
0
votes
0answers
62 views

magento 2 how to install raw sql file or statements using setup scripts

Can any one suggest me how to use install scripts to execute raw sql statements or file.
1
vote
1answer
34 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 ...
2
votes
1answer
86 views

Magento 2 : Call Model Class in the default value for UpdateData.php

I have part of setup code in the setup/upgradeData.php to be like this : $dataSetup->addAttribute( 'vendor', 'allowed_type', array( 'group' => 'General ...
0
votes
0answers
67 views

How to insert data into database table using upgradedata

I'm using Magento 2.2.5 and I have a data set that I want to insert to database using upgrade data or install data. How can I do this? Am I able to use object manager to call the model factory and ...
1
vote
1answer
185 views

custom select type customer attribute not showing magento2

I am trying to create a custom select type of customer attribute for admin only. When I am running my upgradeData script, Its running fine and attribute created in the database, but not showing in ...
3
votes
2answers
573 views

Magento 2 - Maximum execution time of 300 seconds exceeded

I am upgrading a website from Magento 2.2 to 2.5 and running into an error. I read through a lot of threads and forums but nothing is working. This includes adding max_execution_time 60000, ...
3
votes
2answers
960 views

Area code not set: Area code must be set before starting a session when UpgradeData

I'm using magento verison 2.2.5 and i try to use Setup/UpgradeData.php to run a model function to insert data into database from an external API. but when i run php bin/magento setup:upgrade i always ...
0
votes
1answer
26 views

folder writen issue come on website after updating setup of magento 2

Its come many time after upgrading setup Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/soft/public_html//var/cache/" is not writable in /home/soft/public_html//vendor/magento/...
0
votes
1answer
372 views

SSH Command Line Error on fresh install of Magento 2.2.5 on Bitnami

I have tried numerous installations of magento on Bitnami and I keep getting the below error when trying to upgrade using 'sudo php /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:upgrade': ...
1
vote
0answers
42 views

Magento 2 CDN cache

I have enabled CDN for my Magento 2 store static contents. But just would like to confirm, will there be any issue , if I run the below commands? Should I rebuild the CDN cache after running ...
0
votes
1answer
42 views

Magento 2 Hardware Requirement confusion and Upgrading on Live server confusion

I have worked with Magento1 and Magento2 both. But All of my Magento2 projects are hosted under dedicated server and the permission of Upgrading and Building using composer is given by the client. So ...
0
votes
1answer
536 views

Magento 2.2.5: Error on running setup: upgrade after upgrading Magento from 2.2.2 to 2.2.5

I am facing issues with Magento Upgrade from 2.2.2 to 2.2.5. After upgraded, I ran setup:upgrade command several times, but each time It takes too much time in Module_Sales upgrading data. After ...
1
vote
0answers
99 views

Upgrading to 2.2.4 and getting Call to a member function setFinalPrice()

When doing an upgrade from Magento 2.2.2 to Magento 2.2.4 I get the following when running php bin/magento setup:upgrade Cache cleared successfully File system cleanup: ..... .... ... Module '...
0
votes
4answers
1k views

php bin/magento setup:upgrade is not working [duplicate]

I'm trying to run upgrade command but I'm getting this error. Any help would be appreciated (see picture). P.S: User = Root, and privileges are ALL YES in 'magento2' DB. M2.2.3 and PHP 7.
3
votes
1answer
4k views

Magento2 : Area code not set: Area code must be set before starting a session

Old Version : 2.2.2 Upgraded Version : 2.2.4 i'm getting error while run command php bin/magento setup:upgrade Module 'Magento_Store': Module 'Magento_Directory': Module 'Magento_Eav': Module '...