Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing self-hosted version #115

Closed
jmalinens opened this issue Apr 27, 2020 · 5 comments
Closed

Error while installing self-hosted version #115

jmalinens opened this issue Apr 27, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@jmalinens
Copy link
Contributor

Ubuntu 19.10

username@host:~/projects/repman$ git clone https://github.com/repman-io/repman.git .
Cloning into '.'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (48/48), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 4520 (delta 11), reused 34 (delta 5), pack-reused 4472
Receiving objects: 100% (4520/4520), 987.59 KiB | 2.23 MiB/s, done.
Resolving deltas: 100% (2766/2766), done.
username@host:~/projects/repman$ docker-compose up
Creating network "repman_default" with the default driver
Creating volume "repman_app-var" with local driver
Creating volume "repman_app-public" with local driver
Creating volume "repman_docker-nginx-scripts" with local driver
Creating volume "repman_postgres-data" with default driver
Creating volume "repman_docker-nginx-ssl-private" with local driver
Creating volume "repman_docker-nginx-ssl-certs" with local driver
Creating volume "repman_docker-logs-nginx" with local driver
Pulling database (postgres:11.7-alpine)...
11.7-alpine: Pulling from library/postgres
cbdbe7a5bc2a: Pull complete
b52a8a2ca21a: Pull complete
e36a19831e31: Pull complete
f1aa26821845: Pull complete
412d098142b4: Pull complete
75d5ef10726d: Pull complete
ae3b5a8bbf62: Pull complete
e2f290791a5c: Pull complete
187b81308ed8: Pull complete
Pulling app (buddy/repman:0.1.1)...
0.1.1: Pulling from buddy/repman
aad63a933944: Pull complete
b61c449d5d91: Pull complete
3fde16e1397a: Pull complete
b1096698ab2a: Pull complete
96de990b7ad3: Pull complete
c280bfe25221: Pull complete
02be9679a029: Pull complete
01973f657634: Pull complete
75924d0578e0: Pull complete
7545938f30ed: Pull complete
789a97918005: Pull complete
084f29a924ef: Pull complete
3c7171c98fdf: Pull complete
2240a4e43a84: Pull complete
61e6336f9487: Pull complete
35b4698e1d5f: Pull complete
Pulling cron (buddy/repman:0.1.1)...
0.1.1: Pulling from buddy/repman
Pulling nginx (nginx:1.17-alpine)...
1.17-alpine: Pulling from library/nginx
cbdbe7a5bc2a: Already exists
c554c602ff32: Pull complete
Pulling mailhog (mailhog/mailhog:)...
latest: Pulling from mailhog/mailhog
d6a5679aa3cf: Pull complete
a1300bbb94d5: Pull complete
0f03c49950cb: Pull complete
b96c5d9bff5f: Pull complete
Creating repman_mailhog_1  ... done
Creating repman_database_1 ... done
Creating repman_app_1      ... error

ERROR: for repman_app_1  Cannot start service app: error while mounting volume '/var/snap/docker/common/var-lib-docker/volumes/repman_app-var/_data': failed to mount local volume: mount /home/username/projects/repman/var:/var/snap/docker/common/var-lib-docker/volumes/repman_app-var/_data, flags: 0x1000: no such file or directory

ERROR: for app  Cannot start service app: error while mounting volume '/var/snap/docker/common/var-lib-docker/volumes/repman_app-var/_data': failed to mount local volume: mount /home/username/projects/repman/var:/var/snap/docker/common/var-lib-docker/volumes/repman_app-var/_data, flags: 0x1000: no such file or directory
ERROR: Encountered errors while bringing up the project.
@karniv00l
Copy link
Contributor

Hi @jmalinens,

thanks for reporting. Isn't this a Docker Snap? Looks like it's not being maintained anymore: https://github.com/docker-archive/docker-snap/blob/master/README.md

@akondas akondas added the bug Something isn't working label Apr 27, 2020
@akondas
Copy link
Member

akondas commented Apr 29, 2020

Hey @jmalinens, we added missing folders, can you check if the problem still exists?

@jmalinens
Copy link
Contributor Author

@akondas thanks. now it's working

I also upgraded to Ubuntu 20.04. Now docker-compose up works

@akondas akondas closed this as completed Apr 29, 2020
@mostafasoufi
Copy link

Same error on Ubuntu 20.04

Status: Downloaded newer image for mailhog/mailhog:latest
Creating repman_database_1 ... done
Creating repman_mailhog_1  ... done
Creating repman_app_1      ... error

ERROR: for repman_app_1  Cannot create container for service app: failed to mount local volume: mount /public:/var/lib/docker/volumes/repman_app-public/_data, flags: 0x1000: no such file or directory

ERROR: for app  Cannot create container for service app: failed to mount local volume: mount /public:/var/lib/docker/volumes/repman_app-public/_data, flags: 0x1000: no such file or directory
ERROR: Encountered errors while bringing up the project.

@akondas
Copy link
Member

akondas commented Sep 21, 2020

Hey @mostafasoufi, it looks like you are running this command using sudo. You probably see this warning too.

WARNING: The PWD variable is not set. Defaulting to a blank string.

There are two possible solutions here:

  1. Correct docker configuration with Post-installation steps for Linux
  2. Run docker-compose with PWD env create manually:
sudo PWD=/path/to/repman docker-compose up -d

Let me know if it helped. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants