Magento 2 How to unlock reindex processMagento 2: Unable to unlock catalogsearch_fulltext reindexIndexers invalid and cron job notificationError in reindex process in Magento 2Magento 2.2.2 SSH Reindex locked processes helpIndexers are locked automatically: what makes indexers to be locked in Magento 2?Magento 2: Not showing customers in backend gridMagento 2 Reindex failed on customer gridTable missing after index:resetMagento 2.2.2 SSH Reindex locked processes helpMagento 2 reindex gives error Duplicate entryError in reindex process in Magento 2How to confirm that the reindex is working or not?2.3.0 store not found while reindexProducts is not showing up on Magento2.1 Frontend
Confused about 誘われて (Sasowarete)
Add region constraint to Graphics
Is this a Lost Mine of Phandelver Plot Hole?
I quit, and boss offered me 3 month "grace period" where I could still come back
Book or series about stones and a magician named Gwydion
Integral clarification
Filtering fine silt/mud from water (not necessarily bacteria etc.)
Redox reactions redefined
Can I activate an iPhone without an Apple ID?
Back to the nineties!
What is the German equivalent of 干物女 (dried fish woman)?
Are there any double stars that I can actually see orbit each other?
Can a pizza stone be fixed after soap has been used to clean it?
Extract an attribute value from XML
Should you avoid redundant information after dialogue?
Does entangle require vegetation?
Why would an Inquisitive rogue choose to use Insightful Fighting as opposed to using their Cunning Action to Hide?
Behavior of the zero and negative/sign flags on classic instruction sets
Mistakenly modified `/bin/sh'
As a DM, how to avoid unconscious metagaming when dealing with a high AC character?
Is this more than a packing puzzle?
Construct a pentagon avoiding compass use
Why are Japanese translated subtitles non-conversational?
What impact would a dragon the size of Asia have on the environment?
Magento 2 How to unlock reindex process
Magento 2: Unable to unlock catalogsearch_fulltext reindexIndexers invalid and cron job notificationError in reindex process in Magento 2Magento 2.2.2 SSH Reindex locked processes helpIndexers are locked automatically: what makes indexers to be locked in Magento 2?Magento 2: Not showing customers in backend gridMagento 2 Reindex failed on customer gridTable missing after index:resetMagento 2.2.2 SSH Reindex locked processes helpMagento 2 reindex gives error Duplicate entryError in reindex process in Magento 2How to confirm that the reindex is working or not?2.3.0 store not found while reindexProducts is not showing up on Magento2.1 Frontend
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm making some tests in Magento reindex process and I locked the stock index process.
How can I unlock this process?
Design Config Grid index has been rebuilt successfully in 00:00:02
Customer Grid index has been rebuilt successfully in 00:00:03
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index is locked by another reindex process. Skipping.
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:06
magento2 stock reindex
add a comment |
I'm making some tests in Magento reindex process and I locked the stock index process.
How can I unlock this process?
Design Config Grid index has been rebuilt successfully in 00:00:02
Customer Grid index has been rebuilt successfully in 00:00:03
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index is locked by another reindex process. Skipping.
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:06
magento2 stock reindex
add a comment |
I'm making some tests in Magento reindex process and I locked the stock index process.
How can I unlock this process?
Design Config Grid index has been rebuilt successfully in 00:00:02
Customer Grid index has been rebuilt successfully in 00:00:03
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index is locked by another reindex process. Skipping.
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:06
magento2 stock reindex
I'm making some tests in Magento reindex process and I locked the stock index process.
How can I unlock this process?
Design Config Grid index has been rebuilt successfully in 00:00:02
Customer Grid index has been rebuilt successfully in 00:00:03
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Stock index is locked by another reindex process. Skipping.
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Catalog Search index has been rebuilt successfully in 00:00:06
magento2 stock reindex
magento2 stock reindex
edited Jul 30 '17 at 8:52
Prince Patel
14.6k6 gold badges59 silver badges85 bronze badges
14.6k6 gold badges59 silver badges85 bronze badges
asked Jul 17 '16 at 15:57
Douglas IanitskyDouglas Ianitsky
4781 gold badge4 silver badges16 bronze badges
4781 gold badge4 silver badges16 bronze badges
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
You can reset the indexer through command line with indexer:reset command.
This will give the list of indexes name:
php bin/magento indexer:info
Output:
design_config_grid Design Config Grid
customer_grid Customer Grid
catalog_category_product Category Products
catalog_product_category Product Categories
catalog_product_price Product Price
catalog_product_attribute Product EAV
catalogsearch_fulltext Catalog Search
cataloginventory_stock Stock
catalogrule_rule Catalog Rule Product
catalogrule_product Catalog Product Rule
This will give the list of indexes status:
php bin/magento indexer:status
Output:
Design Config Grid: Ready
Customer Grid: Ready
Category Products: Ready
Product Categories: Ready
Product Price: Ready
Product EAV: Ready
Catalog Search: Ready
Stock: Processing
Catalog Rule Product: Ready
Catalog Product Rule: Ready
If you want to reset all the indexes, you can run the following command:
php bin/magento indexer:reset
If you want to reset particular index (e.g. cataloginventory_stock), you can run the following command:
php bin/magento indexer:reset cataloginventory_stock
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue inmagento 2.2.4 enterprise editioni solved using above step but my product is not display on front. what is the problem any idea?
– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
add a comment |
When I faced this kind of situation I had to run the following SQL query directly into the database:
UPDATE indexer_state SET status = 'valid';
I was not able to to find any option to force reindexing when an index has failed previously.
add a comment |
On MySQL run:
SET SQL_SAFE_UPDATES = 0;
update indexer_state set status = 'invalid' where status != 'valid';
Then on your terminal run:
php bin/magento indexer:reindex
It normally happens when the memory limit is few, so increase on your
.htaccess or NGINX config.
add a comment |
Just use the commands:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento cache:clean full_page block_html
add a comment |
It is also possible that you run into a state where some tables are locked in MySQL. In this case you can issue unlock tables; sql statement to be able to proceed.
I ran into a problem like this:
Category Products indexer process unknown error:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO
Where I could not re-index until the table lock was removed.
Does resetting the index lose any data waiting to be indexed? – ol'bob dole
Indexing is a process of looking at the data set and storing some keys to pair with the proper data. You would lose your current index in the process and it re-creates it. Outside of side effects of index using up resources or your dataset being inaccurate, there should be no risk to re-indexing.
add a comment |
I solved this issue with the following steps:
1.- drop table customer_grid_flat
2.- Re-create table:
CREATE TABLE IF NOT EXISTS customer_grid_flat (
entity_id int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
name text NULL COMMENT 'Name' ,
email varchar(255) NULL COMMENT 'Email' ,
group_id int NULL COMMENT 'Group_id' ,
created_at timestamp NULL default NULL COMMENT 'Created_at' ,
website_id int NULL COMMENT 'Website_id' ,
confirmation varchar(255) NULL COMMENT 'Confirmation' ,
created_in text NULL COMMENT 'Created_in' ,
dob date NULL COMMENT 'Dob' ,
gender int NULL COMMENT 'Gender' ,
taxvat varchar(255) NULL COMMENT 'Taxvat' ,
lock_expires timestamp NULL default NULL COMMENT 'Lock_expires' ,
shipping_full text NULL COMMENT 'Shipping_full' ,
billing_full text NULL COMMENT 'Billing_full' ,
billing_firstname varchar(255) NULL COMMENT 'Billing_firstname' ,
billing_lastname varchar(255) NULL COMMENT 'Billing_lastname' ,
billing_telephone varchar(255) NULL COMMENT 'Billing_telephone' ,
billing_postcode varchar(255) NULL COMMENT 'Billing_postcode' ,
billing_country_id varchar(255) NULL COMMENT 'Billing_country_id' ,
billing_region varchar(255) NULL COMMENT 'Billing_region' ,
billing_street varchar(255) NULL COMMENT 'Billing_street' ,
billing_city varchar(255) NULL COMMENT 'Billing_city' ,
billing_fax varchar(255) NULL COMMENT 'Billing_fax' ,
billing_vat_id varchar(255) NULL COMMENT 'Billing_vat_id' ,
billing_company varchar(255) NULL COMMENT 'Billing_company' ,
PRIMARY KEY (entity_id),
INDEX CUSTOMER_GRID_FLAT_GROUP_ID (group_id),
INDEX CUSTOMER_GRID_FLAT_CREATED_AT (created_at),
INDEX CUSTOMER_GRID_FLAT_WEBSITE_ID (website_id),
INDEX CUSTOMER_GRID_FLAT_CONFIRMATION (confirmation),
INDEX CUSTOMER_GRID_FLAT_DOB (dob),
INDEX CUSTOMER_GRID_FLAT_GENDER (gender),
INDEX CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID (billing_country_id),
FULLTEXT FTI_8746F705702DD5F6D45B8C7CE7FE9F2F (name, email, created_in, taxvat, shipping_full, billing_full, billing_firstname, billing_lastname, billing_telephone, billing_postcode, billing_region, billing_city, billing_fax, billing_company)
) COMMENT='customer_grid_flat' ENGINE=innodb charset=utf8 COLLATE=utf8_general_ci
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126067%2fmagento-2-how-to-unlock-reindex-process%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can reset the indexer through command line with indexer:reset command.
This will give the list of indexes name:
php bin/magento indexer:info
Output:
design_config_grid Design Config Grid
customer_grid Customer Grid
catalog_category_product Category Products
catalog_product_category Product Categories
catalog_product_price Product Price
catalog_product_attribute Product EAV
catalogsearch_fulltext Catalog Search
cataloginventory_stock Stock
catalogrule_rule Catalog Rule Product
catalogrule_product Catalog Product Rule
This will give the list of indexes status:
php bin/magento indexer:status
Output:
Design Config Grid: Ready
Customer Grid: Ready
Category Products: Ready
Product Categories: Ready
Product Price: Ready
Product EAV: Ready
Catalog Search: Ready
Stock: Processing
Catalog Rule Product: Ready
Catalog Product Rule: Ready
If you want to reset all the indexes, you can run the following command:
php bin/magento indexer:reset
If you want to reset particular index (e.g. cataloginventory_stock), you can run the following command:
php bin/magento indexer:reset cataloginventory_stock
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue inmagento 2.2.4 enterprise editioni solved using above step but my product is not display on front. what is the problem any idea?
– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
add a comment |
You can reset the indexer through command line with indexer:reset command.
This will give the list of indexes name:
php bin/magento indexer:info
Output:
design_config_grid Design Config Grid
customer_grid Customer Grid
catalog_category_product Category Products
catalog_product_category Product Categories
catalog_product_price Product Price
catalog_product_attribute Product EAV
catalogsearch_fulltext Catalog Search
cataloginventory_stock Stock
catalogrule_rule Catalog Rule Product
catalogrule_product Catalog Product Rule
This will give the list of indexes status:
php bin/magento indexer:status
Output:
Design Config Grid: Ready
Customer Grid: Ready
Category Products: Ready
Product Categories: Ready
Product Price: Ready
Product EAV: Ready
Catalog Search: Ready
Stock: Processing
Catalog Rule Product: Ready
Catalog Product Rule: Ready
If you want to reset all the indexes, you can run the following command:
php bin/magento indexer:reset
If you want to reset particular index (e.g. cataloginventory_stock), you can run the following command:
php bin/magento indexer:reset cataloginventory_stock
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue inmagento 2.2.4 enterprise editioni solved using above step but my product is not display on front. what is the problem any idea?
– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
add a comment |
You can reset the indexer through command line with indexer:reset command.
This will give the list of indexes name:
php bin/magento indexer:info
Output:
design_config_grid Design Config Grid
customer_grid Customer Grid
catalog_category_product Category Products
catalog_product_category Product Categories
catalog_product_price Product Price
catalog_product_attribute Product EAV
catalogsearch_fulltext Catalog Search
cataloginventory_stock Stock
catalogrule_rule Catalog Rule Product
catalogrule_product Catalog Product Rule
This will give the list of indexes status:
php bin/magento indexer:status
Output:
Design Config Grid: Ready
Customer Grid: Ready
Category Products: Ready
Product Categories: Ready
Product Price: Ready
Product EAV: Ready
Catalog Search: Ready
Stock: Processing
Catalog Rule Product: Ready
Catalog Product Rule: Ready
If you want to reset all the indexes, you can run the following command:
php bin/magento indexer:reset
If you want to reset particular index (e.g. cataloginventory_stock), you can run the following command:
php bin/magento indexer:reset cataloginventory_stock
You can reset the indexer through command line with indexer:reset command.
This will give the list of indexes name:
php bin/magento indexer:info
Output:
design_config_grid Design Config Grid
customer_grid Customer Grid
catalog_category_product Category Products
catalog_product_category Product Categories
catalog_product_price Product Price
catalog_product_attribute Product EAV
catalogsearch_fulltext Catalog Search
cataloginventory_stock Stock
catalogrule_rule Catalog Rule Product
catalogrule_product Catalog Product Rule
This will give the list of indexes status:
php bin/magento indexer:status
Output:
Design Config Grid: Ready
Customer Grid: Ready
Category Products: Ready
Product Categories: Ready
Product Price: Ready
Product EAV: Ready
Catalog Search: Ready
Stock: Processing
Catalog Rule Product: Ready
Catalog Product Rule: Ready
If you want to reset all the indexes, you can run the following command:
php bin/magento indexer:reset
If you want to reset particular index (e.g. cataloginventory_stock), you can run the following command:
php bin/magento indexer:reset cataloginventory_stock
answered Sep 15 '16 at 16:07
Mukesh ChapagainMukesh Chapagain
4,0162 gold badges23 silver badges45 bronze badges
4,0162 gold badges23 silver badges45 bronze badges
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue inmagento 2.2.4 enterprise editioni solved using above step but my product is not display on front. what is the problem any idea?
– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
add a comment |
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue inmagento 2.2.4 enterprise editioni solved using above step but my product is not display on front. what is the problem any idea?
– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
1
1
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
Does resetting the index lose any data waiting to be indexed?
– ol'bob dole
Oct 24 '17 at 11:55
I am also facing same issue in
magento 2.2.4 enterprise edition i solved using above step but my product is not display on front. what is the problem any idea?– Chirag Patel
Oct 4 '18 at 6:05
I am also facing same issue in
magento 2.2.4 enterprise edition i solved using above step but my product is not display on front. what is the problem any idea?– Chirag Patel
Oct 4 '18 at 6:05
Great, helped me a lot..
– Amy
Jan 16 at 11:20
Great, helped me a lot..
– Amy
Jan 16 at 11:20
add a comment |
When I faced this kind of situation I had to run the following SQL query directly into the database:
UPDATE indexer_state SET status = 'valid';
I was not able to to find any option to force reindexing when an index has failed previously.
add a comment |
When I faced this kind of situation I had to run the following SQL query directly into the database:
UPDATE indexer_state SET status = 'valid';
I was not able to to find any option to force reindexing when an index has failed previously.
add a comment |
When I faced this kind of situation I had to run the following SQL query directly into the database:
UPDATE indexer_state SET status = 'valid';
I was not able to to find any option to force reindexing when an index has failed previously.
When I faced this kind of situation I had to run the following SQL query directly into the database:
UPDATE indexer_state SET status = 'valid';
I was not able to to find any option to force reindexing when an index has failed previously.
edited Dec 28 '17 at 13:36
7ochem
5,9499 gold badges37 silver badges70 bronze badges
5,9499 gold badges37 silver badges70 bronze badges
answered Jul 18 '16 at 5:47
Aurélien FOUCRETAurélien FOUCRET
1766 bronze badges
1766 bronze badges
add a comment |
add a comment |
On MySQL run:
SET SQL_SAFE_UPDATES = 0;
update indexer_state set status = 'invalid' where status != 'valid';
Then on your terminal run:
php bin/magento indexer:reindex
It normally happens when the memory limit is few, so increase on your
.htaccess or NGINX config.
add a comment |
On MySQL run:
SET SQL_SAFE_UPDATES = 0;
update indexer_state set status = 'invalid' where status != 'valid';
Then on your terminal run:
php bin/magento indexer:reindex
It normally happens when the memory limit is few, so increase on your
.htaccess or NGINX config.
add a comment |
On MySQL run:
SET SQL_SAFE_UPDATES = 0;
update indexer_state set status = 'invalid' where status != 'valid';
Then on your terminal run:
php bin/magento indexer:reindex
It normally happens when the memory limit is few, so increase on your
.htaccess or NGINX config.
On MySQL run:
SET SQL_SAFE_UPDATES = 0;
update indexer_state set status = 'invalid' where status != 'valid';
Then on your terminal run:
php bin/magento indexer:reindex
It normally happens when the memory limit is few, so increase on your
.htaccess or NGINX config.
edited Apr 8 '17 at 2:56
Rafael Corrêa Gomes
5,0102 gold badges36 silver badges70 bronze badges
5,0102 gold badges36 silver badges70 bronze badges
answered Feb 3 '17 at 7:13
Ankit ShahAnkit Shah
5,00912 gold badges76 silver badges148 bronze badges
5,00912 gold badges76 silver badges148 bronze badges
add a comment |
add a comment |
Just use the commands:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento cache:clean full_page block_html
add a comment |
Just use the commands:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento cache:clean full_page block_html
add a comment |
Just use the commands:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento cache:clean full_page block_html
Just use the commands:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento cache:clean full_page block_html
answered Apr 20 '18 at 6:29
Chiriac VictorChiriac Victor
1011 silver badge8 bronze badges
1011 silver badge8 bronze badges
add a comment |
add a comment |
It is also possible that you run into a state where some tables are locked in MySQL. In this case you can issue unlock tables; sql statement to be able to proceed.
I ran into a problem like this:
Category Products indexer process unknown error:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO
Where I could not re-index until the table lock was removed.
Does resetting the index lose any data waiting to be indexed? – ol'bob dole
Indexing is a process of looking at the data set and storing some keys to pair with the proper data. You would lose your current index in the process and it re-creates it. Outside of side effects of index using up resources or your dataset being inaccurate, there should be no risk to re-indexing.
add a comment |
It is also possible that you run into a state where some tables are locked in MySQL. In this case you can issue unlock tables; sql statement to be able to proceed.
I ran into a problem like this:
Category Products indexer process unknown error:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO
Where I could not re-index until the table lock was removed.
Does resetting the index lose any data waiting to be indexed? – ol'bob dole
Indexing is a process of looking at the data set and storing some keys to pair with the proper data. You would lose your current index in the process and it re-creates it. Outside of side effects of index using up resources or your dataset being inaccurate, there should be no risk to re-indexing.
add a comment |
It is also possible that you run into a state where some tables are locked in MySQL. In this case you can issue unlock tables; sql statement to be able to proceed.
I ran into a problem like this:
Category Products indexer process unknown error:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO
Where I could not re-index until the table lock was removed.
Does resetting the index lose any data waiting to be indexed? – ol'bob dole
Indexing is a process of looking at the data set and storing some keys to pair with the proper data. You would lose your current index in the process and it re-creates it. Outside of side effects of index using up resources or your dataset being inaccurate, there should be no risk to re-indexing.
It is also possible that you run into a state where some tables are locked in MySQL. In this case you can issue unlock tables; sql statement to be able to proceed.
I ran into a problem like this:
Category Products indexer process unknown error:
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: INSERT INTO
Where I could not re-index until the table lock was removed.
Does resetting the index lose any data waiting to be indexed? – ol'bob dole
Indexing is a process of looking at the data set and storing some keys to pair with the proper data. You would lose your current index in the process and it re-creates it. Outside of side effects of index using up resources or your dataset being inaccurate, there should be no risk to re-indexing.
answered Jan 19 '18 at 21:26
Joshua FrickeJoshua Fricke
3122 silver badges10 bronze badges
3122 silver badges10 bronze badges
add a comment |
add a comment |
I solved this issue with the following steps:
1.- drop table customer_grid_flat
2.- Re-create table:
CREATE TABLE IF NOT EXISTS customer_grid_flat (
entity_id int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
name text NULL COMMENT 'Name' ,
email varchar(255) NULL COMMENT 'Email' ,
group_id int NULL COMMENT 'Group_id' ,
created_at timestamp NULL default NULL COMMENT 'Created_at' ,
website_id int NULL COMMENT 'Website_id' ,
confirmation varchar(255) NULL COMMENT 'Confirmation' ,
created_in text NULL COMMENT 'Created_in' ,
dob date NULL COMMENT 'Dob' ,
gender int NULL COMMENT 'Gender' ,
taxvat varchar(255) NULL COMMENT 'Taxvat' ,
lock_expires timestamp NULL default NULL COMMENT 'Lock_expires' ,
shipping_full text NULL COMMENT 'Shipping_full' ,
billing_full text NULL COMMENT 'Billing_full' ,
billing_firstname varchar(255) NULL COMMENT 'Billing_firstname' ,
billing_lastname varchar(255) NULL COMMENT 'Billing_lastname' ,
billing_telephone varchar(255) NULL COMMENT 'Billing_telephone' ,
billing_postcode varchar(255) NULL COMMENT 'Billing_postcode' ,
billing_country_id varchar(255) NULL COMMENT 'Billing_country_id' ,
billing_region varchar(255) NULL COMMENT 'Billing_region' ,
billing_street varchar(255) NULL COMMENT 'Billing_street' ,
billing_city varchar(255) NULL COMMENT 'Billing_city' ,
billing_fax varchar(255) NULL COMMENT 'Billing_fax' ,
billing_vat_id varchar(255) NULL COMMENT 'Billing_vat_id' ,
billing_company varchar(255) NULL COMMENT 'Billing_company' ,
PRIMARY KEY (entity_id),
INDEX CUSTOMER_GRID_FLAT_GROUP_ID (group_id),
INDEX CUSTOMER_GRID_FLAT_CREATED_AT (created_at),
INDEX CUSTOMER_GRID_FLAT_WEBSITE_ID (website_id),
INDEX CUSTOMER_GRID_FLAT_CONFIRMATION (confirmation),
INDEX CUSTOMER_GRID_FLAT_DOB (dob),
INDEX CUSTOMER_GRID_FLAT_GENDER (gender),
INDEX CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID (billing_country_id),
FULLTEXT FTI_8746F705702DD5F6D45B8C7CE7FE9F2F (name, email, created_in, taxvat, shipping_full, billing_full, billing_firstname, billing_lastname, billing_telephone, billing_postcode, billing_region, billing_city, billing_fax, billing_company)
) COMMENT='customer_grid_flat' ENGINE=innodb charset=utf8 COLLATE=utf8_general_ci
add a comment |
I solved this issue with the following steps:
1.- drop table customer_grid_flat
2.- Re-create table:
CREATE TABLE IF NOT EXISTS customer_grid_flat (
entity_id int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
name text NULL COMMENT 'Name' ,
email varchar(255) NULL COMMENT 'Email' ,
group_id int NULL COMMENT 'Group_id' ,
created_at timestamp NULL default NULL COMMENT 'Created_at' ,
website_id int NULL COMMENT 'Website_id' ,
confirmation varchar(255) NULL COMMENT 'Confirmation' ,
created_in text NULL COMMENT 'Created_in' ,
dob date NULL COMMENT 'Dob' ,
gender int NULL COMMENT 'Gender' ,
taxvat varchar(255) NULL COMMENT 'Taxvat' ,
lock_expires timestamp NULL default NULL COMMENT 'Lock_expires' ,
shipping_full text NULL COMMENT 'Shipping_full' ,
billing_full text NULL COMMENT 'Billing_full' ,
billing_firstname varchar(255) NULL COMMENT 'Billing_firstname' ,
billing_lastname varchar(255) NULL COMMENT 'Billing_lastname' ,
billing_telephone varchar(255) NULL COMMENT 'Billing_telephone' ,
billing_postcode varchar(255) NULL COMMENT 'Billing_postcode' ,
billing_country_id varchar(255) NULL COMMENT 'Billing_country_id' ,
billing_region varchar(255) NULL COMMENT 'Billing_region' ,
billing_street varchar(255) NULL COMMENT 'Billing_street' ,
billing_city varchar(255) NULL COMMENT 'Billing_city' ,
billing_fax varchar(255) NULL COMMENT 'Billing_fax' ,
billing_vat_id varchar(255) NULL COMMENT 'Billing_vat_id' ,
billing_company varchar(255) NULL COMMENT 'Billing_company' ,
PRIMARY KEY (entity_id),
INDEX CUSTOMER_GRID_FLAT_GROUP_ID (group_id),
INDEX CUSTOMER_GRID_FLAT_CREATED_AT (created_at),
INDEX CUSTOMER_GRID_FLAT_WEBSITE_ID (website_id),
INDEX CUSTOMER_GRID_FLAT_CONFIRMATION (confirmation),
INDEX CUSTOMER_GRID_FLAT_DOB (dob),
INDEX CUSTOMER_GRID_FLAT_GENDER (gender),
INDEX CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID (billing_country_id),
FULLTEXT FTI_8746F705702DD5F6D45B8C7CE7FE9F2F (name, email, created_in, taxvat, shipping_full, billing_full, billing_firstname, billing_lastname, billing_telephone, billing_postcode, billing_region, billing_city, billing_fax, billing_company)
) COMMENT='customer_grid_flat' ENGINE=innodb charset=utf8 COLLATE=utf8_general_ci
add a comment |
I solved this issue with the following steps:
1.- drop table customer_grid_flat
2.- Re-create table:
CREATE TABLE IF NOT EXISTS customer_grid_flat (
entity_id int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
name text NULL COMMENT 'Name' ,
email varchar(255) NULL COMMENT 'Email' ,
group_id int NULL COMMENT 'Group_id' ,
created_at timestamp NULL default NULL COMMENT 'Created_at' ,
website_id int NULL COMMENT 'Website_id' ,
confirmation varchar(255) NULL COMMENT 'Confirmation' ,
created_in text NULL COMMENT 'Created_in' ,
dob date NULL COMMENT 'Dob' ,
gender int NULL COMMENT 'Gender' ,
taxvat varchar(255) NULL COMMENT 'Taxvat' ,
lock_expires timestamp NULL default NULL COMMENT 'Lock_expires' ,
shipping_full text NULL COMMENT 'Shipping_full' ,
billing_full text NULL COMMENT 'Billing_full' ,
billing_firstname varchar(255) NULL COMMENT 'Billing_firstname' ,
billing_lastname varchar(255) NULL COMMENT 'Billing_lastname' ,
billing_telephone varchar(255) NULL COMMENT 'Billing_telephone' ,
billing_postcode varchar(255) NULL COMMENT 'Billing_postcode' ,
billing_country_id varchar(255) NULL COMMENT 'Billing_country_id' ,
billing_region varchar(255) NULL COMMENT 'Billing_region' ,
billing_street varchar(255) NULL COMMENT 'Billing_street' ,
billing_city varchar(255) NULL COMMENT 'Billing_city' ,
billing_fax varchar(255) NULL COMMENT 'Billing_fax' ,
billing_vat_id varchar(255) NULL COMMENT 'Billing_vat_id' ,
billing_company varchar(255) NULL COMMENT 'Billing_company' ,
PRIMARY KEY (entity_id),
INDEX CUSTOMER_GRID_FLAT_GROUP_ID (group_id),
INDEX CUSTOMER_GRID_FLAT_CREATED_AT (created_at),
INDEX CUSTOMER_GRID_FLAT_WEBSITE_ID (website_id),
INDEX CUSTOMER_GRID_FLAT_CONFIRMATION (confirmation),
INDEX CUSTOMER_GRID_FLAT_DOB (dob),
INDEX CUSTOMER_GRID_FLAT_GENDER (gender),
INDEX CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID (billing_country_id),
FULLTEXT FTI_8746F705702DD5F6D45B8C7CE7FE9F2F (name, email, created_in, taxvat, shipping_full, billing_full, billing_firstname, billing_lastname, billing_telephone, billing_postcode, billing_region, billing_city, billing_fax, billing_company)
) COMMENT='customer_grid_flat' ENGINE=innodb charset=utf8 COLLATE=utf8_general_ci
I solved this issue with the following steps:
1.- drop table customer_grid_flat
2.- Re-create table:
CREATE TABLE IF NOT EXISTS customer_grid_flat (
entity_id int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
name text NULL COMMENT 'Name' ,
email varchar(255) NULL COMMENT 'Email' ,
group_id int NULL COMMENT 'Group_id' ,
created_at timestamp NULL default NULL COMMENT 'Created_at' ,
website_id int NULL COMMENT 'Website_id' ,
confirmation varchar(255) NULL COMMENT 'Confirmation' ,
created_in text NULL COMMENT 'Created_in' ,
dob date NULL COMMENT 'Dob' ,
gender int NULL COMMENT 'Gender' ,
taxvat varchar(255) NULL COMMENT 'Taxvat' ,
lock_expires timestamp NULL default NULL COMMENT 'Lock_expires' ,
shipping_full text NULL COMMENT 'Shipping_full' ,
billing_full text NULL COMMENT 'Billing_full' ,
billing_firstname varchar(255) NULL COMMENT 'Billing_firstname' ,
billing_lastname varchar(255) NULL COMMENT 'Billing_lastname' ,
billing_telephone varchar(255) NULL COMMENT 'Billing_telephone' ,
billing_postcode varchar(255) NULL COMMENT 'Billing_postcode' ,
billing_country_id varchar(255) NULL COMMENT 'Billing_country_id' ,
billing_region varchar(255) NULL COMMENT 'Billing_region' ,
billing_street varchar(255) NULL COMMENT 'Billing_street' ,
billing_city varchar(255) NULL COMMENT 'Billing_city' ,
billing_fax varchar(255) NULL COMMENT 'Billing_fax' ,
billing_vat_id varchar(255) NULL COMMENT 'Billing_vat_id' ,
billing_company varchar(255) NULL COMMENT 'Billing_company' ,
PRIMARY KEY (entity_id),
INDEX CUSTOMER_GRID_FLAT_GROUP_ID (group_id),
INDEX CUSTOMER_GRID_FLAT_CREATED_AT (created_at),
INDEX CUSTOMER_GRID_FLAT_WEBSITE_ID (website_id),
INDEX CUSTOMER_GRID_FLAT_CONFIRMATION (confirmation),
INDEX CUSTOMER_GRID_FLAT_DOB (dob),
INDEX CUSTOMER_GRID_FLAT_GENDER (gender),
INDEX CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID (billing_country_id),
FULLTEXT FTI_8746F705702DD5F6D45B8C7CE7FE9F2F (name, email, created_in, taxvat, shipping_full, billing_full, billing_firstname, billing_lastname, billing_telephone, billing_postcode, billing_region, billing_city, billing_fax, billing_company)
) COMMENT='customer_grid_flat' ENGINE=innodb charset=utf8 COLLATE=utf8_general_ci
answered Jul 6 at 16:10
Giancarlo MoralesGiancarlo Morales
11 bronze badge
11 bronze badge
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f126067%2fmagento-2-how-to-unlock-reindex-process%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown