Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

CFX Unexpected error: SocketError launching results from Workbench into CFD-Post

    • David Rosemary
      Subscriber

      Hello,

      I saw something like this referenced in other old posts but didn't notice any resolutions. I have a workbench project generated in the student version of ANSYS 2024R1 and am trying to open results in our educational site license version of 2024R1. My clients are generating the errors below. It seems to be an issue between the two applications establishing a connection to pass data. 

      Ansyscl log shows this error:

      HANDSHAKE_ERROR  Could not make an SSL handshake with client 7856:127.0.0.1System error: 10054 An existing connection was forcibly closed by the remote host.

       

      Workbench CoreEvents Log shows:

      {2/19/2024 9:52:00 AM} [Ansys.Core.Commands.CommandFailedException:Message] An error occured initializing CFD-Post: An error was encountered during communications. CFD-Post exited unexpectedly.
      Ansys.Core.Commands.UserReadableFailureException: An error occured initializing CFD-Post: An error was encountered during communications. CFD-Post exited unexpectedly.
         at Ansys.CFX.Foundation.Data.CUESourceDataObject.Edit(IFullContext context, Boolean interactive)
         at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)
         at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)
         at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
      --- Ansys.Core.Commands.CommandFailedException: An error occured initializing CFD-Post: An error was encountered during communications. CFD-Post exited unexpectedly.
      CommandName: CFX.EditResultsAnalysis(Container="Results")
         at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)
         at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
         at Ansys.CFX.CFDPost.Commands.EditResultsAnalysisCommand.InvokeAndWait(IProtectedContext context, DataContainerReference Container, Boolean Interactive)
         at Ansys.CFX.CFDPost.Commands.EditResultsAnalysisGui.Invoke(GuiOperationContext context)
         at Ansys.UI.GuiOperationContext.Invoke(GuiOperationMetaData operationData)
         at Ansys.UI.UIManager.InvokeOperationCore(String pseudoname, OperationDelegate callback, Boolean allowOSMessages, Boolean coreTransaction, Boolean deferredRefreshOnly)

       

      Steps tried:

      Disable all firewall profiles

      Clear %temp%\.ansys files

      Clear user .cfx folder

      Ensure user is an administrator

      Fresh image installation, ensuring no previous versions exists.

    • Vivek Praveen
      Ansys Employee

      Hi David

      You can try this,

      1. Close the workbench session
      2. Go to C:\Users\username folder. Then locate .cfx folder. 
      3. Rename it to .cfxBAKCUP
      4. Now open the workbench session and see if the error persists.

       

    • David Rosemary
      Subscriber

      Thanks.

      As stated we already tried to clear that folder. We also tried the renaming. In fact we tried deleting the entire user or using another profile, so this doesn’t appear to be profile related. 
      For more clues we tried to open a dat file in CFD-Post directly and saw the following on the CFD-Post command window:

      ———————————————————————————
      OPENSSL_Uplink(00007FFBB4E41820,08): no OPENSSL_Applink
      Socket error: recv: connection reset
      Aborting due to unexpected error:
      socketError: RemoteEngineProtocol::receiveTransStat – Communications error: unexpected end of transmission from engine, expected status code.
      The application has encountered an unexpected problem and will now terminate:
       
      Aborting due to unexpected error:
      socketError: RemoteEngineProtocol::receiveTransStat – Communications error: unexpected end of transmission from engine, expected status code.
       
      Please report this error, along with the circumstances in which it occurred.
       
      The following information may be useful to CFX support:
       
      Unexpected error: Aborting due to unexpected error:
      socketError: RemoteEngineProtocol::receiveTransStat – Communications error: unexpected end of transmission from engine, expected status code.
      ———————————————————————————


      The .ansys log file produced the following:
      ———————————————————————————
      2024/02/21 09:39:45    INFO                ANSYSLI_CMD=C:\Program Files\ANSYS Inc\v241\licensingclient\winx64\ansyscl.exe -acl 12180.68406 -nodaemon -log C:\Users\(the_USER)\AppData\Local\Temp\.ansys\ansyscl.(our_host_name).12180.68406.log
      2024/02/21 09:39:45    INFO                ANSYSLI_INITIALIZATION_FILE=’C:\Program Files\ANSYS Inc\Shared Files\Licensing\ansyslmd.ini'
      2024/02/21 09:39:45    INFO                ANSYSLI_PRODORD_FILE=’C:\Program Files\ANSYS Inc\Shared Files\Licensing\prodord\ansysli.prodord.xml'
      2024/02/21 09:39:45    INFO                ANSYSLI_TIMEOUT_FLEXLM=15
      2024/02/21 09:39:45    INFO                Configuring ACL Core
      2024/02/21 09:39:45    INFO                ACL Core Initialized
      2024/02/21 09:39:45    INFO                ANSYSCL_PORT=50013 
      2024/02/21 09:39:45    INFO                Listen Socket Created
      2024/02/21 09:39:45    INFO                ANSYSLI_CLIENT_IDLE_TIMEOUT=0
      2024/02/21 09:39:45    INFO                ANSYSCL_FNP_PATH=1055@(our_license_server)
      2024/02/21 09:39:45    INFO                ANSYSLI_IP_OVERRIDE option is off.
      2024/02/21 09:39:45    INFO                Ready to accept connections.
      2024/02/21 09:39:46    HANDSHAKE_ERROR                                                                                                                                                       
       Could not make an SSL handshake with client 7344:127.0.0.1System error: 10054 “An existing connection was forcibly closed by the remote host.
      ———————————————————————————

      It looks like ansyscl.exe starts a local server on a random port and tries to connect but the connection fails.
      All firewalls are disabled.

    • Martin Kalabo
      Subscriber

      Hello David. Have you fix it? I have been facing the same issue with the student License. Really need help.

      • David Rosemary
        Subscriber

        Thanks for asking. I never got a resolution to this issue. It's also difficult to troubleshoot. When I watch it with proc mon it seems to be something internal to the application where one application initiates a SSL/TLS call to the other application (probably to pass data) and that comminication handshake fails. I do have some machines where it works fine and I have tried comparing the working vs. non working and can't identifiy a difference. I've tried to compare certificates and TLS protocols on both systems and I'm not finding anything that stands out. If ANSYS could identify what certificates, TLS, or other permissions the appliciation is referencing then that might help but I haven't gotten a response. I noticed this issue on other posts on the forums but they also don't provide a resolution.

Viewing 3 reply threads
  • The topic ‘CFX Unexpected error: SocketError launching results from Workbench into CFD-Post’ is closed to new replies.