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

run COAWST with error "too many open files " #343

Open
thankyouforhelp opened this issue Dec 21, 2024 · 5 comments
Open

run COAWST with error "too many open files " #343

thankyouforhelp opened this issue Dec 21, 2024 · 5 comments

Comments

@thankyouforhelp
Copy link

When I use COAWST version v3.7 (ROMS-WRF-SWAN) for simulation, if I simulate for two days, COAWST can run to completion normally and without reporting errors. When I set the simulation time of the three models to one month, at the end of the simulation, ROMS shows “done” and WRF shows “success”, but there is an error “too many open files”, I found that SWAN didn't merge the intermediate files into a single file, it is still the original file. I realized that swan didn't merge the intermediate files into one file, it is still in the original state, has anyone encountered this problem? Thanks for your help!swan.in is set up as follows
error
roms
wrf
swan

@thankyouforhelp
Copy link
Author

The output of the swan model is as follows, the intermediate files were not deleted and no Errfile* file was generated, I used grep -i “error” PRINT* on the generated PRINT* file and no errors were found.
swan_err

@jcwarner-usgs
Copy link
Collaborator

i am not sure why it would work for a shorter time period but not for a longer time period.
make sure roms and wrf also go for 31 days (dec 31 + 21 days of Jan).
i cant go back to ver3.7, so you might want to try v3.8.
-j

@thankyouforhelp
Copy link
Author

Thank for the advice , I will have a try.

@thankyouforhelp
Copy link
Author

I ran three experiments later, one in COAWSTv3.7 for 2 days and 16 days respectively, and all of them ended normally. In addition, I also ran COAWSTv3.8 for a month (32 days) as you said before, and there were still too many files error when running (see the first figure below), and then the swan did not merge the files into one file (see the second figure below). The set swan output mode is as follows (see the third figure below), in addition, roms and wrf have finished running, showing done and success respectively (see the fourth and fifth pictures), looking forward to your reply, thanks!
error3
error4
error1
error2
wrfsuccess

@jcwarner-usgs
Copy link
Collaborator

not sure. type this command
ulimit -a

and see how many open files are allowed. try to set a bigger number
ulimit -n 1000000

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

No branches or pull requests

2 participants