evilmartians / evil-seed

A Gem for creating partial anonymized dumps of your database using your app model relations.
MIT License
447 stars 19 forks source link

Errno::EMFILE: Too many open files @ rb_sysopen #20

Closed bdegomme closed 11 months ago

bdegomme commented 11 months ago

Had this error trying to run EvilSeed.dump('...'): Errno::EMFILE: Too many open files @ rb_sysopen - /tmp/evil_seed_prompts_users_20230929-89080-1h4sbb.sql Resolved it by running ulimit -n 10240 before doing the dump (limit was 1024). This cannot be run inside the script itself, as it won't change the limit of the ruby process itself. Just adding this in case it may help someone. And maybe there's a way to improve the dumping logic to not open so many files?

Thanks a lot for the great gem!