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

P4 plugin: Error Error occurred during the SSL handshake: invalid SSL session

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.580.1
      JRE 1.7
      P4 plugin 1.0.23
      Ubuntu 12.04
    • Similar Issues:

      Description

      I am looking for central configuration for all p4 variables and using credentials plugin to provide all the values.

      When I click on 'Test Connection' it gives me this error.

      Unable to connect to: p4javassl://10.219.131.157:1666
      Error occurred during the SSL handshake: invalid SSL session

      Can you please suggest?

      Thanks in advance
      Manohar

        Attachments

          Activity

          Hide
          fl_shiki Kevin Dethoor added a comment -

          After downgrading both Jenkins (2.235.5 -> 2.235.1) and P4 Plugin (1.11.0 -> 1.10.4), I finally managed to establish an SSL connection to our server. Downgrading only one of them didn't work. My issue appears to be similar to this issue with Docker (JENKINS-63489).

          Hope this helps and many thanks for the replies until now!

          Show
          fl_shiki Kevin Dethoor added a comment - After downgrading both Jenkins (2.235.5 -> 2.235.1) and P4 Plugin (1.11.0 -> 1.10.4), I finally managed to establish an SSL connection to our server. Downgrading only one of them didn't work. My issue appears to be similar to this issue with Docker ( JENKINS-63489 ). Hope this helps and many thanks for the replies until now!
          Hide
          erusso Emanuele Russo added a comment -

          Thanks a lot, this is very helpful, because I have 235.1 too, and now I know that I won't upgrade

          Show
          erusso Emanuele Russo added a comment - Thanks a lot, this is very helpful, because I have 235.1 too, and now I know that I won't upgrade
          Hide
          latalavera jesus fernandez added a comment - - edited

          I have made sure I have no other Jre installed too, I have Jenkins 2.235.5 and P4 plugin 1.11.0 but how can I downgrade or get an older version if I have not had it before?

          Thanks a lot!

          Show
          latalavera jesus fernandez added a comment - - edited I have made sure I have no other Jre installed too, I have Jenkins 2.235.5 and P4 plugin 1.11.0 but how can I downgrade or get an older version if I have not had it before? Thanks a lot!
          Hide
          fl_shiki Kevin Dethoor added a comment - - edited

          Hi Jesus,

          Actually, as highlighted by Paul and Karl in JENKINS-63489, it might be due to your server not working properly with TLSv1.2 while P4Java uses it by default in P4 plugin 1.11.0 - it was the case for me as the version of our server is 2018.1 patch 1715250, which is older than the requirements set at 2018.1 patch 1805524 or greater.

          You might want to force the TLS version to be TLSv1 as explained in https://community.perforce.com/s/article/2620. In other words, you might want to use -DsecureSocketEnabledProtocols=TLSv1 (not TLSv1.0, but TLSv1!) in your Java arguments, which for me have to be specified in %USERPROFILE%\jenkins.xml.
          As I mentioned in the earlier ticket (https://issues.jenkins-ci.org/browse/JENKINS-63489?focusedCommentId=396376&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-396376), I managed to use the latest versions of Java JRE, Jenkins and P4 plugin to establish a connection that way.

          It should not be necessary as explained here above, and most likely not recommended, but in case you still want to use older versions of Jenkins and P4 plugin, here is where you can find them:
          Jenkins past versions:https://get.jenkins.io/war-stable/
          P4 Plugin past versions:https://updates.jenkins.io/download/plugins/p4/]. To install the past version of the plugin, you need to go into Manage Jenkins > Manage Plugins > Advanced > Upload plugin and upload it.

          Show
          fl_shiki Kevin Dethoor added a comment - - edited Hi Jesus, Actually, as highlighted by Paul and Karl in JENKINS-63489 , it might be due to your server not working properly with TLSv1.2 while P4Java uses it by default in P4 plugin 1.11.0 - it was the case for me as the version of our server is 2018.1 patch 1715250, which is older than the requirements set at 2018.1 patch 1805524 or greater. You might want to force the TLS version to be TLSv1 as explained in https://community.perforce.com/s/article/2620. In other words, you might want to use -DsecureSocketEnabledProtocols=TLSv1 (not TLSv1.0, but TLSv1!) in your Java arguments, which for me have to be specified in %USERPROFILE%\jenkins.xml . As I mentioned in the earlier ticket ( https://issues.jenkins-ci.org/browse/JENKINS-63489?focusedCommentId=396376&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-396376 ), I managed to use the latest versions of Java JRE, Jenkins and P4 plugin to establish a connection that way. It should not be necessary as explained here above, and most likely not recommended, but in case you still want to use older versions of Jenkins and P4 plugin, here is where you can find them: Jenkins past versions: https://get.jenkins.io/war-stable/ P4 Plugin past versions :https://updates.jenkins.io/download/plugins/p4/ ]. To install the past version of the plugin, you need to go into Manage Jenkins > Manage Plugins > Advanced > Upload plugin and upload it.
          Hide
          latalavera jesus fernandez added a comment - - edited

          Hi Kevin.

           

          It is working now!, thanks a lot for taking the time to answer and explain everyting in detail, usually most of the people take for granted I have 10+ years of experience which is not the case (I have been using, or trying to use, jenkins for 2 weeks).

          Your answer sorted all my doubts and jenkins is working now

          Show
          latalavera jesus fernandez added a comment - - edited Hi Kevin.   It is working now!, thanks a lot for taking the time to answer and explain everyting in detail, usually most of the people take for granted I have 10+ years of experience which is not the case (I have been using, or trying to use, jenkins for 2 weeks). Your answer sorted all my doubts and jenkins is working now

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            khakunin manohar joshi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: