thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.06k stars 432 forks source link

Error connecting to OpenPLC runtime #162

Closed lasyka closed 2 years ago

lasyka commented 2 years ago

Hi There, I have problem to run the offical HelloWorld PLC demo.

  1. Install openPlc on linux,.

  2. Download he HelloWorld demo program and use editor compile this demo to st file.

  3. upload the demo st file on the openplc's webui page,and lauch it compile successful!

  4. Hardware seletced the Python on Linux(PSM)

  5. click the Start PLC button, but got these erro info

    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Error connecting to OpenPLC runtime
    Terminating interactive server connections
    127.0.0.1 - - [25/Nov/2021 15:25:12] "GET /runtime_logs HTTP/1.0" 200 -
    QX0.0 is true
    Interactive Server: Client accepted! Creating thread for the new client ID: 9...
    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Terminating interactive server connections
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    Interactive Server: Client accepted! Creating thread for the new client ID: 9...
    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Terminating interactive server connections
    Error connecting to OpenPLC runtime
    127.0.0.1 - - [25/Nov/2021 15:25:14] "GET /runtime_logs HTTP/1.0" 200 -
    QX0.0 is true
    Interactive Server: Client accepted! Creating thread for the new client ID: 9...
    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Terminating interactive server connections
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    QX0.0 is true
    Interactive Server: Client accepted! Creating thread for the new client ID: 9...
    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Error connecting to OpenPLC runtime
    Terminating interactive server connections
    127.0.0.1 - - [25/Nov/2021 15:25:15] "GET /runtime_logs HTTP/1.0" 200 -
    QX0.0 is true
    Interactive Server: Client accepted! Creating thread for the new client ID: 9...
    Interactive Server: waiting for new client...
    Interactive Server: Thread created for client ID: 9
    Interactive Server: client ID: 9 has closed the connection
    Terminating interactive server connections

these same log info are loop printed,again and again,

How can i to resolve it?

Where is the client? I just start the OpenPLC runtime, no any client yet!

Why it says :Error connecting to OpenPLC runtime after Interactive Server: Thread created for client ID: 9

thiagoralves commented 2 years ago

There isn’t any real error in your logs. Those messages are related to the communication between the runtime and the web interface, and the occasional errors you see are probably related to some browser refreshes that were not completed. You can ignore them.