tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Can't open new binlog for regenerate #2666

Closed xucoanthony closed 10 months ago

xucoanthony commented 12 months ago

Hello,

What's this mean bellow, when I am download file. It cause {"@type": "error", "code": 400, "message": "File download has failed or was canceled", "@client_id": 1}

[ 1][t21][1699297475.024133920][Binlog.cpp:644][#6][!Binlog /Volumes///client/tduser/td.binlog] Can't open new binlog for regenerate: [PosixError : Too many open files : 24 : File "/Volumes///client/tduser/td.binlog.new" can't be opened/created for writing with truncation]

xucoanthony commented 12 months ago

Ok. After conducting tests, I've found that it may be a performance bottleneck on the computer causing this issue. If anyone has any new explanations, please feel free to let me know.

levlam commented 11 months ago

You exceeded OS limit for the number of files. Ensure that you close all previously opened file descriptors. You can find more details about the error in https://stackoverflow.com/questions/880557/socket-accept-too-many-open-files.