Questions tagged [setup-upgrade]
Denotes questions regarding Magento Command-line upgrade
185
questions
0
votes
1
answer
74
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\...
1
vote
0
answers
105
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 ...
0
votes
1
answer
28
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
0
votes
1
answer
40
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 ...
0
votes
2
answers
80
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 ...
0
votes
1
answer
44
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....
0
votes
1
answer
98
views
Magento2 bin/magento setup:upgrade taking too long time to complete
I have 2 different servers and same magento243 setup in both server.
and in one server setup:upgrade is completed fast but in another server it takes approx 15 minutes to complete upgrade command.
...
0
votes
0
answers
19
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/...
0
votes
1
answer
23
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
0
votes
2
answers
33
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 ...
0
votes
1
answer
32
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 ...
0
votes
1
answer
58
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 '' ...
0
votes
0
answers
9
views
Lightsail instance unreachable after running setup:upgrade during theme install
I have Magento 2.4.3 on an AWS Lightsail instance (bitnami packaged app). I added a theme in under app and pub as instructed and ran php bin/magento setup:upgrade. Started fine then evidently seized ...
0
votes
3
answers
47
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/...
0
votes
0
answers
26
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:
...
1
vote
1
answer
79
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 ...
0
votes
1
answer
96
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"
...
1
vote
0
answers
86
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:
...
0
votes
1
answer
142
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 ...
0
votes
0
answers
136
views
setup:upgrade is very slow
I'm facing a problem when executing setup:upgrade command. It seems to hang for a very long time on Updating Modules step.
By using strace I can see it's running some queries like
DROP TRIGGER IF ...
0
votes
2
answers
145
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()
...
0
votes
2
answers
84
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 )
...
0
votes
1
answer
391
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 ...
0
votes
1
answer
78
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"
0
votes
0
answers
30
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 ...
0
votes
1
answer
169
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:
$ ...
1
vote
1
answer
149
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 `...
0
votes
1
answer
125
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 ...
0
votes
0
answers
43
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 ...
0
votes
1
answer
867
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
2
answers
365
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
0
answers
101
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
1
answer
58
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??
?
1
vote
0
answers
391
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 ...
1
vote
2
answers
240
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\...
2
votes
2
answers
2k
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??
0
votes
1
answer
580
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?
1
vote
1
answer
379
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
1
answer
78
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 ...
2
votes
1
answer
778
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 -
&...
5
votes
4
answers
13k
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 ...
1
vote
0
answers
109
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
1
answer
374
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
2
answers
522
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
1
answer
45
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
2
answers
63
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
1
answer
564
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
2
answers
862
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
1
answer
1k
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
1
answer
188
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 ...