cancel
Showing results for 
Search instead for 
Did you mean: 

redis error but without using redis

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

redis error but without using redis

Hi all,

 

Here is my situation,

i copy my old magento 2.0.12 to new server

However, i faced this issue:

 

[InvalidArgumentException]
There are no commands defined in the "cache" namespace.

cache, setup,static.....etc all have this error.

 

 

Then I remove it and install magento 2.0.12 from zero by these command:

 

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.0.12 magento2
php bin/magento setup:install --base-url=http://abc.com/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=Magento --admin-lastname=User --admin-email=matthew.ma@optoma.com --admin-user=admin --admin-password=magento2 --language=zh_Hant_TW --currency=TWD --timezone=Asia/Taipei --use-rewrites=1
php bin/magento setup:static-content:deploy en_US zh_Hant_TW
php bin/magento cache:flush 
php bin/magento cache:clean
php bin/magento indexer:reindex
chown -R nginx:nginx *

After that, an unexplained issue appear when i go to my website

 

Exception printing is disabled by default for security reasons.

Error log record number: 446531357179

 

[root@devnfs report]# cat /mnt/dev/magento2/var/report/446531357179
a:4:{i:0;s:260:"Warning: SessionHandler::read(): open(tcp://rediscache.lvx80y.ng.0001.apse1.cache.amazonaws.com:6379/sess_96pvm8p9vg00r5n96tlaas6r95, O_RDWR) failed: No such file or directory (2) in /mnt/dev/magento2/vendor/magento/framework/Session/SaveHandler.php on line 93";i:1;s:7405:"#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/mnt/dev/magent...', 93, Array)
............

It is unreasonable, I try to check if there any redis config in my database or file:

 

#for checking files, but only output var/report/ 's files
grep -rnw /mnt/dev/magento2 -e "lvx80y"

After that i had mysqldump and grep, nth found.

 

Please help if anyone have any ideas, Thank you