【问题标题】:Divio App trouble to create project directory and clone repositoryDivio App 麻烦创建项目目录和克隆存储库
【发布时间】:2019-12-17 03:29:06
【问题描述】:

请帮助我在尝试使其正常工作时遇到问题。 当我按“设置项目”时 它给了我这个

*

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

*

在 windows power shell 中它给了我这个

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
$

我也在虚拟 MacOS 上尝试过这个并收到此消息:

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

我也尝试过创建 SSH 密钥,但没有成功。

有人可以一步一步地解释如何使这个出色的应用程序运行吗?

【问题讨论】:

    标签: django docker divio


    【解决方案1】:

    在您展示的 Windows 示例中,我看到:

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

    我不确定这是怎么发生的,但这就是阻止您的本地环境向 Divio 控制面板提供预期密钥的原因。

    在 Macintosh 示例中,环境没有控制面板知道的键。

    您需要将密钥(可能来自~/.ssh/rsa_id.pub)添加到https://control.divio.com/account/ssh-keys/。如果您在 Macintosh 环境中还没有密钥,则需要设置一个。

    【讨论】:

    • 我想如果我在安装步骤中出错了,也许你可以帮助我。但也许我的互联网服务提供商有问题,比如他们不允许端口 22 或其他什么......我必须尝试从其他国家/地区猜测的其他方式或使用 VPN 看看会发生什么
    • 好的,看起来问题已解决。我使用了 VPN,并且没有任何使用 SSH 的麻烦,我得到了不同的结果。看起来它现在正在工作,尚未完成创建项目,但很有希望:
    【解决方案2】:

    对于可能面临此问题的任何人。在我的 MacOS 虚拟机上,我设法找到了解决方案。看起来是互联网服务提供商阻止了类似的端口 22。好的,看起来问题已解决。我使用了 VPN,并且没有任何使用 SSH 的麻烦,我得到了不同的结果。看起来它现在正在工作,尚未完成创建项目,但很有希望:

    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
    

    【讨论】:

    • 尚不清楚使用 VPN 对Bad owner or permissions on /home/divio/.ssh/config 错误有何影响。
    • 是的,我还没有尝试使用 Windows 计算机进行 VPN。只是它在 MacOS 上工作。
    • 另外值得一提的是,在 Windows 10 pro 上,divio 应用程序运行不佳。所以我不得不使用 Docker Tools 手动安装和运行,关闭 Hyper V 并打开 VT-x。它使我能够安装 Divio 应用程序,直到那个错误点。但稍后我会尝试使用 VPN 看看是否有帮助。
    • 无法在 Windows 上实现
    猜你喜欢
    • 1970-01-01
    • 2012-05-06
    • 2019-02-23
    • 2014-07-08
    • 1970-01-01
    • 2021-04-16
    • 2022-07-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多