Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Running Programs on the Server #359

Open
Hanbin-Wang opened this issue Jul 7, 2023 · 4 comments
Open

About Running Programs on the Server #359

Hanbin-Wang opened this issue Jul 7, 2023 · 4 comments
Assignees
Labels

Comments

@Hanbin-Wang
Copy link

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
Copy link
Author

image
generated files after error

@Hanbin-Wang
Copy link
Author

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
Copy link
Author

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.

@kbonney
Copy link
Collaborator

kbonney commented Jan 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants