Skip to main content

Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

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

Magento 2.3.1 setup with MySQL8, bin/magento setup:upgrade unnecessarily running ALTER TABLE MYSQL queries on all tables

I have set up the Magento 2.3.1 with MySQL 8 version, facing the following issue: While running bin/magento setup:upgrade command, it is stuck with "Schema creation/updates:" line, after ...
Jaya chandra's user avatar
0 votes
0 answers
27 views

catalog_product_index_price_temp not found when running upgrade command?

Magento 2.4.6 Suddenly I am getting the following error when running my upgrade command php bin/magento setup:upgrade (worked for weeks without problems): Base table or view not found: 1146 Table '...
user4095519's user avatar
0 votes
1 answer
215 views

how to solve "lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file."?

Problem 1 - Root composer.json requires stripe/stripe-payments ^3.3.0, found stripe/stripe-payments[3.3.0] in the lock file but not in remote repositories, make sure you avoid updating this package to ...
hari prabhu's user avatar
0 votes
1 answer
790 views

Mysql error MySQL doesn't yet support drop existing primary key without adding a new primary key

need help regarding the issue, All of the sudden our production environment we are getting issue during upgrade command SQLSTATE[42000]: Syntax error or access violation: 1235 This version of MySQL ...
Waqar Ali's user avatar
  • 2,349
0 votes
0 answers
32 views

Magento 2.4.4 - Magento modules inside the vendor folder don't work

I'm trying to run the "setup:upgrade" command to register all magento modules but this error is presented: "PHP Fatal error: Uncaught Error: Class Magento\Framework\Component\...
Jackom's user avatar
  • 493
1 vote
2 answers
120 views

How and when should I use the Magento 2 commands bin/magento setup:upgrade, bin/magento setup:di:compile, and bin/magento static:content:deploy -f?

I'm new to Magento 2 and I'm trying to understand the purpose and appropriate usage of some important commands. Specifically, I would like to know more about the following commands: bin/magento setup:...
user avatar
1 vote
2 answers
1k views

Magento 2 setup upgrade throwing error . After version upgraded from 2.3.6-p1 to 2.4.5-p1

I got following error while running upgrade command Warning: Undefined array key "inventory_source" in /var/www/html/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on ...
Jaisa's user avatar
  • 2,626
0 votes
1 answer
360 views

Interceptor not exists issue when running setup:upgrade command in magento 2

When i run setup upgrade command i got the following error Class "Vendor_Name\Subscription\Test\Command\DispatchEventOOSProduct\Interceptor" does not exist I tried to remove the ...
Jaisa's user avatar
  • 2,626
0 votes
1 answer
729 views

Deprecated Functionality: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated s

I upgraded the magento version from 2.3.6-p1 to 2.4.5-p1 enterprise edition. When I run bin/magento setup:upgrade command throws following error. Deprecated Functionality: rawurlencode(): Passing null ...
Jaisa's user avatar
  • 2,626
1 vote
1 answer
1k views

Running php bin/magento setup:upgrade caused magento 2 app to crash

I originally was facing an issue of not being able to save any configurations on my magento application, and a user on this site recommended to run the php bin/magento setup:upgrade command as the ...
Slippy's user avatar
  • 21
0 votes
1 answer
368 views

How to convert old script to declarative schema / data patch without breaking any data?

I have a module (v1.0.1) with an InstallSchema to create a table and an InstallData to create a product attribute. Now I want to update the module (v1.0.2) to convert the InstallSchema to the ...
MagePsycho's user avatar
  • 4,628
3 votes
1 answer
200 views

Syntax error or access violation: 1071 Specified key was too long when running setup:upgrade

I get the following syntax error when running setup:upgrade after the update of a specific module through composer: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; ...
IvoJongmans's user avatar
1 vote
1 answer
221 views

php bin/magento setup:upgrade SHOW ERROR : Connection "default" is not defined

Setup upgrade command not running. The issue is given below in screenshot.
Alok Tiwari's user avatar
0 votes
2 answers
299 views

Could not validate a connection to Elasticsearch. No alive nodes found in your cluster after Setup Upgrade

I have upgraded magento to 2.4.5 and when i ran setup upgrade command I received this error "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster". Elastic ...
Ralph Rhodes's user avatar
0 votes
1 answer
852 views

Magento 2 - can't add foreign key constraint with declarative schema (db_schema.xml) - Reference column X in reference table Y do not have index

I try to add this table: MODULE/etc/db_schema.xml: <?xml version="1.0"?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
Black's user avatar
  • 3,390
0 votes
1 answer
313 views

Magento 2 Default category shows on menu even though I have "Include in Menu" disabled

