kosmas58 / pia-docker

Killian Kemps (https://github.com/KillianKemps) has created an awesome Docker configuration to setup a Docker environment for production purpose. Thanks to Killian it is much easier now to run PIA. A simple docker-compose up does everything and gives a running website : front-end, back-end and database.
GNU General Public License v3.0
37 stars 34 forks source link

Unable to start new PIA: "no such file or directory" #3

Closed jkosters closed 6 years ago

jkosters commented 6 years ago

First of all, thank you for all your work. The tool looks amazing and it's great that people are giving their time to make it even better. The instructions where clear and I got the PIA site running quickly. But when I want to start a new PIA the site won't continue and my docker console keeps outputting: cnil-pia-back_1 | standard_init_linux.go:190: exec user process caused "no such file or directory".

I first thought it was the connection between the front and backend, but analyzing the startup log more clearly shows me this:

docker-compose up Starting piadocker_database_1 ... done Starting piadocker_cnil-pia-front_1 ... done Starting piadocker_cnil-pia-back_1 ... done Attaching to piadocker_cnil-pia-front_1, piadocker_database_1, piadocker_cnil-pia-back_1 database_1 | 2018-04-21 21:44:35.630 UTC [1] LOG: listening on IPv4 address "XXXX", port XX database_1 | 2018-04-21 21:44:35.630 UTC [1] LOG: listening on IPv6 address "::", port XX database_1 | 2018-04-21 21:44:35.640 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" database_1 | 2018-04-21 21:44:35.666 UTC [20] LOG: database system was shut down at 2018-04-21 21:44:27 UTC database_1 | 2018-04-21 21:44:35.677 UTC [1] LOG: database system is ready to accept connections cnil-pia-back_1 | standard_init_linux.go:190: exec user process caused "no such file or directory" piadocker_cnil-pia-back_1 exited with code 1 cnil-pia-back_1 | standard_init_linux.go:190: exec user process caused "no such file or directory"

Am I missing something? Are there more things I need to setup correctly in docker for it to work? (deamon or proxy or....?) And do I correctly setup the connection to the backend by setting it to http://localhost:3000?

Thank you for your time and effort!

jkosters commented 6 years ago

Got it working. Thank you for your work! For others:

  1. I changed my git config so it would work with linux and windows line endings. git config --global core.eol lf git config --global core.autocrlf input
  2. Find and remove container and image for backend docker ps -a docker rm container_id docker images docker rmi image_id
  3. Delete folder and clone git for pia-docker again (restart all)
  4. Happyness all over the world