MAC Invalid Error

Hello team, I keep getting MAC Invalid error. I simply followed the instructions given in the github page GitHub - dreamfactorysoftware/df-docker: Docker container for DreamFactory. under Installing the DreamFactory Docker Container topic.
Steps:

  1. DId git clone and download df-docker
  2. Sudo docker-compose build
  3. Sudo docker-compose up -d
  4. Then verified that all 4 containers are running (made web and postgres exposed to host) and ports are working
  5. executed to sudo docker-compose exec web cat .env | grep APP_KEY
  6. Copied the key and pasted it on line 28 in dockerfile.
  7. Browsed the Admin portal
  8. When i click on API generation & Connections → API Types → Database it throws 500 error in the browser and when i checked the repose it is invalid MAC address.

I had registered my email earlier and i am using the same email ID. I am unable to change in mySQL database as the Connection field in sql_db_config is encrypted.
Please help me. Thanks a lot

Hey!

You will need the APP_KEY value from the .env file in /opt/dreamfactory. This can be done with the following command:
docker-compose exec web cat .env | grep APP_KEY

Set this value as the APP_KEY value in the docker-compose.yml file (line 28), encapsulating it in single quotes, to avoid receiving “The MAC is invalid” errors within your instance should you ever need to rebuild.

If this does not work you might need to restart the container:

sudo docker-compose down -v
sudo rm -rf storage/ bootstrap/cache/
git pull origin main
sudo docker-compose build --no-cache
sudo docker-compose up -d
1 Like

Thanks Jacob. I didn’t copy APP_KEY at the first installation and proceeded with changes. None of the measures for cleaning and generating new APP_KEY succeed in my case. So had to finally reinstall only worked.