chrisvel / wreeto_official

Wreeto is an open source note-taking, knowledge management and wiki system.
https://wreeto.com
GNU Affero General Public License v3.0
387 stars 13 forks source link

Can't set things up with docker-compose #9

Closed AlexKalopsia closed 4 years ago

AlexKalopsia commented 4 years ago

I just created the folders where to setup the container, made the docker-compose and .env files like the ones in the repo (just changing folders structure), and used docker-compose up. This is my output

Creating wreeto_postgres_1 ... done
Creating wreeto_redis_1    ... done
Creating wreeto_app_1      ... error

ERROR: for wreeto_app_1  Cannot start service app: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"./docker-entrypoint.sh\": stat ./docker-entrypoint.sh: no such file or directory": unknown

ERROR: for app  Cannot start service app: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"./docker-entrypoint.sh\": stat ./docker-entrypoint.sh: no such file or directory": unknown
ERROR: Encountered errors while bringing up the project.

These my folder permissions:

drwxrwxrwx   5 alex users 4096 May 14 10:11 .
drwxr-xr-x+ 42 root root  4096 May 14 09:42 ..
drwxr-xr-x   3 root root  4096 May 14 10:12 app
-rwxrwxrwx+  1 alex users  556 May 14 09:45 docker-compose.yml
-rwxrwxrwx+  1 alex users  265 May 14 10:03 .env
drwx------  19  999 root  4096 May 14 10:12 postgres-data
drwxr-xr-x   3 root root  4096 May 14 10:11 public

Any idea what could be causing this?

chrisvel commented 4 years ago

@AlexKalopsia you need to copy the docker-entrypoint.sh file locally as well, it seems that it is missing from your folder.

AlexKalopsia commented 4 years ago

Oh right, that was it, I put the sh file in the app folder and it worked. I am still stuck though for a new error:

Attaching to wreeto_postgres_1, wreeto_redis_1, wreeto_app_1
postgres_1  | WARNING: no logs are available with the 'db' log driver
redis_1     | WARNING: no logs are available with the 'db' log driver
app_1       | WARNING: no logs are available with the 'db' log driver
wreeto_app_1 exited with code 1

This is what happens if I don't detach the container. I can't reach myip:8383

chrisvel commented 4 years ago

Something else is happening, did you change/edit the docker-compose.ymlfile? Also, can you please open another issue so we can keep the information focused on the bug?

I am closing this as it's resolved.