Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Magento 2 - change database column type

I need to change the type of the column "value" in the table catalog_product_entity_varchar from varchar(255) to varchar(512), but I find nothing in the documentation about how to do it, so ...
0
votes
2answers
30 views

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-General' for key

Run the upgrade command, and the issue should be face sudo bin/magento setup:upgrade Return during the process: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-General' for ...
0
votes
0answers
19 views

Connecting Maria db 10.2 to magento 2.3.5

I have website to connected database I am using RDS MARIAB 10.2 while running upgrade command faced : SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is ...
0
votes
1answer
27 views

Static content deploy error after upgrading magento 2.3.3 to 2.3.5 (EE)

I am facing Compilation from source: LESS file is an empty issue after Magento upgrade from 2.3.3 to 2.3.5 EE at the time of Static content deploy. Anyone face OR fixed such kind of issues?? ?
0
votes
0answers
42 views

Stuck due to waiting for table metadata lock

sometimes, when i run the setup:upgrade command, magento2 stops on Magento2 Indexer (Runnign data recurring) for hours. Reading processlist under mysql server it looks like there is a problem on some ...
0
votes
2answers
60 views

Class NewRelic\Monolog\Enricher\Handler does not exist

I just reinstalled magento using composer install Then I tried to run this command php bin/magento setup:upgrade and also tried running other setup commands. I got the following error: Class NewRelic\...
0
votes
1answer
69 views

Running php bin/magento setup:upgrade stuck

I am running php bin/magento setup:upgrade command after migration from one aws instance to another Instance and It is hanged and stuck not moving forward??
1
vote
1answer
31 views

Area code is not set in setup upgrade command installing data

setup upgrade command throws error while Installing data Area code is not set. The issue is coming from webkul core module. Anybody faced similar issue?
0
votes
0answers
13 views

setup:upgrade command set all themes parent id to 1

lately, every time I run the setup:upgrade command, I notice that inside the "theme" table all the parent_id are overwritten and set to 1 (magento blank).On backoffice side, the themes are ...
0
votes
0answers
62 views

Magento 2: How to create setup:upgrade programmatically

I want to create a function to allow run setup upgrade, but I don't want to use shell script to call setup:upgrade command. I tried reading in core function and found this code $request = $...
0
votes
0answers
63 views

Topic “inventory.source.items.cleanup” is not configured

I try to upgrade my magento 2 but i got this problem, how can i solve ? thanks
0
votes
1answer
45 views

Migration from 2.2.4 enterprise to 2.3.5-p2 - setup:upgrade mysql error

I am working on a 2.2.4 enterprise to 2.3.5-p2 migration. I have gone through all steps such as composer, internal modules solutions, until setup:upgrade step. I searched for solution on the web, and ...
0
votes
0answers
78 views

Auto Increment column do not have index. Column - “value_id”, table - “catalog_product_entity_text”

I'm getting the following error after i upgrade magento version to 2.3.5 and try to run php bin/magento setup:upgrade Auto Increment column do not have index. Column - "value_id", table - &...
4
votes
3answers
2k views

Magento 2.4.0 ElasticSearch not alive

When performing the setup:upgrade I get this error : "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" I have not enabled It previously, updating from ...
0
votes
0answers
19 views

MySQL Gone Away Error in Setup:Upgrade:- Avoiding ALTER Queries on Tables which does not have changes

We have been experiencing the issue of My SQL Gone Away while doing the setup:upgrade of Magento. We have been seeing this error on while doing setup:upgrade and the occurrence of this, is happening ...
1
vote
0answers
23 views

Magento 2.3 - setup:upgrade Schema creation/updates error in DefinitionAggregator.php

I am trying to setup:upgrade but its giving me this error Undefined index: version in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php on line 91 I am not ...
1
vote
1answer
72 views

Unique constraint violation found - Unable to save new cookie on bin/magento s:up

I just recently switched over to mac for work and am working on getting my local environment set up. Everything's been going much more smoothly than on my PC with Virtualbox, but when I go running bin/...
1
vote
2answers
38 views

Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2

Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update) php bin/magento setup:upgrade php bin/magento setup:di:...
0
votes
1answer
28 views

