Infrequent authentication failed messages

Bug #1794979 reported by ProfessorKaos64
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
New
Undecided
Unassigned

Bug Description

Every so often, we get this running a job via this API stoack:

Traceback (most recent call last):
  File "jenkins-api-util/jenkins-api-util.py", line 590, in <module>
    build_info = server.get_build_info(job_full_name, this_build_number)
  File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 482, in get_build_info
    self._build_url(BUILD_INFO, locals())
  File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 447, in jenkins_open
    e.code, e.msg)
jenkins.JenkinsException: Error in request. Possibly authentication failed [401]: Invalid password/token for user: some_user
 Completed at 09/28/2018 05:43 AM

Our code:

  # Track build progress
  if build_info['building']:
   logging.info("Job has started, waiting until completion")
   while build_info['building']:
    logging.info("Status: building...")
    time.sleep(5)
    build_info = server.get_build_info(job_full_name, this_build_number)

It is very infrequent and hard to rack down

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.