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

Could not create git bare repository #212

@gabrielclima

Description

@gabrielclima

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions