Build failing when pulling from perforce with SSL received failed:: unexpected eof while reading

Since 8th Jan all the builds are failing from Perforce with [2026-01-12 16:41:37,041] INFO - jetbrains.buildServer.VCS.P4 - jetbrains.buildServer.vcs.perforce.cmdExceptions.PerforceClientErrorException: Perforce client error. Please check your connection parameters or inspect teamcity-vcs logs for the complete information. (exitCode: 1)(stderr: SSL receive failed. read: error:0A000126:SSL routines::unexpected eof while reading: The operation completed successfully. Perforce client error:

If we login to the build machine and pull the repo it works fine

0
1 comment

Hi,

Is it possible that you had rotated the Perforce server's SSL certificates before this error started to occur? If that was the case, you could need to set p4 trust as indicated here:

https://www.jetbrains.com/help/teamcity/perforce.html#Other+Settings

If the SSL certificate on the Perforce server is renewed, the agents need to be configured to trust this new certificate with the help of a special parameter. For security reasons, this parameter needs to be removed after all agents have checked out the sources. Set the teamcity.internal.perforce.forceTrust=true configuration parameter to the related project or build configuration.

It is also worth mentioning there are some known issues of this property being ignored in some cases, that have been fixed in version 2026.1:

https://youtrack.jetbrains.com/issue/TW-95283

Thanks

 

0

Please sign in to leave a comment.