1

I used a Docker configuration for Magento which I found here. I used the files in the example folder to get myself started. After finishing the installation I went to see if the CLI options are working. They have issues:

sudo bin/magento indexer:info

returns

[DomainException]
Connection "default" is not defined 

and

sudo bin/magento cache:flush

returns

[DomainException]
Default website is not defined

after disabling cache with

sudo bin/magento cache:clean  

and trying to clean or flush the cache again, the following message appeared:

[Exception]
Notice: Undefined index: websites in /home/goran/Magento_2/magneto2-beeit/src/vendor/magento/module-config/App/Config/Type/System.php on line 248

Also

sudo bin/magento config:show  

returns

Configuration for path: "" doesn't exist

I went and checked store_website table and is_default column. There is number 1 in the row for the Main Website, so the default website should be set?

Questions:

  1. What is "default connection" and how to define it?
  2. How to define default website?

Dockerfile / docker-compose.yml - gist

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.