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

Connection Error: P4: Invalid credentials. Giving up...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • p4-plugin
    • None
    • Both on MacOS/Windows11. Jenkins 2.432, P4-Plugin 1.14.3. tried both OpenJDK 17 and 21

      Unable to connect to P4 using username/password.

      Jenkins keeps telling me "Connection Error: P4: Invalid credentials. Giving up...", but I have no problem login to perforce using P4V or command line.

      Following is the screenshot:

      jenkins.error.log

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      2023-11-20 01:56:18.854+0000 [id=3381]  SEVERE  o.j.p.p4.client.SessionHelper#connect: P4: Unable to login: com.perforce.p4java.exception.ConnectionException: Cannot invoke "String.matches(String)" because "secretKey" is null
      2023-11-20 01:56:18.854+0000 [id=3381]  INFO    o.j.p.p4.client.ConnectionHelper#<init>: P4: Unable to login: com.perforce.p4java.exception.ConnectionException: Cannot invoke "String.matches(String)" because "secretKey" is null
      2023-11-20 01:56:18.854+0000 [id=3381]  SEVERE  o.j.p.p4.client.SessionHelper#connectionRetry: P4: Connection retry: 1
      2023-11-20 01:56:18.854+0000 [id=3381]  INFO    o.j.p.p4.client.ConnectionHelper#<init>: P4: Connection retry: 1
      2023-11-20 01:56:22.004+0000 [id=3381]  SEVERE  o.j.p.p4.client.SessionHelper#connectionRetry: P4: Invalid credentials. Giving up...
      2023-11-20 01:56:22.005+0000 [id=3381]  INFO    o.j.p.p4.client.ConnectionHelper#<init>: P4: Invalid credentials. Giving up...
      

      I had trouble with this for more than one week, any more debug info I can dump and investigate with on my machine?

      P.S. I tried to set up a brand new Jenkins on both Mac & Windows machine, both have the same issue. (JDK is openJDK21)

            Unassigned Unassigned
            nexu neil
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: