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

Credentials issue: Access for user 'nouser' has not been enabled by 'p4 protect'.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.86, Windows, P4 1.8.5
    • Similar Issues:

      Description

      I'm trying to add a Perforce Password Credential to connect to a remote replica server but I'm having issues connecting. I'm using an SSL connection and have confirmed the credentials work and triple checked I am using the correct fingerprint. 

      When I hit "Test Connection" it spins for a short while then spits out "Server Connection Error.".

      From looking at the system logs I see this error which seems to indicate it is trying to connect with the username "nouser" though this is not the username that I have entered.

       

      Jun 20, 2018 5:14:35 AM SEVERE org.jenkinsci.plugins.p4.client.ConnectionHelper connect
      P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: Access for user 'nouser' has not been enabled by 'p4 protect'.
      
      Jun 20, 2018 5:14:35 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: Access for user 'nouser' has not been enabled by 'p4 protect'.
      Jun 20, 2018 5:14:35 AM SEVERE org.jenkinsci.plugins.p4.client.ConnectionHelper connectionRetry
      P4: Connection retry: 1
      Jun 20, 2018 5:14:35 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      P4: Connection retry: 1
      Jun 20, 2018 5:14:38 AM SEVERE org.jenkinsci.plugins.p4.client.ConnectionHelper connectionRetry
      P4: Connection retry giving up...
      Jun 20, 2018 5:14:38 AM INFO org.jenkinsci.plugins.p4.client.ConnectionHelper 
      P4: Connection retry giving up...
      
      

      Any idea why this would happen? Connections to our own Perforce servers are connecting fine. 

       

        Attachments

          Activity

          Hide
          p4karl Karl Wirth added a comment -

          Hi Emanuel May - Is this still happening? Does it work when you point the Jenkins system and try the same test? Also which version of P4Jenkins are you using?

          Also please log into the OS and see if P4CHARSET is set somewhere in the environment. For example:

          • echo $P4CHARSET
          • echo %P4CHARSET%
          • p4 set
          • Look in any Config file that matches the name setup for P4CONFIG when you run 'p4 set'.

          Thanks,

          Karl

           

          Show
          p4karl Karl Wirth added a comment - Hi Emanuel May - Is this still happening? Does it work when you point the Jenkins system and try the same test? Also which version of P4Jenkins are you using? Also please log into the OS and see if P4CHARSET is set somewhere in the environment. For example: echo $P4CHARSET echo %P4CHARSET% p4 set Look in any Config file that matches the name setup for P4CONFIG when you run 'p4 set'. Thanks, Karl  
          Hide
          emanuel_may Emanuel May added a comment -

          Hey Karl Wirth,

          It is still happening. I'm not sure what you mean when you say "point the Jenkins system", sorry.

          We are using the latest P4 Plugin for Jenkins. Should be 1.10.14.

          P4CHARSET does not seem to be set on the machines we run the commands on. This is a snippet from powershell outside of Jenkins:
           
          And this is from a powershell command from within a Jenkins job:

          We also don't use any P4CONFIG files and the system is pretty much a fresh installation (just two weeks ago).

          Any help is greatly appreciated!

          Show
          emanuel_may Emanuel May added a comment - Hey Karl Wirth , It is still happening. I'm not sure what you mean when you say "point the Jenkins system", sorry. We are using the latest P4 Plugin for Jenkins. Should be 1.10.14. P4CHARSET does not seem to be set on the machines we run the commands on. This is a snippet from powershell outside of Jenkins:   And this is from a powershell command from within a Jenkins job: We also don't use any P4CONFIG files and the system is pretty much a fresh installation (just two weeks ago). Any help is greatly appreciated!
          Hide
          emanuel_may Emanuel May added a comment -

          Any news on this? Anything we can provide that can help troubleshoot the issue?

          Show
          emanuel_may Emanuel May added a comment - Any news on this? Anything we can provide that can help troubleshoot the issue?
          Hide
          p4karl Karl Wirth added a comment -

          Hi Emanuel May - I apologise I missed your update last week. I'm not sure what I meant when I said "point the jenkins system". Maybe that was why I didnt finish the sentence sorry.

          Can you please send an email to 'support@perforce.com' with the output from 'p4 info' run against your Perforce server. I'd like to have a Zoom meeting with you this week to see what's happening.

           

           

           

           

          Show
          p4karl Karl Wirth added a comment - Hi Emanuel May - I apologise I missed your update last week. I'm not sure what I meant when I said "point the jenkins system". Maybe that was why I didnt finish the sentence sorry. Can you please send an email to 'support@perforce.com' with the output from 'p4 info' run against your Perforce server. I'd like to have a Zoom meeting with you this week to see what's happening.        
          Hide
          p4karl Karl Wirth added a comment -

          We have found out that ther server causing the following error when trying to create a credential:

            Access for user 'nouser' has not been enabled by 'p4 protect'

          activly hangs 'p4 info' if you are not logged in. This is not standard Perforce behavior but is an added security feature at this site. This will block any commands run by P4Java (which always runs 'p4 info') causing the error above.

          Show
          p4karl Karl Wirth added a comment - We have found out that ther server causing the following error when trying to create a credential:   Access for user 'nouser' has not been enabled by 'p4 protect' activly hangs 'p4 info' if you are not logged in. This is not standard Perforce behavior but is an added security feature at this site. This will block any commands run by P4Java (which always runs 'p4 info') causing the error above.

            People

            Assignee:
            p4karl Karl Wirth
            Reporter:
            alexgeek Alexander Perry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: