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

Error: Too many open files #101

Open
lgommans opened this issue Apr 20, 2018 · 1 comment
Open

Error: Too many open files #101

lgommans opened this issue Apr 20, 2018 · 1 comment

Comments

@lgommans
Copy link

Traceback (most recent call last):
11: from telegram-history-dump.rb:370:in `<main>'
10: from telegram-history-dump.rb:370:in `each_with_index'
 9: from telegram-history-dump.rb:370:in `each'
 8: from telegram-history-dump.rb:373:in `block in <main>'
 7: from telegram-history-dump.rb:181:in `dump_dialog'
 6: from /some/path/telegram-history-dump/lib/json_lines_dumper.rb:31:in `dump_chunk'
 5: from /some/path/telegram-history-dump/lib/json_lines_dumper.rb:31:in `new'
 4: from /usr/lib/ruby/2.5.0/tempfile.rb:131:in `initialize'
 3: from /usr/lib/ruby/2.5.0/tmpdir.rb:128:in `create'
 2: from /usr/lib/ruby/2.5.0/tempfile.rb:133:in `block in initialize'
 1: from /usr/lib/ruby/2.5.0/tempfile.rb:133:in `open'
/usr/lib/ruby/2.5.0/tempfile.rb:133:in `initialize': Too many open files @ rb_sysopen - /tmp/telegram-history-dump[chunk1016]20180420-16570-lqp448 (Errno::EMFILE)

I assume closing file handles will resolve this, but I don't have the time to test this properly (particularly because backing up takes a while and I don't want to keep downloading my chats over and over, idk how impulsive tg is about banning these days...). For the moment, it should work to run this before running the backup:

$ ulimit -Sn 4096
@Arunm0111986
Copy link

Pull request

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