milutinke / sqcp

Squad Control Panel (SQCP) is a simple Open-Source solution for administrating your Squad game server written in Node JS (Express) and Vue JS (Vuetify Framework), utilizing the RCON protocol and MySQL database.
MIT License
35 stars 17 forks source link

[RCON] Socket closed with an error. #7

Open Bizzonium opened 2 years ago

Bizzonium commented 2 years ago

sqcp logs

7|sqcp     | 10-08-2022 22:29:09 +03:00: [Express][1] Get a new request for Server population
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Connecting to: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Connected to: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Authentication succeeded.
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Disconnecting from: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Socket closed with an error.
7|sqcp     | 10-08-2022 22:29:09 +03:00: [RCON][1] Disconnected from: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:24 +03:00: [Express][1] Get a new request for Server population
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Connecting to: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Connected to: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Authentication succeeded.
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Disconnecting from: 127.0.0.1:21114
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Socket closed with an error.
7|sqcp     | 10-08-2022 22:29:24 +03:00: [RCON][1] Disconnected from: 127.0.0.1:21114

Squad logs


Aug 10 22:27:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,NUMPUBCONN:99 overflows Steam SetGameTags call
Aug 10 22:27:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,NUMPRIVCONN:1 overflows Steam SetGameTags call
Aug 10 22:27:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,MatchTimeout_f:120.000000 overflows Steam SetGameTags call
Aug 10 22:27:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,SEARCHKEYWORDS_s:Custom overflows Steam SetGameTags call
Aug 10 22:27:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoadedCount_i:1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,AllModsWhitelisted_b:false overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoaded_s:DNS+kAAAAAA= overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoadedHash1_s:8AKJiCJhPHjgvv4d9fpbUw== overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,PlayerReserveCount_i:1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,PublicQueueLimit_i:-1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,PublicQueue_i:0 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.44:766][808]LogOnlineSession: Warning: STEAM: Server setting ,ReservedQueue_i:0 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.54:257][281]LogRCONServer: 3846893:CloseConnection(): Closing socket for 127.0.0.1:41364
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.27.54:257][281]LogRCONServer: 3846893:Run(): Client 127.0.0.1:41364 has closed its connection...
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.09:359][ 34]LogRCONServer: 3846912:CloseConnection(): Closing socket for 127.0.0.1:41478
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.09:359][ 34]LogRCONServer: 3846912:Run(): Client 127.0.0.1:41478 has closed its connection...
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Empty session setting CurrentModLoadedHash2  : OnlineService of type String
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Empty session setting SessionPassword  : OnlineServiceAndPing of type String
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,SESSIONFLAGS:171 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,NUMPUBCONN:99 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,NUMPRIVCONN:1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,MatchTimeout_f:120.000000 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,SEARCHKEYWORDS_s:Custom overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoadedCount_i:1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,AllModsWhitelisted_b:false overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoaded_s:DNS+kAAAAAA= overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,CurrentModLoadedHash1_s:8AKJiCJhPHjgvv4d9fpbUw== overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,PlayerReserveCount_i:1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,PublicQueueLimit_i:-1 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,PublicQueue_i:0 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.14:773][304]LogOnlineSession: Warning: STEAM: Server setting ,ReservedQueue_i:0 overflows Steam SetGameTags call
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.24:467][787]LogRCONServer: 3846962:CloseConnection(): Closing socket for 127.0.0.1:41586
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.24:467][787]LogRCONServer: 3846962:Run(): Client 127.0.0.1:41586 has closed its connection...
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.39:570][540]LogRCONServer: 3846985:CloseConnection(): Closing socket for 127.0.0.1:41640
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.39:570][540]LogRCONServer: 3846985:Run(): Client 127.0.0.1:41640 has closed its connection...
Aug 10 22:28:44 ss220-host-2 taskset[407149]: [2022.08.10-19.28.44:764][799]LogOnlineSession: Warning: STEAM: Empty session setting CurrentModLoadedHash2  : OnlineService of type String```
milutinke commented 2 years ago

I think it's an error with the Squad server itself when multiple RCON clients try to connect, try increasing the number of possible connections in the RCON configuration file. What I find weird is that I do not see the error message itself, it should be logged in the sqcp.

milutinke commented 1 year ago

I will take a look at making the RCON part of the application have a persistent connection from the start of the app to the stop. I'll have to also make it automatically reconnect. This might solve the issue.

anklav24 commented 1 year ago

Hi, that would be cool. I faced the issue because sqcp when it generate multiple connections and SquadJS does not connect to server rcon.

milutinke commented 1 year ago

Hi, that would be cool. I faced the issue because sqcp when it generate multiple connections and SquadJS does not connect to server rcon.

I am considering using SquadJS for rcon in SQCP, so you basically add a plugin to SquadJS and then you can link it to SQCP, that would be maybe easier and would allow me to cut down the refactoring a new features development time.

Maximator98 commented 10 months ago

I got the same issue. Are there any updates? Rcon limit is at 50 in my rcon config. The panel gets the squad names, but not the users.

Exacly the same error messsages.

anklav24 commented 10 months ago

I had the same problem.There are no users because squad v7.0 update, you need to fix regex for users.

Maximator98 commented 10 months ago

@milutinke

milutinke commented 10 months ago

I had the same problem.There are no users because squad v7.0 update, you need to fix regex for users.

@anklav24 Sorry for the late reply, I am not at home. Can you post an output of the PlayerList command so I can change the regex. Thanks.

@Maximator98 I'll put the time to finish the C# implementation soon, so this will not be an issue in the new version, currently it's a bug with the Squad Server Rcon implementation, it happens after some time when there has been a lot of connections, my guess is that they don't release some resources and then run out of the available slots. Since Squad JS keeps a single connection open, this should not be an issue.

anklav24 commented 10 months ago

I had the same problem.There are no users because squad v7.0 update, you need to fix regex for users.

@anklav24 Sorry for the late reply, I am not at home. Can you post an output of the PlayerList command so I can change the regex. Thanks.

@Maximator98 I'll put the time to finish the C# implementation soon, so this will not be an issue in the new version, currently it's a bug with the Squad Server Rcon implementation, it happens after some time when there has been a lot of connections, my guess is that they don't release some resources and then run out of the available slots. Since Squad JS keeps a single connection open, this should not be an issue.

I've added pull request, this has been working for me fine for about a month #17

Maximator98 commented 10 months ago

How to update?

milutinke commented 9 months ago

@Maximator98

Stop the SQCP. Download the source code, and then replace backend/Rcon/SquadRcon.js file with the one from the new source code. Start it again.