Giter Club home page Giter Club logo

Comments (10)

thomasleveil avatar thomasleveil commented on July 22, 2024

Thank you for the report. Could you tell us what exact version of B3 you are running ?

Also would you be able to provide us the name of the left opened files by following the instructions at http://stackoverflow.com/a/562005/107049 ?

from big-brother-bot.

syserr0r avatar syserr0r commented on July 22, 2024

Running version: 32ba339

Regarding the file left opened, I can't provide that right now, but will try to (if I remember) when it crashes in a few days time.

Given the 'Too many open files' is always immediately after the 'StatusPlugin' runs that would be where I assume the problem is.

The bot runs in its own shell as its own user, the only process that runs is the bot.
The bot is started with screen -dmS b3-rush /home/b3/start_rush.sh

/home/b3/start_rush.sh contains:

#!/bin/bash
while true; do python /home/b3/b3/b3_run.py -r -c /home/b3/rush.xml; sleep 2; done

The while loop is necessary as the bot does not restart (it simply exists) when !restart is issued without it.

I can provide the full log if you wish.

from big-brother-bot.

thomasleveil avatar thomasleveil commented on July 22, 2024

Here is my understanding of the issue so far:

On one side you have:

  • B3 looses the connection to the BF4 server (whatever the reason)
  • B3 tries to reconnect many times but get Connection Refused error
  • Every time B3 tries to reconnect it let a socket unclosed (the file leak)

On the other side, the status plugin will regularly write a file to the disk. At some point the system limit for open file handles is reached and the status plugin raises an error.

My guess is that the error we see in the status plugin when it tries to write the file is the symptom and the cause is in the BF4 connection.

from big-brother-bot.

ozon avatar ozon commented on July 22, 2024

With ulimit can you check and set some limits for a process.
In your case check with ulimit -n the max allowed file handles. 1024 is default on Linux.
Temporarily, you can increase the value. Example unlimit -n 4096.

from big-brother-bot.

syserr0r avatar syserr0r commented on July 22, 2024

I will keep an eye on it to see when it next disconnects, although my assumption was the status plugin was doing something like the following:

open file handle
    query server for status
    parse status
    write status to file (and db)
close status

and when it was failing on query server for status it was leaving the file handle open.

As I said though, I will keep an eye on it and try and lsof next time it disconnects.

If the issue is definitely caused by the connection to the BF4 server, when will it be fixed? Reconnect would be a handy feature to have!

from big-brother-bot.

syserr0r avatar syserr0r commented on July 22, 2024

Right, I gave up waiting for it to reproduce and have attempted to force the problem (by stopping the server).

BF4 Server Running for ~2mins

[email protected]:~$ lsof -a -p 12217
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF    NODE NAME
python  12217   b3  cwd    DIR                8,1     4096  864969 /home/b3
python  12217   b3  rtd    DIR                8,1     4096       2 /
python  12217   b3  txt    REG                8,1  2888976  930247 /usr/bin/python2.7
python  12217   b3  mem    REG                8,1   991600  979235 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
python  12217   b3  mem    REG                8,1    31752  457095 /lib/x86_64-linux-gnu/librt-2.17.so
python  12217   b3  mem    REG                8,1  3416480  980193 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
python  12217   b3  mem    REG                8,1    58784  979299 /usr/lib/python2.7/dist-packages/_mysql.so
python  12217   b3  mem    REG                8,1   101064   10407 /usr/lib/python2.7/lib-dynload/datetime.so
python  12217   b3  mem    REG                8,1    15296   10430 /usr/lib/python2.7/lib-dynload/dbm.so
python  12217   b3  mem    REG                8,1  1585496  979731 /usr/lib/x86_64-linux-gnu/libdb-5.1.so
python  12217   b3  mem    REG                8,1   196944   10421 /usr/lib/python2.7/lib-dynload/_bsddb.so
python  12217   b3  mem    REG                8,1    84856  457099 /lib/x86_64-linux-gnu/libresolv-2.17.so
python  12217   b3  mem    REG                8,1    22952  457119 /lib/x86_64-linux-gnu/libnss_dns-2.17.so
python  12217   b3  mem    REG                8,1     9800  212199 /lib/libnss_mdns4_minimal.so.2
python  12217   b3  mem    REG                8,1    52160  457104 /lib/x86_64-linux-gnu/libnss_files-2.17.so
python  12217   b3  mem    REG                8,1    69208   10147 /usr/lib/python2.7/lib-dynload/pyexpat.so
python  12217   b3  mem    REG                8,1   169992  457093 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
python  12217   b3  mem    REG                8,1    58376   10292 /usr/lib/python2.7/lib-dynload/_elementtree.so
python  12217   b3  mem    REG                8,1    50016   10443 /usr/lib/python2.7/lib-dynload/_json.so
python  12217   b3  mem    REG                8,1    77720   10150 /usr/lib/python2.7/lib-dynload/parser.so
python  12217   b3  mem    REG                8,1   165400   10194 /usr/lib/python2.7/lib-dynload/_io.so
python  12217   b3  mem    REG                8,1    38488    9511 /usr/lib/python2.7/lib-dynload/_ssl.so
python  12217   b3  mem    REG                8,1  1966560  979771 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
python  12217   b3  mem    REG                8,1   387800  979921 /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
python  12217   b3  mem    REG                8,1    20696    9512 /usr/lib/python2.7/lib-dynload/_hashlib.so
python  12217   b3  mem    REG                8,1  1607648  946662 /usr/lib/locale/locale-archive
python  12217   b3  mem    REG                8,1    89056  221872 /lib/x86_64-linux-gnu/libgcc_s.so.1
python  12217   b3  mem    REG                8,1  1742520  457107 /lib/x86_64-linux-gnu/libc-2.17.so
python  12217   b3  mem    REG                8,1  1038752  457117 /lib/x86_64-linux-gnu/libm-2.17.so
python  12217   b3  mem    REG                8,1    92752  220367 /lib/x86_64-linux-gnu/libz.so.1.2.7
python  12217   b3  mem    REG                8,1    10680  457068 /lib/x86_64-linux-gnu/libutil-2.17.so
python  12217   b3  mem    REG                8,1    14664  457106 /lib/x86_64-linux-gnu/libdl-2.17.so
python  12217   b3  mem    REG                8,1   131593  457100 /lib/x86_64-linux-gnu/libpthread-2.17.so
python  12217   b3  mem    REG                8,1   145160  457098 /lib/x86_64-linux-gnu/ld-2.17.so
python  12217   b3    0u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    1u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    2u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    3w   REG                8,1    52097  865982 /home/b3/dom/logs/dom.log
python  12217   b3    4u  unix 0xffff88007a240bc0      0t0 8401242 socket
python  12217   b3    6u  IPv4            8402460      0t0     TCP server65230.cobaltnetworks.co.uk:57124->185.16.86.13:47400 (ESTABLISHED)

BF4 Server Stopped for ~2mins

[email protected]:~$ lsof -a -p 12217
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF    NODE NAME
python  12217   b3  cwd    DIR                8,1     4096  864969 /home/b3
python  12217   b3  rtd    DIR                8,1     4096       2 /
python  12217   b3  txt    REG                8,1  2888976  930247 /usr/bin/python2.7
python  12217   b3  mem    REG                8,1   991600  979235 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
python  12217   b3  mem    REG                8,1    31752  457095 /lib/x86_64-linux-gnu/librt-2.17.so
python  12217   b3  mem    REG                8,1  3416480  980193 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
python  12217   b3  mem    REG                8,1    58784  979299 /usr/lib/python2.7/dist-packages/_mysql.so
python  12217   b3  mem    REG                8,1   101064   10407 /usr/lib/python2.7/lib-dynload/datetime.so
python  12217   b3  mem    REG                8,1    15296   10430 /usr/lib/python2.7/lib-dynload/dbm.so
python  12217   b3  mem    REG                8,1  1585496  979731 /usr/lib/x86_64-linux-gnu/libdb-5.1.so
python  12217   b3  mem    REG                8,1   196944   10421 /usr/lib/python2.7/lib-dynload/_bsddb.so
python  12217   b3  mem    REG                8,1    84856  457099 /lib/x86_64-linux-gnu/libresolv-2.17.so
python  12217   b3  mem    REG                8,1    22952  457119 /lib/x86_64-linux-gnu/libnss_dns-2.17.so
python  12217   b3  mem    REG                8,1     9800  212199 /lib/libnss_mdns4_minimal.so.2
python  12217   b3  mem    REG                8,1    52160  457104 /lib/x86_64-linux-gnu/libnss_files-2.17.so
python  12217   b3  mem    REG                8,1    69208   10147 /usr/lib/python2.7/lib-dynload/pyexpat.so
python  12217   b3  mem    REG                8,1   169992  457093 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
python  12217   b3  mem    REG                8,1    58376   10292 /usr/lib/python2.7/lib-dynload/_elementtree.so
python  12217   b3  mem    REG                8,1    50016   10443 /usr/lib/python2.7/lib-dynload/_json.so
python  12217   b3  mem    REG                8,1    77720   10150 /usr/lib/python2.7/lib-dynload/parser.so
python  12217   b3  mem    REG                8,1   165400   10194 /usr/lib/python2.7/lib-dynload/_io.so
python  12217   b3  mem    REG                8,1    38488    9511 /usr/lib/python2.7/lib-dynload/_ssl.so
python  12217   b3  mem    REG                8,1  1966560  979771 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
python  12217   b3  mem    REG                8,1   387800  979921 /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
python  12217   b3  mem    REG                8,1    20696    9512 /usr/lib/python2.7/lib-dynload/_hashlib.so
python  12217   b3  mem    REG                8,1  1607648  946662 /usr/lib/locale/locale-archive
python  12217   b3  mem    REG                8,1    89056  221872 /lib/x86_64-linux-gnu/libgcc_s.so.1
python  12217   b3  mem    REG                8,1  1742520  457107 /lib/x86_64-linux-gnu/libc-2.17.so
python  12217   b3  mem    REG                8,1  1038752  457117 /lib/x86_64-linux-gnu/libm-2.17.so
python  12217   b3  mem    REG                8,1    92752  220367 /lib/x86_64-linux-gnu/libz.so.1.2.7
python  12217   b3  mem    REG                8,1    10680  457068 /lib/x86_64-linux-gnu/libutil-2.17.so
python  12217   b3  mem    REG                8,1    14664  457106 /lib/x86_64-linux-gnu/libdl-2.17.so
python  12217   b3  mem    REG                8,1   131593  457100 /lib/x86_64-linux-gnu/libpthread-2.17.so
python  12217   b3  mem    REG                8,1   145160  457098 /lib/x86_64-linux-gnu/ld-2.17.so
python  12217   b3    0u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    1u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    2u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    3w   REG                8,1    54191  865982 /home/b3/dom/logs/dom.log
python  12217   b3    4u  unix 0xffff88007a240bc0      0t0 8401242 socket
python  12217   b3    5u  IPv4            8402507      0t0     TCP server65230.cobaltnetworks.co.uk:57126->185.16.86.13:47400 (SYN_SENT)
python  12217   b3    6u  IPv4            8402520      0t0     TCP server65230.cobaltnetworks.co.uk:57128->185.16.86.13:47400 (SYN_SENT)
python  12217   b3    7u  IPv4            8402524      0t0     TCP server65230.cobaltnetworks.co.uk:57130->185.16.86.13:47400 (SYN_SENT)
python  12217   b3    8u  IPv4            8402526      0t0     TCP server65230.cobaltnetworks.co.uk:57132->185.16.86.13:47400 (SYN_SENT)
python  12217   b3    9u  IPv4            8401569      0t0     TCP server65230.cobaltnetworks.co.uk:57134->185.16.86.13:47400 (SYN_SENT)
python  12217   b3   10u  IPv4            8401588      0t0     TCP server65230.cobaltnetworks.co.uk:57136->185.16.86.13:47400 (SYN_SENT)
python  12217   b3   11u  IPv4            8401591      0t0     TCP server65230.cobaltnetworks.co.uk:57138->185.16.86.13:47400 (SYN_SENT)
python  12217   b3   12u  IPv4            8401626      0t0     TCP server65230.cobaltnetworks.co.uk:57140->185.16.86.13:47400 (SYN_SENT)

