energywebfoundation / origin

Origin is a set of toolkits that together provide a system for issuance and management of Energy Attribute Certificates
https://energyweb.org/technology/ew-origin/
MIT License
104 stars 57 forks source link

Issues when running the deployment #1337

Open nicosquare opened 4 years ago

nicosquare commented 4 years ago

Hi everyone, first of all, I want to say that I love this project and wanted to test for a while, struggling a little bit. I'm willing to deploy Origin in an AWS EC2 instance but firstly I'm testing it locally.

I have issues with step 4 of the Deployment tutorial (Frontend), after running docker-compose up -d --build I'm getting this:

ERROR: for origin_nginx_1 Cannot start service nginx: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/madog/Documents/repos/samples/ewf/origin/packages/origin-ui/nginx/default.conf\\\" to rootfs \\\"/var/snap/docker/common/var-lib-docker/overlay2/5a8dc50ebf28a291a6e0b4a884f4afb79a623d0319479d4f43a86aafd42a10b6/merged\\\" at \\\"/var/snap/docker/common/var-lib-docker/overlay2/5a8dc50ebf28a291a6e0b4a884f4afb79a623d0319479d4f43a86aafd42a10b6/merged/etc/nginx/conf.d/default.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for nginx Cannot start service nginx: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/madog/Documents/repos/samples/ewf/origin/packages/origin-ui/nginx/default.conf\\\" to rootfs \\\"/var/snap/docker/common/var-lib-docker/overlay2/5a8dc50ebf28a291a6e0b4a884f4afb79a623d0319479d4f43a86aafd42a10b6/merged\\\" at \\\"/var/snap/docker/common/var-lib-docker/overlay2/5a8dc50ebf28a291a6e0b4a884f4afb79a623d0319479d4f43a86aafd42a10b6/merged/etc/nginx/conf.d/default.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type ERROR: Encountered errors while bringing up the project.

I'm trying to debug this through docker documentation but I'm wondering if any of you had this issue and is yes, how did you solve it?

Thanks in advance, cheers!

kosecki123 commented 4 years ago

Hey @nicosquare and thanks for your feedback.

We are currently not relying on a Docker compose flow but we will test internally and let you know.

nicosquare commented 4 years ago

Thanks for your quick response I'll be waiting though. How would be the flow without docker? Is there a yarn command to configure the service or just to launch the UI?

Regards!