Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

WebVisu crash

2022-02-23
2022-02-24
  • jeromebunel - 2022-02-23

    Hello.
    I have a Linux SL V3.5 SP16 application with webvizu and about ten clients.
    Sometimes the web server crashes.
    And I don't understand why.
    I found these errors in the logs :

    TlsCreateContext: Failed to read certificate './PKI/cert/server.cer' in namespace: 'WebServer'.
    TlsCreateContext: Creating the TLS context for namespace 'WebServer' failed.

    What do these messages mean?
    How to prevent the webserver from crashing or how to restart it automatically?

    Attached is the log export file.
    The event occurred at "23-Feb-22 4:27:20 PM

     
  • i-campbell

    i-campbell - 2022-02-24

    Hi Jerome,

    Sometimes the web server crashes.
    And I don't understand why.

    https://www.codesys.com/security/security-reports.html
    There's a vulnerability reported 2021-09, you should upgrade to at least SP16 P5 or SP17 P1 runtime

    What do these messages mean?

    It means you do not have a certificate there.
    Open either CODESYSControl.cfg or CODESYSControl_user.cfg and delete or comment out the lines:

    WebServer.Cert=server.cer
    WebServer.PrivateKey=server.key
    
     

Log in to post a comment.