【问题标题】:conan user cmd generates Invalid server response柯南用户 cmd 生成无效的服务器响应
【发布时间】:2018-09-21 17:07:38
【问题描述】:

我在 Windows 7 上安装了适用于 C/C++ 6.3.3 的 Artifactory Community Edition,并创建了一个 conan 存储库。在同一台机器上,我确实有柯南 1.7.3。我将存储库添加到远程列表中

λ conan remote add test http://localhost:8082/artifactory/api/conan/testtcc
λ conan remote list
conan-center: https://conan.bintray.com [Verify SSL: True]
conan-transit: https://conan-transit.bintray.com [Verify SSL: True]
poco: https://api.bintray.com/conan/pocoproject/conan [Verify SSL: True]
test: http://localhost:8082/artifactory/api/conan/testtcc [Verify SSL: True]

但是当我尝试添加用户时,我得到了这个错误

λ conan user admin -r test -p                                            
Please enter a password for "admin" account:                             
ERROR: b''                                                               

Invalid server response, check remote URL and try again. [Remote: test]

【问题讨论】:

  • 快速提示:poco 库已经链接到 conan-center,所以你可能不需要那个遥控器。 conan-transit 遥控器大多已弃用和损坏,我不建议使用它,除非您想对旧配方进行一些取证以基于它们为库构建包
  • 如果您尝试执行conan search "*" -r=test,输出是什么?
  • 谢谢@drodri,这两个遥控器只是为了测试而添加的,我删除了它们。 λ conan user Current user of remote 'conan-center' set to: 'None' (anonymous) Current user of remote 'test' set to: 'None' (anonymous) conan search "*" -r=test ERROR: Permission denied for user: 'None'. [Remote: test]
  • 在工件上允许匿名访问被选中。我添加了管理员用户但没有指定密码λ conan user admin -r test Changed user of remote 'test' from 'None' (anonymous) to 'admin' λ conan search "*" -r=test ERROR: Permission denied for user: 'admin'. [Remote: test]
  • 不知道会是什么。我建议联系柯南团队(在他们的电子邮件中,或在 github 问题中)并尝试在那里解决问题,可能需要一些讨论和更多细节,这可能不是最好的论坛。

标签: artifactory conan


【解决方案1】:

谢谢@drodri,错误信息不相关,实际上问题与conan代理配置有关。我正在通过代理连接到柯南中心,并且没有本地远程“测试”的代理。 添加no_proxy_match = http://localhost:8082* 解决了这个问题。 known issue

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-15
    • 2020-10-31
    • 1970-01-01
    • 2023-03-20
    相关资源
    最近更新 更多