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

p4 plugin fails to authenticate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: p4-plugin
    • Labels:
      None
    • Environment:
      CentOS7, Jenkins ver. 2.107.3, p4-plugin 1.8.10
      JDK 1.8.0_121-b13
    • Similar Issues:

      Description

      I am trying to set up the credentials for a build job, but always get " Authentication Error: Unable to login." when pressing the "Test Connection" button.

      After pressing the button, there is a .p4tickets file in the users home on the server containing a valid ticket, and I can remove it on the command line with "p4 logout".

      Debug log shows that the user has been logged in, but the next message comlains that "Perforce password (P4PASSWD) invalid or unset":

      Jun 07, 2018 7:35:42 AM FINE org.jenkinsci.plugins.p4.client.ConnectionHelper
      P4: opened connection OK
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper login
      P4: login failed 'Perforce password (P4PASSWD) invalid or unset.
      '
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      Perforce password (P4PASSWD) invalid or unset.
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:7
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 info
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 info
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:8
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      Perforce password (P4PASSWD) invalid or unset.
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:9
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 login
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 login
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      User jenkins logged in.
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:10
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      Perforce password (P4PASSWD) invalid or unset.
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:11
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):cmd:... p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      p4 login -s
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      Perforce password (P4PASSWD) invalid or unset.
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      (p4):stop:12
      
      Jun 07, 2018 7:35:42 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper login
      P4: login failed 'Perforce password (P4PASSWD) invalid or unset.
      '
      

        Attachments

          Activity

          Hide
          p4karl Karl Wirth added a comment -

          Hi.

          Are you still seeing this problem? My immediate thought is that it could be a DNS name resolution problem with different reverse responses being seen from Master and slaves.  Also do you have a Perforce support contract so I can get more detailed information? If you do please email support@perforce.com and put the email for my attention including this bug reference.

          Thanks in advance,

          Karl

          Show
          p4karl Karl Wirth added a comment - Hi. Are you still seeing this problem? My immediate thought is that it could be a DNS name resolution problem with different reverse responses being seen from Master and slaves.  Also do you have a Perforce support contract so I can get more detailed information? If you do please email support@perforce.com and put the email for my attention including this bug reference. Thanks in advance, Karl
          Hide
          vbier vbier added a comment -

          Thanks for you feedback. Problem was that the perforce server was too old. It does now work after a server upgrade.

          Show
          vbier vbier added a comment - Thanks for you feedback. Problem was that the perforce server was too old. It does now work after a server upgrade.
          Hide
          p4karl Karl Wirth added a comment -

          Hi vbier - Thanks for letting us know.

          Show
          p4karl Karl Wirth added a comment - Hi vbier - Thanks for letting us know.

            People

            Assignee:
            p4karl Karl Wirth
            Reporter:
            vbier vbier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: