Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何处理柯南服务器连接被拒绝?_C++_Conan - Fatal编程技术网

C++ 如何处理柯南服务器连接被拒绝?

C++ 如何处理柯南服务器连接被拒绝?,c++,conan,C++,Conan,我有一个docker容器,作为Conan服务器运行。我正在尝试将一些柯南软件包从另一个docker容器上载到柯南服务器。在输入用户名和密码后,我得到以下错误 Error uploading file: conanmanifest.txt, 'HTTPConnectionPool(host='localhost', port=9300): Max retries exceeded with url: /v1/files/hello/0.1/demo/testing/0/export/c

我有一个docker容器,作为Conan服务器运行。我正在尝试将一些柯南软件包从另一个docker容器上载到柯南服务器。在输入用户名和密码后,我得到以下错误

 Error uploading file: conanmanifest.txt, 
    'HTTPConnectionPool(host='localhost', port=9300): Max retries exceeded with url: /v1/files/hello/0.1/demo/testing/0/export/conanmanifest.txt?signature=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZV9wYXRoIjoiaGVsbG8vMC4xL2RlbW8vdGVzdGluZy8wL2V4cG9ydC9jb25hbm1hbmlmZXN0LnR4dCIsInVzZXJuYW1lIjoiZGVtbyIsImZpbGVzaXplIjo1OCwiZXhwIjoxNTg1NDQyMjYyfQ.7sHncjZ7J8gV5HENMqCIwLe7b483QfrGJ2PVyolvjC4
         (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99c84d2e50>: 

Failed to establish a new connection: [Errno 111] Connection refused'))'

        ERROR: hello/0.1@demo/testing: Upload recipe to 'my_server' failed: Execute upload again to retry upload the failed files: conanfile.py, conanmanifest.txt. [Remote: my_server]

ERROR: Errors uploading some packages
从现在起,我希望通过
curl达到目标http://localhost:9999
但是要

无法连接到本地主机端口9999:连接被拒绝

PS:从我的主机到服务器,它工作得非常好。但是,当我想从一个容器上传到另一个容器时,出现了错误。我通过将自定义配置文件复制到docker容器来解决这个问题。否则,我无法覆盖默认配置文件

1. Write custom config file
2. COPY or ADD to image (in Dockerfile)
3. mv custom.conf /path/to/directory/ (from entrypoint)

我通过将自定义配置文件复制到docker容器来解决这个问题。否则,我无法覆盖默认配置文件

1. Write custom config file
2. COPY or ADD to image (in Dockerfile)
3. mv custom.conf /path/to/directory/ (from entrypoint)

首先,我强烈建议使用Artifactory作为服务器,而不是
conan\u服务器
。然后,如果您正在运行conan_服务器,您是否阅读并在服务器配置中相应地设置
公共_端口
主机名
?@drodri请查看编辑。bcz仍然无法工作您可能希望尝试完整的IP地址,而不是
localhost
。似乎主机和docker之间存在连接问题。我总是建议首先尝试在本地运行服务器(它在Win、Linux、OSX中工作),以调试其他可能的问题。请看一看上面的推荐,选择Artifactory,它的可扩展性会更好,有web UI,更好的身份验证集成,rest API…@drodri我也做了同样的事情。但还是一样的问题。在我的例子中,我必须使用conan服务器。首先,我强烈建议使用Artifactory作为服务器,而不是
conan_服务器
。然后,如果您正在运行conan_服务器,您是否阅读并在服务器配置中相应地设置
公共_端口
主机名
?@drodri请查看编辑。bcz仍然无法工作您可能希望尝试完整的IP地址,而不是
localhost
。似乎主机和docker之间存在连接问题。我总是建议首先尝试在本地运行服务器(它在Win、Linux、OSX中工作),以调试其他可能的问题。请看一看上面的推荐,选择Artifactory,它的可扩展性会更好,有web UI,更好的身份验证集成,rest API…@drodri我也做了同样的事情。但还是一样的问题。在我的情况下,我必须使用conan服务器。