BF4 Server Started again (b3 log)

131230 14:20:00 VERBOSE 'StatusPlugin: Building XML status'
131230 14:20:00 DEBUG   "getCommand: ('admin.say', 'There are no admins online', 'all')"
131230 14:20:00 VERBOSE u"RCON :\t ('admin.say', 'There are no admins online', 'all')"
131230 14:20:00 ERROR   'not connected'
131230 14:20:00 DEBUG   'StatusPlugin: Writing XML status to /home/b3/status_dom.xml'
131230 14:20:00 DEBUG   'XlrstatsPlugin: Calculating kill_bonus'
131230 14:20:00 ERROR   'IOError timed out'
131230 14:20:05 INFO    'Connecting to frostbite2 server ...'
131230 14:20:07 ERROR   'IOError timed out'
131230 14:20:12 INFO    'Connecting to frostbite2 server ...'
131230 14:20:14 ERROR   'IOError timed out'
131230 14:20:19 INFO    'Connecting to frostbite2 server ...'
131230 14:20:21 ERROR   'IOError timed out'
131230 14:20:26 INFO    'Connecting to frostbite2 server ...'
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d407b710> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4087878> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x1c79878> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4087b90> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4087908> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d408b950> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4087fc8> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4099680> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d408b8c0> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:26 INFO    'STDOUT "error: uncaptured python exception, closing channel <b3.parsers.frostbite2.protocol.FrostbiteDispatcher 185.16.86.13:47400 at 0x7f38d4099ef0> (<class \'socket.error\'>:[Errno 110] Connection timed out [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|446] [/usr/lib/python2.7/asyncore.py|handle_connect_event|454])"'
131230 14:20:26 INFO    "STDOUT '\\n'"
131230 14:20:27 VERBOSE u"RCON :\t 'version'"
131230 14:20:27 VERBOSE u"RCON response:\t ['BF4', '99392']"
131230 14:20:27 INFO    "server version : ['BF4', '99392']"

and (lsof)

[email protected]:~$ lsof -a -p 12217
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF    NODE NAME
python  12217   b3  cwd    DIR                8,1     4096  864969 /home/b3
python  12217   b3  rtd    DIR                8,1     4096       2 /
python  12217   b3  txt    REG                8,1  2888976  930247 /usr/bin/python2.7
python  12217   b3  mem    REG                8,1   991600  979235 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
python  12217   b3  mem    REG                8,1    31752  457095 /lib/x86_64-linux-gnu/librt-2.17.so
python  12217   b3  mem    REG                8,1  3416480  980193 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
python  12217   b3  mem    REG                8,1    58784  979299 /usr/lib/python2.7/dist-packages/_mysql.so
python  12217   b3  mem    REG                8,1   101064   10407 /usr/lib/python2.7/lib-dynload/datetime.so
python  12217   b3  mem    REG                8,1    15296   10430 /usr/lib/python2.7/lib-dynload/dbm.so
python  12217   b3  mem    REG                8,1  1585496  979731 /usr/lib/x86_64-linux-gnu/libdb-5.1.so
python  12217   b3  mem    REG                8,1   196944   10421 /usr/lib/python2.7/lib-dynload/_bsddb.so
python  12217   b3  mem    REG                8,1    84856  457099 /lib/x86_64-linux-gnu/libresolv-2.17.so
python  12217   b3  mem    REG                8,1    22952  457119 /lib/x86_64-linux-gnu/libnss_dns-2.17.so
python  12217   b3  mem    REG                8,1     9800  212199 /lib/libnss_mdns4_minimal.so.2
python  12217   b3  mem    REG                8,1    52160  457104 /lib/x86_64-linux-gnu/libnss_files-2.17.so
python  12217   b3  mem    REG                8,1    69208   10147 /usr/lib/python2.7/lib-dynload/pyexpat.so
python  12217   b3  mem    REG                8,1   169992  457093 /lib/x86_64-linux-gnu/libexpat.so.1.6.0
python  12217   b3  mem    REG                8,1    58376   10292 /usr/lib/python2.7/lib-dynload/_elementtree.so
python  12217   b3  mem    REG                8,1    50016   10443 /usr/lib/python2.7/lib-dynload/_json.so
python  12217   b3  mem    REG                8,1    77720   10150 /usr/lib/python2.7/lib-dynload/parser.so
python  12217   b3  mem    REG                8,1   165400   10194 /usr/lib/python2.7/lib-dynload/_io.so
python  12217   b3  mem    REG                8,1    38488    9511 /usr/lib/python2.7/lib-dynload/_ssl.so
python  12217   b3  mem    REG                8,1  1966560  979771 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
python  12217   b3  mem    REG                8,1   387800  979921 /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
python  12217   b3  mem    REG                8,1    20696    9512 /usr/lib/python2.7/lib-dynload/_hashlib.so
python  12217   b3  mem    REG                8,1  1607648  946662 /usr/lib/locale/locale-archive
python  12217   b3  mem    REG                8,1    89056  221872 /lib/x86_64-linux-gnu/libgcc_s.so.1
python  12217   b3  mem    REG                8,1  1742520  457107 /lib/x86_64-linux-gnu/libc-2.17.so
python  12217   b3  mem    REG                8,1  1038752  457117 /lib/x86_64-linux-gnu/libm-2.17.so
python  12217   b3  mem    REG                8,1    92752  220367 /lib/x86_64-linux-gnu/libz.so.1.2.7
python  12217   b3  mem    REG                8,1    10680  457068 /lib/x86_64-linux-gnu/libutil-2.17.so
python  12217   b3  mem    REG                8,1    14664  457106 /lib/x86_64-linux-gnu/libdl-2.17.so
python  12217   b3  mem    REG                8,1   131593  457100 /lib/x86_64-linux-gnu/libpthread-2.17.so
python  12217   b3  mem    REG                8,1   145160  457098 /lib/x86_64-linux-gnu/ld-2.17.so
python  12217   b3    0u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    1u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    2u   CHR              136,1      0t0       4 /dev/pts/1
python  12217   b3    3w   REG                8,1    77221  865982 /home/b3/dom/logs/dom.log
python  12217   b3    4u  unix 0xffff88007a240bc0      0t0 8401242 socket
python  12217   b3   19u  IPv4            8401698      0t0     TCP server65230.cobaltnetworks.co.uk:57154->185.16.86.13:47400 (ESTABLISHED)
python  12217   b3   20u  IPv4            8401744      0t0     TCP server65230.cobaltnetworks.co.uk:57156->185.16.86.13:47400 (ESTABLISHED)
python  12217   b3   21u  IPv4            8401746      0t0     TCP server65230.cobaltnetworks.co.uk:57158->185.16.86.13:47400 (ESTABLISHED)
python  12217   b3   22u  IPv4            8401748      0t0     TCP server65230.cobaltnetworks.co.uk:57160->185.16.86.13:47400 (ESTABLISHED)
python  12217   b3   23u  IPv4            8401754      0t0     TCP server65230.cobaltnetworks.co.uk:57162->185.16.86.13:47400 (ESTABLISHED)

It would seem your guess was right, the it is leaving sockets open (not fd's from the status plugin).

It is interesting that even after ~10mins of the BF4 server back up again it is still showing the same lsof -a -p output of 5 established sockets instead of the original 1 socket.

I haven't been able to produce the original scenario where it would not reconnect. I assume if I left the BF4 server down for longer that would happen.

from big-brother-bot.

syserr0r avatar syserr0r commented on July 22, 2024

Here is the current sockstat info for reference (this is after reconnecting):

[email protected]:~$ cat /proc/12217/net/sockstat
sockets: used 240
TCP: inuse 29 orphan 0 tw 0 alloc 32 mem 2
UDP: inuse 6 mem 6
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0

from big-brother-bot.

thomasleveil avatar thomasleveil commented on July 22, 2024

Thank you for those valuable data. I will see what I can do to fix the issue

from big-brother-bot.

thomasleveil avatar thomasleveil commented on July 22, 2024

Hopefully 42339d7 fixes this.

Would you mind giving a try to the latest code from the release-1.10 branch or from the daily build 143 ?

from big-brother-bot.

syserr0r avatar syserr0r commented on July 22, 2024

Yes, it appears to fix the issue.

Thankyou 👍

from big-brother-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.