【问题标题】:DDEV not starting project after update to 1.10.2更新到 1.10.2 后 DDEV 未启动项目
【发布时间】:2019-08-19 14:25:11
【问题描述】:

将 Docker 和 DDEV 更新到最新版本后,无法启动项目。 我刚刚将 DDEV 从旧版本更新到最新版本。现在无法启动任何旧项目或新项目。 我已经尝试过一个提示(ddev config global --instrumentation-opt-in=false),它从“DDEV config”末尾删除错误消息,但“DDEV start”总是失败。

这是“ddev version”的输出:

commit              v1.10.2
db                  drud/ddev-dbserver:v1.10.0-10.2
dba                 drud/phpmyadmin:v1.10.0
ddev-ssh-agent      drud/ddev-ssh-agent:v1.10.2
docker              19.03.1
docker-compose      1.24.1
os                  darwin
router              drud/ddev-router:v1.10.0
web                 drud/ddev-webserver:v1.10.2

这就是我如何重现它:

cd test
ddev config
(pressing Enter to all question to use the default values)
ddev start

输出此错误消息而不是启动容器:

Building ddev-ssh-agent
[3674] Failed to execute script docker-compose
Traceback (most recent call last):
  File "site-packages/dockerpycreds/store.py", line 80, in _execute
  File "subprocess.py", line 356, in check_output
  File "subprocess.py", line 438, in run
subprocess.CalledProcessError: Command '['/usr/local/bin/docker-credential-desktop', 'get']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/docker/auth.py", line 264, in _resolve_authconfig_credstore
  File "site-packages/dockerpycreds/store.py", line 35, in get
  File "site-packages/dockerpycreds/store.py", line 93, in _execute
dockerpycreds.errors.StoreError: Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `no hostname in URL`".

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 6, in <module>
  File "compose/cli/main.py", line 71, in main
  File "compose/cli/main.py", line 127, in perform_command
  File "compose/cli/main.py", line 1085, in up
  File "compose/cli/main.py", line 1081, in up
  File "compose/project.py", line 527, in up
  File "compose/service.py", line 344, in ensure_image_exists
  File "compose/service.py", line 1084, in build
  File "site-packages/docker/api/build.py", line 260, in build
  File "site-packages/docker/api/build.py", line 307, in _set_auth_headers
  File "site-packages/docker/auth.py", line 304, in get_all_credentials
  File "site-packages/docker/auth.py", line 281, in _resolve_authconfig_credstore
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `no hostname in URL`".',)
Failed to start test: failed to start ddev-ssh-agent: Failed to run docker-compose [-f /Users/michaeloehlhof/.ddev/ssh-auth-compose.yaml -p ddev-ssh-agent up --build --force-recreate -d], err='exit status 255', stdout='', stderr='Building ddev-ssh-agent
[3674] Failed to execute script docker-compose
Traceback (most recent call last):
  File "site-packages/dockerpycreds/store.py", line 80, in _execute
  File "subprocess.py", line 356, in check_output
  File "subprocess.py", line 438, in run
subprocess.CalledProcessError: Command '['/usr/local/bin/docker-credential-desktop', 'get']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/docker/auth.py", line 264, in _resolve_authconfig_credstore
  File "site-packages/dockerpycreds/store.py", line 35, in get
  File "site-packages/dockerpycreds/store.py", line 93, in _execute
dockerpycreds.errors.StoreError: Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `no hostname in URL`".

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 6, in <module>
  File "compose/cli/main.py", line 71, in main
  File "compose/cli/main.py", line 127, in perform_command
  File "compose/cli/main.py", line 1085, in up
  File "compose/cli/main.py", line 1081, in up
  File "compose/project.py", line 527, in up
  File "compose/service.py", line 344, in ensure_image_exists
  File "compose/service.py", line 1084, in build
  File "site-packages/docker/api/build.py", line 260, in build
  File "site-packages/docker/api/build.py", line 307, in _set_auth_headers
  File "site-packages/docker/auth.py", line 304, in get_all_credentials
  File "site-packages/docker/auth.py", line 281, in _resolve_authconfig_credstore
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: `no hostname in URL`".',)'

【问题讨论】:

  • 可以分享一下config.yml文件吗?
  • 看起来docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: no hostname in URL".',)' 是问题所在。我不认为这是一个 ddev 问题。
  • 这是我的 config.yaml APIVersion: v1.10.2 name: test type: php docroot: "" php_version: "7.2" webserver_type: nginx-fpm router_http_port: "80" router_https_port: "443" xdebug_enabled: false additional_hostnames: [] additional_fqdns: [] mariadb_version: "10.2" nfs_mount_enabled: false provider: default use_dns_when_possible: true timezone: ""

标签: macos ddev


【解决方案1】:

我已经修复了错误,但不知道具体是什么原因。 取消勾选“在 macOS 钥匙串中安全存储 docker 登录”没有帮助,它会导致另一个错误。 我已经为 Docker Hub 创建了一个登录名,错误仍然存​​在。 在我的 OSxKeyChain 中有多个以“Docker Credentials”命名的条目。我删除了旧条目并重命名了一些条目,直到只有一个条目“Docker Credentials”包含我新创建的 Docker Hub 帐户的数据。然后我将其他条目重命名为“Docker Credentials”并且它可以工作。我删除的旧条目之一一定是问题的根源。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-15
    • 2020-06-15
    • 1970-01-01
    • 2013-12-19
    • 1970-01-01
    • 2021-12-22
    相关资源
    最近更新 更多