I’m unable to attach a git repo with my docker-compose default install of rasa-x
The running docker container is:
839e8ae0ef86 rasa/rasa-x:0.27.7 “sh -c 'user_id=$(id…”
Things I tried
- local git repo with web gui method
- local git repo with api call method with freshly generated keys, without passphrase
- github repo with web gui method
- github repo with api call method with freshly generated keys, without passphrase
I suppose there is something wrong in the docker container? At least “Could not create directory ‘/root/.ssh’.” in docker logs is suspicious.
After trying this, github says the keys were used (the standard public key from web gui and the generated public one), which would not be the case if it didn’t contact github with it. Keys are Read/Write on github, and write permission is also given for local git repo.
$ curl --request POST \
--url http://10.192.67.46/api/projects/default/git_repositories?api_token=xxx \ --header 'content-type: application/json' \ --data-binary @repository.json
{“version”:“0.27.7”,“status”:“failure”,“message”:“Insufficient permissions for remote repository.”,“reason”:“RepositoryCreationFailed”,“details”:“Given repository credentials don’t provide write permissions to the repository. Please make sure the ssh key is correct and the administrator of the remote repository gave you the required permissions.”,“help”:null,“code”:422}
The log contains:
ERROR:rasax.community.api.blueprints.git:Given repository credentials don’t provide write permissions to the repository. Please make sure the ssh key is correct and the administrator of the remote repository gave you the required permissions.
Some trys also logged:
$ sudo docker logs --tail 50 --follow --timestamps rasa_docker_rasa-x_1 2020-04-28T14:00:34.160496748Z cmdline: git clone --depth=1 -v git@10.192.67.46:rasax.git /tmp/tmpxty5u_oe 2020-04-28T14:00:34.160501448Z stderr: 'Cloning into ‘/tmp/tmpxty5u_oe’… 2020-04-28T14:00:34.160504848Z Could not create directory ‘/root/.ssh’. 2020-04-28T14:00:34.160508248Z Warning: Permanently added ‘10.192.67.46’ (ECDSA) to the list of known hosts. 2020-04-28T14:00:34.160511948Z Permission denied, please try again. 2020-04-28T14:00:34.160515248Z Permission denied, please try again. 2020-04-28T14:00:34.160518548Z git@10.192.67.46: Permission denied (publickey,password). 2020-04-28T14:00:34.160529647Z fatal: Could not read from remote repository.
Can someone help me please? This is frustrating …