简体   繁体   English

server.get_jobs 的 JenkinAPI 错误“超过 url 的最大重试次数”

[英]JenkinAPI error with server.get_jobs "max retries exceeded with url"

From the beginning of the new year, i cannot extract jobs info from my Jenkins, using the classic example that can be found here: https://jenkinsapi.readthedocs.io/en/latest/using_jenkinsapi.html#example-2-get-details-of-jobs-running-on-jenkins-server .从新的一年开始,我无法使用可以在此处找到的经典示例从我的 Jenkins 中提取工作信息: https ://jenkinsapi.readthedocs.io/en/latest/using_jenkinsapi.html#example-2-get -在詹金斯服务器上运行的作业详情 In replace of them, i get the following error:代替它们,我收到以下错误:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host=, port=): Max retries exceeded with url: /job/<JOB_NAME>/api/python?tree=allBuilds%5Bnumber%2Curl%5D (Caused by ReadTimeoutError("HTTPSConnectionPool(host=, port=): Read timed out. (read timeout=10)")) requests.exceptions.ConnectionError: HTTPSConnectionPool(host=, port=): 最大重试次数超过 url: /job/<JOB_NAME>/api/python?tree=allBuilds%5Bnumber%2Curl%5D(由 ReadTimeoutError("HTTPSConnectionPool(host =, port=): 读取超时。(读取超时=10)"))

Thanks for any advice.感谢您的任何建议。

You will get this error if the host you are connecting to is not available.如果您要连接的主机不可用,您将收到此错误。

I would suggest trying a few network tests to ensure the host is visible: where:我建议尝试一些网络测试以确保主机可见:其中:
ReadTimeoutError("HTTPSConnectionPool(host='myhost.something.com', port=1234) ReadTimeoutError("HTTPSConnectionPool(host='myhost.something.com', port=1234)

try netcat or tracepath:尝试 netcat 或跟踪路径:
-> nc -w 5 -vz myhost.something.com 1234 -> nc -w 5 -vz myhost.something.com 1234
Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat:版本 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 10.11.12.13:1234. Ncat:连接到 10.11.12.13:1234。
Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds. Ncat:发送 0 个字节,在 0.01 秒内接收到 0 个字节。

-> tracepath -p 33434 myhost.something.com -> tracepath -p 33434 myhost.something.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获得Jenkins上游工作 - Get Jenkins upstream jobs Bitbucket Server Webhook to Jenkins:错误:Jenkins回复:没有使用存储库的git作业 - Bitbucket Server Webhook to Jenkins: Error: Jenkins response: No git jobs using repository 获取 Jenkins 失败的作业详细信息 - Get Jenkins failed jobs details 如何在所有Jenkins作业中更改Git URL - How to change a Git URL in all Jenkins jobs 更改 jenkins 作业中 svn url 的 Groovy 脚本 - Groovy script to change the svn url in jenkins jobs 您同时在Jenkins上运行的最大作业数是多少,服务器的系统规格是什么,CATALINA_OPTS是什么? - What is the max # of jobs you have run on Jenkins concurrently, and what were the system specs of your server, and what are your CATALINA_OPTS? 在管道作业控制台中创建到文件服务器的超链接 - create hyperlink to file server in pipeline jobs console 如何使用Java获取Jenkins的工作清单? - how to get the list of jobs in Jenkins using java? 如何获取 Jenkins 文件夹中的作业列表? - How to get Jenkins list of jobs in folder? Jenkins API:获取按构建参数筛选的作业列表 - 已构建此Git提交的作业是什么? - Jenkins API: Get a list of jobs filtered by build parameter - What jobs have built this Git commit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM