Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Could not create git bare repository #212

Open
gabrielclima opened this issue Feb 11, 2018 · 0 comments
Open

Could not create git bare repository #212

gabrielclima opened this issue Feb 11, 2018 · 0 comments

Comments

@gabrielclima
Copy link

gabrielclima commented Feb 11, 2018

I'm trying to test Tsuru env, i installed the stack with Docker Compose, using the Tsuru tutorial.

When i try to create a new app using tsuru-client with the command ./tsuru app-create test-py python3 --team=admin, returns the error bellow:

Error: tsuru failed to create the app "test-py": Could not create git bare repository: exit status 128. fatal: cannot mkdir /var/lib/gandalf/repositories/test-py.git: Permission denied

i ran _ docker exec -it 16b84a7256cf chown git:git /var/lib/gandalf/repositories/ and now i can create respositories:

➜  Downloads _ docker exec -it 16b84a7256cf chown git:git /var/lib/gandalf/repositories/
➜  Downloads ./tsuru app-create test-py python3 --team=admin                            
App "test-py" has been created!
Use app-info to check the status of the app and its units.
Your repository for "test-py" project is "git@localhost:test-py.git"

i believe this error can be resolved adding chown git:git /var/lib/gandalf/repositories/ line to gandalf docker-entrypoint.sh file.

its sounds correct? if yes, can i open the PR with this correction?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant