mhubig / docker-partkeepr

mhubig/partkeepr docker image repository
63 stars 64 forks source link

Testing for database connectivity fails. #8

Closed DylanBartlett closed 6 years ago

DylanBartlett commented 6 years ago

I'm trying to deploy partkeepr through docker on Windows 10.

After walking through the setup steps I get to the "Testing Database Connectivity" step which fails with the following error message.

image

I have used the default database settings so I'm not sure why setup is failing right off the bat.

mhubig commented 6 years ago

Are you using docker-compose to start the container?

vinii8817 commented 6 years ago

@mhubig When I tried to create in Ubuntu server, I had the same problem, the container MariaDB did not start, I received a permission error in the /tmp folder. The solution was simple, when I run the docker-compose as root I had problems, but after running using sudo everything worked perfectly.

I do not know if there are other ways to solve, I'm just quoting my experience to try to help in the solution.

mhubig commented 6 years ago

@vinii8817 good succession! I removed the local mount from the docker-compose.yml file.

mhubig commented 6 years ago

@DylanBartlett you can try to use the updated version (docker pull mhubig/partkeepr && docker-compose up) and see if this fixes your problem ...

DylanBartlett commented 6 years ago

Hi @mhubig , I must be doing something seriously wrong here. I've ran the docker pull mhubig/partkeepr && docker-compose up as you've shown here but I get the following error.

ERROR:
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml

My process for this is as follows.

  1. Open Docker Quickstart
  2. Run the command you listed.
  3. Error.

Do I need to already have a database up and running? I'm not really a docker user by any stretch so I feel like there's a unspoken step that I'm not following.

mhubig commented 6 years ago

HI @DylanBartlett, there is indeed an unspoken step! You first need to clone this project to have the docker-compose.yml file present. Here is the whole process from the scratch:

$ git clone https://github.com/mhubig/docker-partkeepr.git
$ cd docker-partkeepr
$ docker pull mhubig/partkeepr
$ docker-compose up

Thanks for pointing this out, I'll update the README ...