magento2.3 setup:upgrade after magento upgrade Type Error occurred when creating object

I Upgraded magento 2.1.8 to 2.3.5 and when I run setup:upgrade get the following error... How can I get more details about this? It seems that Magento_Amqp is not compatible? It becomes after upgrade ...
0
votes
2answers
32 views

Setup upgrade error Magento

This error appears on setup upgrade | SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Cp_WishlistApi' for key 'PRIMARY', query was: INSERT INTO `setup_module` (`module`, `...
1
vote
1answer
46 views

Magento 2 trying to add column in installschema.php magento 2.3.5 p1

I am trying to make the length higher than 255 <?php namespace []\[]\Setup; use Magento\Framework\DB\Ddl\Table; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\...
0
votes
1answer
224 views

Magento 2.3.4 error after setup:upgrade command

Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in /var/www/html/magento2/vendor/magento/framework/Code/Reader/ClassReader.php:26 Stack ...
0
votes
1answer
309 views

Magento_Amqp and Magento_MysqlMq errors during setup:upgrade

I have M2.3.4 and Porto 3.2.3 installed. I've recently changed Quickview modules and now when I run setup:upgrade, i get 2 errors: Magento_Amqp: Topic "inventory.source.items.cleanup" is not ...
0
votes
1answer
58 views

Error running setup:upgrade : Base table or view not found: 1146 Table 'db.inventory_low_stock_notification_configuration' doesn't exist

I'm using Magento 2.3.4 and i disabled all Magento 2 inventory extensions, when running php bin/magento setup:upgrade, i encountered this error: Schema creation/updates: SQLSTATE[42S02]: Base table ...
0
votes
3answers
181 views

Zero downtime deployments

I'm using Magento 2.3.4 open source and I am looking into how I can achieve zero downtime The build commands I normally use are: php bin/magento maintenance:enable composer install --no-interaction ...
0
votes
1answer
64 views

Why does Magento Setup:Upgrade fail when ConfigurableSampleData module is updating?

I have attempted installing Magento in several ways. With and without sample data. This last time I have installed primarily using the CLI method however when I attempt to install sample data and I ...
1
vote
1answer
268 views

Upgrading from v2.3.0 to 2.3.4

I need to upgrade a Magento instance from v2.3.0 to v2.3.5 later this month. I'm wondering if I need to upgrade to v2.3.1 and run setup:upgrade first, and then repeat for v2.3.2, v2.3.3, v2.3.4 ...
0
votes
0answers
238 views

Patch Not Working

Patch File: Bedard/CustomGloves/Setup/Patch/Data <?php namespace Bedard\CustomGloves\Setup\Patch\Data; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\Patch\...
0
votes
0answers
15 views

Running data recurring [duplicate]

crated data patch but it stucks on setup:upgrade Running data recurring... my code is <?php declare(strict_types=1); namespace DevAll\ExtensionSettingConfig\Setup\Patch\Data; use Magento\...
0
votes
0answers
27 views

I created data patch, setup:upgrade never finishes

I have created data patch, After I run setup:upgrade it does the job but never finishes setup upgrade command . https://i.imgur.com/Mhilmgd.png https://i.imgur.com/GtUDbLV.png the Data patch itself ...
0
votes
0answers
66 views

Getting error : Missing required argument $typeFactories

While Updating Magento 2.2.7 to 2.3.0 through composer when I am running below command bin/magento setup:upgrade I am getting below error : Updating modules: Missing required argument $...
0
votes
2answers
23 views

Installation error on linux 2 aws?

Updating modules: Connection "default" is not defined When I run Upgrade command I am getting this error?
3
votes
3answers
582 views

Magento 2 Setup:Upgrade giving error of Cannot add foreign key constraint

I have moved my website files and DB from one server to another. Now, When I am running setup:upgrade command. I am getting below error: Updating modules: Schema creation/updates: SQLSTATE[HY000]: ...
0
votes
0answers
25 views

