Divio App trouble to create project directory and clone repository

旧时模样 提交于 2020-01-05 07:09:47

问题


Please help I have trouble with Divio App trying to making it work. When I press "set up project" it gives me this

*

Creating workspace
cloning project repository
Cloning into '/c/Users/Ubisoft/Documents/iloveit'...
Bad owner or permissions on /home/divio/.ssh/config
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
There was an error trying to run a command. This is most likely
not an issue with divio-cli, but the called program itself.
Try checking the output of the command above.
The command was:
  git clone git@git.divio.com:iloveit.git /c/Users/Ubisoft/Documents/iloveit

*

and in windows power shell it gives me this

Creating workspace

cloning project repository
Cloning into '/c/Users/Ubisoft/Documents/iloveit'...
Bad owner or permissions on /home/divio/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
------------------------------------------------------------------------------------------------------------------------
There was an error trying to run a command. This is most likely
not an issue with divio-cli, but the called program itself.
Try checking the output of the command above.
The command was:
  git clone git@git.divio.com:iloveit.git /c/Users/Ubisoft/Documents/iloveit

divio@app-1.0.0 /c/Users/Ubisoft/Documents
$

I also tried this from virtual MacOS and getting this message:

https://i.stack.imgur.com/QccvY.png

I also tried to mess arouond with creating SSH keys but didn't work out.

Can someone provide me step by step explanation how to make this wonderful app work?


回答1:


In the Windows examples you show, I see:

Bad owner or permissions on /home/divio/.ssh/config

I am not sure how that has happened, but that is what is preventing your local environment from providing the expected key to the Divio Control Panel.

In the Macintosh example, the environment doesn't have a key that the Control Panel knows about.

You will need to add the key (probably from ~/.ssh/rsa_id.pub) to https://control.divio.com/account/ssh-keys/. If you don't already have a key in the Macintosh environment, you will need to set one up.




回答2:


For anyone who may face this issue. On my MacOS virtual machine I managed to find solution. Looks like it is Internet Service Provider blocking port 22 something like that. Okay looks like problem resolved. I used VPN and without any hastle with SSH I got different result. Looks like it is working now not finished creating project yet but promising:

Creating workspace

cloning project repository
Cloning into '/Users/johnwick/Documents/best-project'...
Locking the website...
remote: Counting objects: 785, done.
remote: Compressing objects: 100% (739/739), done.
Unlocking the website...(385/785), 1.05 MiB | 524.00 KiB/s
remote: Total 785 (delta 112), reused 0 (delta 0)
Receiving objects: 100% (785/785), 1.77 MiB | 448.00 KiB/s, done.
Resolving deltas: 100% (112/112), done.
Checking out files: 100% (615/615), done.
downloading remote docker images
Pulling db  ... done
Pulling web ... done
building local docker images
db uses an image, skipping
Building web
Step 1/7 : FROM divio/base:4.15-py3.6-slim-stretch
4.15-py3.6-slim-stretch: Pulling from divio/base



回答3:


okay so here is the thing. divio app in windows stop working. so i reinstall it and docker desktop (it is useless actually) and docker toolbox (works as docker replacement for divio after run from docker quickstart terminal) and now divio gives me new error which is this:

Usage: divio project setup [OPTIONS] SLUG
Try "divio project setup --help" for help.

Error: Invalid value for "-p" / "--path": Path "." is not writable.

divio@app-1.0.0 /c/Users/Ubisoft/Pictures

so at this point im giving up on windows 10 pro attempts to run divio app unless someone can bring solution to this new problem.

i couldn't test vpn for previous problem on windows also.

but i am still very happy to find solution using VPN for MacOS virtual machine setup that runs Divio app fantasticly good.



来源:https://stackoverflow.com/questions/59367228/divio-app-trouble-to-create-project-directory-and-clone-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!