Ever since I did a setup:upgrade I've been having some issues with the Admin not doing what it's supposed to do, particularly on the Catalog > Categories section. As you can see, on the backend I'...
Abi's user avatar
  • 33
0 votes
0 answers
61 views

setup:upgrade resulted in multiple issues

I took over a developed magento shop and I was trying to solve an issue in which some products would not appear in frontend when navigating to its category (still haven't solved this either btw), so ...
Abi's user avatar
  • 33
1 vote
2 answers
609 views

error while upgrading from Magento 2.2.3 to Magento 2.4.4 in setup:upgrade

I'm trying to upgrade Magento 2.2.3 to Magento 2.4.4 and successfully composer updated the setup and have all other modules updated as well but while running setup:upgrade command, i got this error: ...
Cv Gandhi's user avatar
2 votes
1 answer
2k views

Magento 2.4.4 error in setup:upgrade

I completed successfully composer update magento 2.4.3-p1 to 2.4.4 Also my template and all modules are ready for 2.4.4 magento But in setup:upgrade I got this: Unable to apply data patch Magento\...
G. G.'s user avatar
  • 1,191
1 vote
0 answers
980 views

Error - Database 'DB_Name' does not exist or specified database server user does not have privileges to access this database magento 2

I am facing an error after upgrading Magento 2.3.6 to Magento 2.4.4-beta4 version. Error - Database 'DB_Name' does not exist or specified database server user does not have privileges to access this ...
Hitesh Balpande's user avatar
0 votes
1 answer
35 views

Compilation error Magento 2.4.3

what kind of compilation error is this? Can I share with you other info? I have Magento 2.4.3 https://ibb.co/sVFd0Nq
user3718303's user avatar
0 votes
2 answers
238 views

Install Inventory Manager in 2.4.3 version

I'm trying to install Inventory Manager in my Magento 2.4.3 version after Magento installation. For doing this I download the entire project from here https://github.com/magento/inventory and upload ...
user3718303's user avatar
3 votes
3 answers
5k views

setup upgrade get the area code is not set error

After I use composer to install a new extension, I was trying to run bin/magento setup:upgrade but it throws this error "Area code is not set" I am running Magento 2.4.3-p1 I did google but ...
Paul Fan's user avatar
  • 658
1 vote
2 answers
496 views

unable To Complete Command setup:di:compile

unable to run command php bin/magento setup:di:compile Showing Following error. Please Tell me 1/9 [==>------------------] 11% 1 sec 131.0 MiBClass 'Liquid\AbstractBlock' not found#0 /home/737540....
Faraz Bashir's user avatar
2 votes
1 answer
2k views

"bin/magento setup:upgrade" taking too long time to complete

I have 2 different servers and same magento243 setup in both servers. In one server setup:upgrade is completed quickly, but in another server it takes about 15 minutes to complete upgrade command. ...
Sanjay Shiyal's user avatar
1 vote
1 answer
968 views

Magento 2 upgrade - Setup:upgrade stuck at Magento_Customer

I am trying to upgrade Magento 2.2.1 to Magento 2.4.3-p1 using composer and successfully new version upgrade but when run upgrade command but process stuck not progress process of from Data install/...
Bhavesh Godhani's user avatar
0 votes
1 answer
102 views

Magento: Upgrade modules, Compile code, Deploy static content, Flush cache

I am running this gist after changing anything in module code. I need feedback for improving this gist & Magento 2 development. https://gist.github.com/enishant/211212beeadff49aba00c0622a0f33ab #!/...
Nishant's user avatar
  • 101
0 votes
2 answers
1k views

When Magento upgrade 2.2.1 to 2.4.3 - Unable to apply data patch: module Magento_Tax

How to fix the below Error when magento upgrade 2.2.1 to 2.4.3. When I have run setup upgrade command then showing error. Unable to apply data patch Magento\Tax\Setup\Patch\Data\UpdateTaxRegionId for ...
Bhavesh Godhani's user avatar
0 votes
1 answer
317 views

setup:db-declaration:generate-whitelist does nothing - no results or errors

M2.4.3-p1. Trying to use db_schema.xml as that appears to be the way forward. setup:upgrade is not adding my tables. setup:db-declaration:generate-whitelist is not generating the whitelist. Basically ...
Adam Lavery's user avatar
0 votes
1 answer
100 views

how can i run setup:upgrade and cli commands on windows

Hello everyone in my case i have installed Magento 2.3.4 on Windows and i need to run setup:upgrade like on Ubuntu , but it's not working for me , is this issue because on Windows we have backslash '' ...
code 8's user avatar
  • 5
0 votes
3 answers
354 views

setup:upgrade try to remove my theme!

Like in the title, every time when I use setup: upgrade i asked to remove themes: Processing configurations data from configuration file... The following themes will be registered: adminhtml/Magento/...
BotGun's user avatar
  • 1
0 votes
0 answers
90 views

2.4 setup:install - install with 3rd party modules straight away or wait and use setup:upgrade

So as with title, what is best approach when deploying a M2.4 store with 3rd party modules, please see below with both options, but Option 1 we are getting In WebsiteRepository.php line 159: ...
giolliano sulit's user avatar
1 vote
1 answer
140 views

Error when upgrade magento 2.4.3

I did upgrade the Magento version from 2.4.2 to 2.4.3 when run command upgrade show an error Unable to apply data patch Magento\CatalogSampleData\Setup\Patch\Data\InstallCatalogSampleData for module ...
BenjaminVu's user avatar
0 votes
1 answer
260 views

Magento 2: Getting Error on running setup:upgrade

I updated a few modules after upgrading the Magento version to 2.4.3 from 2.3.0 and I am getting this error on running setup:upgrade command: "URL key for specified store already exists" ...
mechanic's user avatar
  • 440
1 vote
0 answers
191 views

Class Magento\Framework\Mview\TriggerCleaner does not exist on running setup:upgrade error occurs on Magento 2

On running setup:upgrade error occurs and setup upgrade not started Class Magento\Framework\Mview\TriggerCleaner does not exist on di:compile this error occur In ClassReader.php line 43: ...
Prits's user avatar
  • 625
0 votes
1 answer
280 views

Elasticsearch - M2.4 - Docker: Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

I have a docker with these env docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
Claims's user avatar
  • 1,211
0 votes
2 answers
871 views

update specific attribute value by setup upgrade

I want to change the frontend_label value of an attribute_code 'xx' only by using upgradedata.php script! $table = $setup->getTable('eav_attribute'); $setup->getConnection() ...
sara ben's user avatar
0 votes
2 answers
389 views

why setup upgrade command revert back already dropped foreign key in magento 2.4.2

I have written one custom module with a simple UpgradeSchema file to drop core foreign key (table product_alert_stock, foreign key name - PRODUCT_ALERT_STOCK_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID ) ...
Param Kumar's user avatar
0 votes
1 answer
904 views

"Constant name is expected" when installing a module

I'm trying to install a third party module via composer with very low support, so I have to debug it myself. The problem I'm encountering an error "Constant name is expected" when I try to ...
Gautier Bardon's user avatar
1 vote
1 answer
523 views

In magento 2.4.* we found "{"error":{"root_cause":[{"type":"cluster_block_exception",..." error after setup: upgrade

{"error":{"root_cause":[{"type":"cluster_block_exception"
Hardik Patel's user avatar
0 votes
0 answers
76 views

White screen on frontend after bin/magento setup:upgrade

I have a strange problem - I get a white screen on the frontend (backend is ok) after running the command: php bin/magento setup:upgrade I have test Magento 2.3.5 system on which I have previously ...
traknet's user avatar
0 votes
1 answer
1k views

Update files when in production mode

When the Magento2 site is in production mode and I want to modify some html/phtml/php/js files how can I update the edited files while remaining in production mode? For the moment I have done this: $ ...
Jackom's user avatar
  • 493
1 vote
1 answer
395 views

From upgrading Magento 2.3 to 2.4 setup upgrade command is struck

I have updated my Magento from version 2.3 to 2.4. But when i hit bin/magento setup:upgrade it will running from around 1 hr. When i check show processlist a command is running SELECT `...
Prits's user avatar
  • 625
0 votes
1 answer
396 views

Setup:upgrade error. Base table or view not found

Any ideas how to resolve below error please? Installing schema... Upgrading schema... SQLSTATE[42S02]: Base table or view not found: 1146 Table 'm2.email_template' doesn't exist, query was: SELECT ...
MagentoMac's user avatar
  • 1,042
0 votes
0 answers
166 views

Magento command line putty

I have Magento 2.3. I have moved the website to another server but all command [php bin/magento setup:upgrade , php bin/magento setup:static-content:deploy -f, and any other command ] on command putty ...
Hassan Kamar's user avatar
1 vote
1 answer
3k 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 ...
Black's user avatar
  • 3,390
0 votes
2 answers
970 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 ...
Ravindrasinh Zala's user avatar
0 votes
0 answers
160 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 ...
anonymous's user avatar
0 votes
1 answer
80 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?? ?
Roshan Rakesh Yadav's user avatar
3 votes
0 answers
774 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 ...
Francesco's user avatar

1
2 3 4 5