INSaFLU / docker

Easy installation for INSaFLU made by docker
7 stars 6 forks source link

Error creating insaflu-server #7

Closed alejandra-gonzalezs closed 2 years ago

alejandra-gonzalezs commented 2 years ago

Hello! I'm trying to install INSaFLU docker, but I get an error when I run the ./up.sh file. I get the following output:

+ export IMAGE=insaflu-server
+ IMAGE=insaflu-server
+ docker-compose up insaflu-server
Creating volume "docker_pg_data" with local-persist driver
Creating volume "docker_pgbackups" with local-persist driver
Creating volume "docker_insaflu-server-data" with local-persist driver
Creating volume "docker_insaflu-server-predefined_dbs" with local-persist driver
Creating volume "docker_insaflu-server-env" with local-persist driver
Pulling pgbackups (prodrigestivill/postgres-backup-local:)...
latest: Pulling from prodrigestivill/postgres-backup-local
c229119241af: Pull complete
3ff4ca332580: Pull complete
5037f3c12de6: Pull complete
0444ef779945: Pull complete
47098a4166e7: Pull complete
203cca980fab: Pull complete
a479b6c0e001: Pull complete
1eaa9abe8ca4: Pull complete
cad613328fe3: Pull complete
1ce5087aacfa: Pull complete
b133d2355caa: Pull complete
b2694eb85faf: Pull complete
503b75e1e236: Pull complete
a4b143df95e2: Pull complete
bef5192f9e0a: Pull complete
fe8e45beaf5f: Pull complete
Digest: sha256:97963780e5eebfbc81ee6e046cea37f0f0e3925ef1ad0a8abbc91249e8df369d
Status: Downloaded newer image for prodrigestivill/postgres-backup-local:latest
Pulling officer (funkyfuture/deck-chores:1)...
1: Pulling from funkyfuture/deck-chores
3c4e9198e8c1: Pull complete
01c636072b78: Pull complete
c823a1fa1acb: Pull complete
25c66d49f0ea: Pull complete
932b7c2c408f: Pull complete
1e23a4a7a32e: Pull complete
Digest: sha256:d53ed2c048ef86e4a9ab3daf2b87d5bcac44693b6afa4c34bf2326dcddf7f723
Status: Downloaded newer image for funkyfuture/deck-chores:1
Creating postgres         ... done
Creating docker_officer_1 ... done
Creating postgres_backup  ... done
Creating insaflu-server   ... error

ERROR: for insaflu-server  Cannot start service insaflu-server: error while creating mount source path '/home/dir/dir2/docker/insaflu/log/httpd': mkdir /home/dir: file exists

ERROR: for insaflu-server  Cannot start service insaflu-server: error while creating mount source path '/home/dir/dir2/docker/insaflu/log/httpd': mkdir /home/dir: file exists
ERROR: Encountered errors while bringing up the project.

Could you please help me finish the installation? Thanks in advance!

INSaFLU commented 2 years ago

Dear Alejandra, Thank you for reporting this issue. It seems that the directory indicated in the .env file already exists.

Please make sure that you delete the old directory OR define another directory, as follows:

$ cp .env_temp .env $ vi .env OR $ nano .env

Please let us know if it worked. Kind regards.

alejandra-gonzalezs commented 2 years ago

Thank you for your quick response.

I'm new to using docker and I'm not sure what to do. Should I modify the variable BASE_PATH_DATA or create a new variable with the target directory?

I have modified this variable, and I get an error when I try to create the first volume:

+ export IMAGE=insaflu-server
+ IMAGE=insaflu-server
+ docker-compose up insaflu-server
Creating volume "docker_pg_data" with local-persist driver
ERROR: create docker_pg_data: VolumeDriver.Create: mkdir /home/vhir/MICRO-server: file exists

I have reset the .env (cp .env_temp .env), and I get the initial error:

+ export IMAGE=insaflu-server
+ IMAGE=insaflu-server
+ docker-compose up insaflu-server
Creating volume "docker_pg_data" with local-persist driver
Creating docker_officer_1 ... done
Creating postgres         ... done
Creating postgres_backup  ... done
Creating insaflu-server   ... error

ERROR: for insaflu-server  Cannot start service insaflu-server: error while creating mount source path '/home/vhir/MICRO-server/dir/docker/insaflu/log/insaflu': mkdir /home/vhir/MICRO-server: file exists

ERROR: for insaflu-server  Cannot start service insaflu-server: error while creating mount source path '/home/vhir/MICRO-server/dir/docker/insaflu/log/insaflu': mkdir /home/vhir/MICRO-server: file exists
ERROR: Encountered errors while bringing up the project.

Sorry for the inconvenience and thanks in advance for your time.

Best regards, Alejandra

monsanto-pinheiro commented 2 years ago

Dear Alejandra, Please, can you contact me directly? it is much easier. Then, I put here the solution... monsantopinheiro at gmail.com All the best, miguel

monsanto-pinheiro commented 2 years ago

The solution was to define the same path in the variable "BASE_PATH_DATA", that need to be define in ".env" file, where "git clone " was made.