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

[RCON] Socket closed with an error. #7

Open
Bizzonium opened this issue Aug 10, 2022 · 11 comments
Open

[RCON] Socket closed with an error. #7

Bizzonium opened this issue Aug 10, 2022 · 11 comments

Comments

@Bizzonium
Copy link

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
Copy link
Owner

milutinke commented Aug 11, 2022

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
Copy link
Owner

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
Copy link
Contributor

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
Copy link
Owner

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
Copy link

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
Copy link
Contributor

anklav24 commented Jan 9, 2024

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

@Maximator98
Copy link

@milutinke

@milutinke
Copy link
Owner

milutinke commented Jan 11, 2024

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
Copy link
Contributor

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
Copy link

How to update?

@milutinke
Copy link
Owner

milutinke commented Jan 14, 2024

@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.

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

4 participants