Anwar

Posts

magento2-cron setup

To create the Commerce crontab: Log in as, or switch to, the file system owner. Change to your Magento installation directory. Enter the following command: bin/magento...

The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again

php bin/magento admin:user:unlock ADMINUSERNAME   sudo php bin/magento admin:user:create –admin-user=”pearlbells” –admin-password=”pear122l**all” –admin-email=”pearl@gmail.com” –admin-firstname=”Admin” –admin-lastname=”Admin” Reference: https://community.magento.com/t5/Installing-Magento-2-x/The-account-sign-in-was-incorrect-or-your-account-is-disabled/td-p/452118   https://magento.stackexchange.com/questions/127245/magento-2-did-not-sign-in-correctly-or-your-account-is-temporarily-disabled

Start ElasticSearch after reboot server / start server

Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/starting-elasticsearch.html#start-es-deb-systemd Running Elasticsearch with systemdedit To configure Elasticsearch to start automatically when the system boots up, run the following commands: sudo /bin/systemctl daemon-reload sudo /bin/systemctl...

Publicly accessible Elasticsearch 7.x

Edit file /etc/elasticsearch/elasticsearch.yml to values: network.host: 0.0.0.0 network.bind_host: 0.0.0.0 network.publish_host: 0.0.0.0     discovery.seed_hosts: [“0.0.0.0”, “[::0]”] and restart elasticsearch sudo service elasticsearch stop + … start Reference: https://blog.eq8.eu/til/publicly-accessible-elasticsearch-7x.html

Magento 2.4.0 Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

php bin/magento module:disable {Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}   With 2.4.2 you have to do php bin/magento module:disable {Magento_ElasticsearchCatalogPermissions,Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}   php bin/magento setup:install –search-engine=elasticsearch7 –elasticsearch-host=”cg-7950-elasticsearch.us-west-1.nxcli.net” –elasticsearch-port=26305 Reference: https://magento.stackexchange.com/questions/318831/magento-2-4-0-getting-error-could-not-validate-a-connection-to-elasticsearch

There has been an error processing your request

Enable exception printing errors Enabling exception printing errors can help to quickly troubleshoot your errors and find the problem without having to go into /var/reports...

Magento2 Elasticsearch module enable and disable

bin/magento module:enable {Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}   bin/magento module:disable {Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}       This seems to work: bin/magento config:set catalog/search/elasticsearch7_server_hostname some-hostname bin/magento config:set catalog/search/elasticsearch7_server_port 12345   php bin/magento...

Magento 2 Reindexing One or more indexers are invalid. Make sure your Magento cron job is running

How to reindex your Magento 2 store from admin or SSH / CLI Reindex via SSH / CLI (recommended) Connect to your Magento 2 installation...

Memory limit errors

php -r “echo ini_get(‘memory_limit’).PHP_EOL;” Loaded Configuration File /etc/php74rc/php.ini Reference: https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors