Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28346

Inconsistent CLI failiures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: cli
    • Environment:
    • Similar Issues:

      Description

      I keep running into this. It's not a consistent behavior as the same CLI command passes/fails randomly.

      The command from CLI is: java -jar jenkins-cli.jar -s http://my-URL build job_name --username "admn" --password "admn1234" -p p1=$var p2=$othervar -w

      And here's the obtained error:
      May 11, 2015 3:04:05 PM WARNING org.jenkinsci.main.modules.cli.auth.ssh.SshCliAuthenticator authenticate
      CLI authentication failure
      java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
      at java.io.DataInputStream.readUTF(DataInputStream.java:572)
      at java.io.DataInputStream.readUTF(DataInputStream.java:547)
      at hudson.cli.Connection.readUTF(Connection.java:85)
      at hudson.cli.Connection.verifyIdentity(Connection.java:244)
      at org.jenkinsci.main.modules.cli.auth.ssh.SshCliAuthenticator.authenticate(SshCliAuthenticator.java:39)
      at hudson.cli.CliManagerImpl$2.run(CliManagerImpl.java:109)

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          It will prevent trying to authorize using an SSH key (e.g. ~/.ssh/id_rsa) which the CLI does by default.

          Show
          danielbeck Daniel Beck added a comment - It will prevent trying to authorize using an SSH key (e.g. ~/.ssh/id_rsa) which the CLI does by default.
          Hide
          raccary Raymond Accary added a comment -

          How will it handle the authorization then?
          Another thing, had this been always failing or passing, I wouldn't be this skeptical on this solution.
          The fact that it's an inconsistent/random/intermittent failure is the troubling part. Any ideas on what could be the reason?

          Show
          raccary Raymond Accary added a comment - How will it handle the authorization then? Another thing, had this been always failing or passing, I wouldn't be this skeptical on this solution. The fact that it's an inconsistent/random/intermittent failure is the troubling part. Any ideas on what could be the reason?
          Hide
          danielbeck Daniel Beck added a comment -

          How will it handle the authorization then?

          You're specifying user name and password on the command line.

          Show
          danielbeck Daniel Beck added a comment - How will it handle the authorization then? You're specifying user name and password on the command line.
          Hide
          danielbeck Daniel Beck added a comment -

          Raymond Accary So, did it work?

          Show
          danielbeck Daniel Beck added a comment - Raymond Accary So, did it work?
          Hide
          raccary Raymond Accary added a comment -

          It still shows in the logs as a warning.

          Show
          raccary Raymond Accary added a comment - It still shows in the logs as a warning.

            People

            • Assignee:
              Unassigned
              Reporter:
              raccary Raymond Accary
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: