[Bug][Linux][Perforce]Fails to connect to source control on linux with p4

Here are the settings:
I tried it with and without the password.

  • Server: ssl:my-server-ip:p4-server-listening_port
  • User Name:
  • Workspace: salamanderrake_project
  • Password: valid password

Here is the terminal output.

[2015.06.11-00.24.19:886][910]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.06.11-00.24.19:886][910]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Fail create ctx on .
NetSslTransport::SslClientInit SSL_CTX_new: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed: No such file or directory

[2015.06.11-00.24.21:459][ 70]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.06.11-00.24.21:459][ 70]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Fail create ctx on .
NetSslTransport::SslClientInit SSL_CTX_new: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed: No such file or directory

[2015.06.11-00.24.21:461][ 70]SourceControl:Error: Error Failed to connect to source control. Check your settings and connection then try again.
[2015.06.11-00.30.16:364][239]LogSourceControl:Error: P4ERROR: Could not set password.
[2015.06.11-00.30.16:364][239]LogSourceControl:Error: Can't set registry on UNIX.

[2015.06.11-00.30.16:364][239]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.06.11-00.30.16:364][239]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Can't set registry on UNIX.

[2015.06.11-00.30.16:364][239]SourceControl:Error: Error Failed to connect to source control. Check your settings and connection then try again.

As a side note, when it first starts up before your able to add the settings, the defaults (perforce:1666) take about 10 mins to fail before you can even input your custom settings.

Hey -

Updates to using source control on Linux have been made since this post was created. Can you check the latest release version and let me know if you’re still having any issues with connecting to source control?

Cheers

Still the same issue.

[2015.07.16-21.50.31:063][ 0]LogContentStreaming: Texture pool size now 1000 MB
[2015.07.16-21.50.31:751][ 11]LogAssetRegistry: Asset discovery search completed in 22.4475 seconds
[2015.07.16-21.51.01:569][281]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.07.16-21.51.01:570][281]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Fail create ctx on .
NetSslTransport::SslClientInit SSL_CTX_new: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed: No such file or directory

[2015.07.16-21.51.05:308][650]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.07.16-21.51.05:308][650]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Fail create ctx on .
NetSslTransport::SslClientInit SSL_CTX_new: error:140A90C4:SSL routines:SSL_CTX_new:null ssl method passed: No such file or directory

[2015.07.16-21.51.05:309][650]SourceControl:Error: Error Failed to connect to source control. Check your settings and connection then try again.
[2015.07.16-21.51.20:470][576]LogSourceControl:Error: P4ERROR: Could not set password.
[2015.07.16-21.51.20:470][576]LogSourceControl:Error: Can't set registry on UNIX.

[2015.07.16-21.51.20:470][576]LogSourceControl:Error: P4ERROR: Invalid connection to server.
[2015.07.16-21.51.20:470][576]LogSourceControl:Error: Connect to server failed; check $P4PORT.
Can't set registry on UNIX.

[2015.07.16-21.51.20:470][576]SourceControl:Error: Error Failed to connect to source control. Check your settings and connection then try again.

Try without SSL.

Yeah it works, its just now we have to find a way to get it to work with ssl. Don’t want servers vulnerable now do we? But thanks for getting it working this far.

I get the same issue exact issue, but I can’t modify the ssl in the server, is not up to me. Please Help
thanks

You may have to create a new AH because this is a different issue now, something about Perfore ssl broken on liunx, also I don’t even know if it works on windows/mac either.

Hey and varomix-

The error received when trying to connect with SSL has been reported (UE-18897) for investigation. For now you can continue to use Perforce without SSL.

Cheers

Hi
This is still and issue in 4.9.0, I just can’t use the linux version for my project until it can work with the perforce server, disabling SSL on the server is just not an option, please help.

Thanks

This may help: Application Programming

Replace libp4sslstub.a in Source/ThirdParty/Perforce/p4api-2014.1/lib/linux/x86_64-unknown-linux-gnu/ as described there and make appropriate changes in Perforce.Build.cs - this should unblock you.

I’m not sure what it is I have to change in the .cs file, already replaced the .a file, thanks for the help

I added the -lrt flag for linux, and replaced the lib, now it doesn’t complain but it keeps looking for a workspace forever and never ends

Hey varomix-

Are you able to use p4v from that machine? Addtionally if you are seeing it continue to look for the workspace indefinitely can you break into the code and get the callstack?

Cheers

I encountered this error when using the p4 command line.
After updating OpenSSL(3.1.3), I could not use the command line anymore.

so I deleted the latest version of OpenSSL and rolled back to version 1.1.1, and command line can be used again.

BTW: you can download OpenSSL older version here, and you need uninstall newer version first.