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;








57















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









share|improve this question






























    57















    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









    share|improve this question


























      57












      57








      57


      13






      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









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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




















          6 Answers
          6






          active

          oldest

          votes


















          105














          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





          share|improve this answer


















          • 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 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



















          10














          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.






          share|improve this answer
































            5














            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.







            share|improve this answer
































              1














              Just use the commands:



              php bin/magento indexer:reset
              php bin/magento indexer:reindex
              php bin/magento cache:clean full_page block_html





              share|improve this answer






























                0














                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.






                share|improve this answer






























                  -1














                  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






                  share|improve this answer

























                    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
                    );



                    );













                    draft saved

                    draft discarded


















                    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









                    105














                    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





                    share|improve this answer


















                    • 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 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
















                    105














                    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





                    share|improve this answer


















                    • 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 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














                    105












                    105








                    105







                    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





                    share|improve this answer













                    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






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    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 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













                    • 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 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








                    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














                    10














                    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.






                    share|improve this answer





























                      10














                      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.






                      share|improve this answer



























                        10












                        10








                        10







                        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.






                        share|improve this answer















                        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.







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        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





















                            5














                            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.







                            share|improve this answer





























                              5














                              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.







                              share|improve this answer



























                                5












                                5








                                5







                                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.







                                share|improve this answer















                                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.








                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                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





















                                    1














                                    Just use the commands:



                                    php bin/magento indexer:reset
                                    php bin/magento indexer:reindex
                                    php bin/magento cache:clean full_page block_html





                                    share|improve this answer



























                                      1














                                      Just use the commands:



                                      php bin/magento indexer:reset
                                      php bin/magento indexer:reindex
                                      php bin/magento cache:clean full_page block_html





                                      share|improve this answer

























                                        1












                                        1








                                        1







                                        Just use the commands:



                                        php bin/magento indexer:reset
                                        php bin/magento indexer:reindex
                                        php bin/magento cache:clean full_page block_html





                                        share|improve this answer













                                        Just use the commands:



                                        php bin/magento indexer:reset
                                        php bin/magento indexer:reindex
                                        php bin/magento cache:clean full_page block_html






                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Apr 20 '18 at 6:29









                                        Chiriac VictorChiriac Victor

                                        1011 silver badge8 bronze badges




                                        1011 silver badge8 bronze badges





















                                            0














                                            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.






                                            share|improve this answer



























                                              0














                                              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.






                                              share|improve this answer

























                                                0












                                                0








                                                0







                                                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.






                                                share|improve this answer













                                                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.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Jan 19 '18 at 21:26









                                                Joshua FrickeJoshua Fricke

                                                3122 silver badges10 bronze badges




                                                3122 silver badges10 bronze badges





















                                                    -1














                                                    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






                                                    share|improve this answer



























                                                      -1














                                                      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






                                                      share|improve this answer

























                                                        -1












                                                        -1








                                                        -1







                                                        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






                                                        share|improve this answer













                                                        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







                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered Jul 6 at 16:10









                                                        Giancarlo MoralesGiancarlo Morales

                                                        11 bronze badge




                                                        11 bronze badge



























                                                            draft saved

                                                            draft discarded
















































                                                            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.




                                                            draft saved


                                                            draft discarded














                                                            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





















































                                                            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







                                                            Popular posts from this blog

                                                            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                                                            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                                                            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림