• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

Solved too many open files

J4M3S_CZ

Member
Hello,

I have a problem, after some time my bot will start to write "too many open files" and then it will fall. How can I avoid it?

Thank You
2018/07/02 10:19:19 969d2439 2877e108 DEBUG Prespawn.
2018/07/02 10:19:19 969d2439 2877e108 DEBUG > Data Fail
2018/07/02 10:19:19 969d2439 2877e108 WARN Could not prepare listeners: file file+net server: fcntl: too many open files
2018/07/02 10:20:00 969d2439 5e895bf3 DEBUG Prespawn.
2018/07/02 10:20:00 969d2439 5e895bf3 DEBUG > Data Fail
2018/07/02 10:20:00 969d2439 5e895bf3 WARN Could not prepare listeners: file file+net server: fcntl: too many open files
2018/07/02 10:20:19 969d2439 2877e108 DEBUG Prespawn.
2018/07/02 10:20:19 969d2439 2877e108 WARN Could not prepare listeners: too many open files
2018/07/02 10:21:00 969d2439 5e895bf3 DEBUG Prespawn.
2018/07/02 10:21:00 969d2439 5e895bf3 WARN Could not prepare listeners: too many open files
2018/07/02 10:21:19 969d2439 2877e108 DEBUG Prespawn.
2018/07/02 10:21:19 969d2439 2877e108 WARN Could not prepare listeners: too many open files
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 5ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 10ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 20ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 40ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 80ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 160ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 320ms
echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 640ms
53 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
54 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
55 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
56 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
57 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
58 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
59 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
00 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
00 2018/07/02 1000 969d2439 5e895bf3 DEBUG Prespawn.
00 2018/07/02 1000 969d2439 5e895bf3 DEBUG > Data Fail
00 2018/07/02 1000 969d2439 5e895bf3 WARN Could not prepare listeners: too many open files
01 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
02 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
03 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
04 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
05 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
06 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
07 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
08 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
09 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
10 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
11 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
12 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
13 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
14 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
15 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
16 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
17 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
18 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
19 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
19 2018/07/02 1019 969d2439 2877e108 DEBUG Prespawn.
19 2018/07/02 1019 969d2439 2877e108 DEBUG > Data Fail
19 2018/07/02 1019 969d2439 2877e108 WARN Could not prepare listeners: too many open files
20 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
21 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Removing closed channel f16a2b86-fb5f-4993-a80f-a0f9596e1b17 () ID 1a250fb9-0e08-44c0-9491-f6c1d2bd12d9
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Deleting channel f16a2b86-fb5f-4993-a80f-a0f9596e1b17 () ID 1a250fb9-0e08-44c0-9491-f6c1d2bd12d9 (cc 1)
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Channels now zero
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 5ms
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 10ms
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 20ms
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 40ms
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 80ms
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://a84a451f-da9c-47f6-83d5-872d1932954c
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 160ms
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://ad43dcf1-6e17-4196-8c4c-ba4a55987982
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://ae6e742f-8085-405f-8784-1a13fa70abf5
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 320ms
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://c9a520f3-57a6-4948-bad8-a6a56361d0d1
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://1ccb17d2-63ec-4d7c-8981-d38a88d15cf9
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://e5d115cb-d81a-4095-9c68-a59c6682bb37
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 640ms
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://5bb42206-a54d-426d-a4b2-c870f9659530
22 2018/07/02 1022 969d2439 5e895bf3 DEBUG Done playing
22 2018/07/02 1022 969d2439 5e895bf3 INFO Playing next from playlist: track://2c53c8f9-352d-45a3-a6c0-b1f8d8235482
23 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
24 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
25 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
26 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
27 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
28 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
29 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
30 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
31 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
32 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
33 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
34 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
35 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
36 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
37 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
38 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
39 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
40 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
41 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
42 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
43 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
44 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
45 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
46 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
47 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
48 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
49 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
50 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
51 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
52 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
53 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
54 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
55 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
56 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
57 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
58 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
59 echo: http: Accept error: accept tcp [::]:8089: accept4: too many open files; retrying in 1s
 

irgendwr

semi-inactive™
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
I use latest version of sinusbot
Please consider actually providing the version instead writing "latest" because there are multiple versions available, some people just think they are running the latest version but they are not and in a few weeks latest can be something else.

Can you send us the output of ulimit -n and netstat -ton | grep CLOSE_WAIT ? (either via pastebin or in a code tag)

This might be a bug of the bot. A temporary workaround would be to reboot the server or increase the limit.
 

Similar threads

Top