Magento 2: “Area code is not set” after setup:upgrade

I updated composer modules via composer:update and wanted to update magento by using setup:upgrade command. It fails with this error message: Updating modules: Area code is not set [Magento\...
0
votes
1answer
35 views

Magento 2 - Trigger “php bin/magento setup:upgrade” from backend

Is it possible to trigger php bin/magento setup:upgrade from the backend? I need to give the company "Amasty" access to our project, so that they can debug a bug in their module, but I am not ...
0
votes
2answers
260 views

Magento 2.3.2: Database prefix error running setup:upgrade

I tried to install MailChimp extension through Composer, but when running setup:upgrade I received a database error. Assuming that the problem was in the extension, I restored the backup I made just ...
0
votes
0answers
113 views

Magento 2.3.3 Setup upgrade throwing error

I am using Magento 2.3.3 and i am facing the following issue while setup:upgrade SQLSTATE[42000]: Syntax error or access violation: 1068 Multiple primary key defined, query was: ALTER TABLE ...
0
votes
0answers
52 views

How to change quote table customer_note column type to text

I tried to update the quote table customer_note column type to text using setup script and schema patch. Column type updated after run setup:upgrade but when I run setup:upgrade the second time then ...
0
votes
1answer
83 views

Magento EE upgrade from 2.2.9 to 2.3.4 issue

I have upgraded Magento from version 2.2.9 to 2.3.4 using the composer. And run the setup: upgrade, then I am getting below error. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add ...
0
votes
0answers
22 views

Enabling additional debug info in exception/debug log during setup upgrade (CLI)

Please, I am looking for a solution to have some advanced logging in the exception log. In context: I am encountering an error in CLI during setup: upgrade: SQLSTATE[42S02]: Base table or view not ...
0
votes
1answer
41 views

Modification to .phtml does not render

In content/page homepage I insert a widget from the porto theme: {{block class="Smartwave\Filterproducts\Block\Home\LatestList" name="latest_product" product_type="4" product_count="50" category_id="...
1
vote
2answers
57 views

Magento 2 - I am facing this every time I run upgrade and deploy command after applying changes

Each time I deploy some changes and run, upgrade compile deploy reindex cache clean commands I face these issues? Anyone ?? I have deployed child theme and after that, I have run these commands
0
votes
1answer
22 views

installing project on clean database

I have created data patch It was working fine locally Unable to apply data patch Devall\SpecialPrice\Setup\Patch\Data\AddLabaCenaAttribute for module Devall_SpecialPrice. Original exception message: ...
1
vote
2answers
404 views

How to create multiple customer attributes in magento 2?

How to create multiple customer attributes in Magento 2 using InstallData or UpgradeData? <?php namespace DeviMage\CustomerAttribute\Setup; use Magento\Customer\Model\Customer; use Magento\...
1
vote
1answer
55 views

Setup:upgrade error after upgrade to Magento 2.3.3

I just upgrade my Magento 2.2.5 to 2.3.3 , and After running bin/magento setup:upgrade i got the following error: Warning: Illegal string offset 'max_items' in vendor/magento/framework/App/Config/...
1
vote
0answers
37 views

Magento 2.3.3 Duplicate entry '15-Images' after upgrade

I'm currently trying to upgrade data and one of my modules is throwing an obscure error about duplicated entry eav_attribute_group when I'm trying to install some product attribute, I have installed ...
1
vote
0answers
78 views

When try to use bin/magento setup:upgrade Getting Error

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Setup\Declaration\Schema\Diff\SchemaDiff::diff()must be an instance of Magento\Framework\Setup\Declaration\Schema\Dto\...
1
vote
0answers
76 views

Cannot process definition to array for type json after updating magento 2.2.3 to 2.3.3

I am upgrading magento 2.2.3 to 2.3.3 via command line after running this command php bin/magento setup:upgrade but I am getting this error: Cannot process definition to array for type json what ...
0
votes
0answers
281 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
224 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 ...