emoncms-docker icon indicating copy to clipboard operation
emoncms-docker copied to clipboard

few changes for running the container rpi4

Open cvonk opened this issue 4 years ago • 3 comments

Can you add some instructions for raspberry pi (rpi4) owners? To run the container, the following changes are required:

  • change docker-compose.yml to use the armv7 flavor for mariadb tobi312/rpi-mariadb:latest_
  • docker-compose build before docker-compose up to prevent web-1 from throwing exec error.

thanks for the great work!

cvonk avatar Mar 16 '21 17:03 cvonk

I built a docker image based on the Raspbian version of mariadb, and was able to get things started successfully with docker-compose build before docker-compose up. But, when I try to log in to the web, I get a database credential error. The documentation is a little unclear on setting the sql credentials - do I need to set them somewhere on the mariadb server as well, or just the env variables on the containers?

Edit - found the issue. When connecting to the MariaDB server in the db container, the connecting host is not localhost. I updated my MariaDB user to 'emoncms'@'emoncms-docker_web_1.emoncms-docker_default', and now everything is working fine.

dmsdd avatar Jun 02 '21 19:06 dmsdd

Hi, can you please explain how and where to add the user 'emoncms'@'emoncms-docker_web_1.emoncms-docker_default' ? Have same issue on RaspPi 3B+.

xxxmaxxx avatar Mar 10 '22 09:03 xxxmaxxx

Same issue here. "Can't connect to database, please verify credentials/configuration in settings.ini Error message: Access denied for user 'emoncms'@'192.168.176.4' (using password: YES)". Couldn't figure a way out. Anyone can help?

silfax avatar Oct 10 '22 19:10 silfax