WNTR icon indicating copy to clipboard operation
WNTR copied to clipboard

About Running Programs on the Server

Open Hanbin-Wang opened this issue 1 year ago • 4 comments

Hi, I have deployed WNTR project on remote server, so that the program can obtain real-time data from remote meter. However, the program can successfully run on local computer, and failed on server. Even I exported wn object and generated .inp file and open it on EPANET 2.2 on local computer. It runs successfully. But the run_sim(wn) still report the error (the wn object is the same). I solve this problem by adding the parameter version == 2.0. But I think it is not reasonable even it runs successfully now. In addition, I used schedule module to call simulation module in loop. In this way, the parameters acquired from remote meter vary through time. However, the program will crash after running a period of time without catching any error (I write the try_catch to capture errors). After error happens, the program will generate 2 files including core.pid and enxxxxxx. I guess that the error is related to the process of automatically generating three files(.rpt .inp .bin). I am still struggling with this issue. Could you give me some suggestions or possible resolvent?

Hanbin-Wang avatar Jul 07 '23 09:07 Hanbin-Wang

image generated files after error

Hanbin-Wang avatar Jul 07 '23 09:07 Hanbin-Wang

I checked the version of wntr both server and localhost, they are both 1.0.0. But I still guess it's the version problem. In addition,image this is the log content of the interrupt issues, Can this indicate that there is a vulnerability in wntr when reading and writing

Hanbin-Wang avatar Jul 14 '23 00:07 Hanbin-Wang

I’m still confused that the same .inp file successfully ran on EPANET and localhost but failed on server. The error message is as below. image However, the official example Net3.inp runs smoothly both on localhost and server.

Hanbin-Wang avatar Aug 08 '23 06:08 Hanbin-Wang

Hi @Hanbin-Wang, Can you provide more information about your server setup:

  • The OS and CPU of the server
  • version of numpy on the server (I am wondering if this issue is related to #342)

kbonney avatar Jan 29 '24 17:01 kbonney