Raised This Month: $12 Target: $400
 3% 

Server are not showing.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
USER555
Member
Join Date: Aug 2020
Location: Thailand
Old 05-17-2021 , 09:58   Server are not showing.
Reply With Quote #1

My server all are public and i don't know why they are not showing on my sourcebans website i have connected them all to mysql. Do you know what is this problem?
Attached Thumbnails
Click image for larger version

Name:	Sourcebans.PNG
Views:	266
Size:	9.4 KB
ID:	189282  

Last edited by USER555; 05-17-2021 at 09:58.
USER555 is offline
jjambo789
Junior Member
Join Date: Dec 2013
Old 05-25-2021 , 05:21   Re: Server are not showing.
Reply With Quote #2

me too
Recently suddenly, server list are not showing.
Windows Server only has this problem.
sombody help me~
" [+] Got an response! Server: "
Server name(hostname) is not showing.


[+] SourceBans "Error Connecting()" Debug starting for server 112.154.xxx.xxx:27015

[+] Trying to establish UDP connection
[+] UDP connection successfull!
[+] Trying to write to the socket
[+] Successfully requested server info. (That doesn't mean anything on an UDP stream.) Reading...
[+] Got an response! Server:

[+] Trying to establish TCP connection
[+] TCP connection successfull!
[+] Trying to write to TCP socket and authenticate via rcon
[+] Successfully sent authentication request. Reading...
[+] Got an response!
[+] Password correct!

Last edited by jjambo789; 05-26-2021 at 10:44.
jjambo789 is offline
Cats869
Junior Member
Join Date: Apr 2020
Old 06-04-2021 , 18:58   Re: Server are not showing.
Reply With Quote #3

Could it be that the web server is blocking connections to those servers, thus, it cannot ping them? I know you can add a server to Sourcebans without necessarily having it hooked up with MySQL since it's just showing you if it can query the server.
Cats869 is offline
dustinandband
Senior Member
Join Date: May 2015
Old 06-23-2021 , 17:47   Re: Server are not showing.
Reply With Quote #4

I'm having the same issue: https://i.imgur.com/v91SXlV.jpg .

Checked everything on the debugging connection guide, also verified:

1) !admin works
2) I can use sourcebans's RCON for executing commands

Not sure what to do at this point.
dustinandband is offline
Oylsister
Senior Member
Join Date: Aug 2019
Location: KhonKaen, Thailand
Old 06-27-2021 , 12:31   Re: Server are not showing.
Reply With Quote #5

Quote:
Originally Posted by USER555 View Post
My server all are public and i don't know why they are not showing on my sourcebans website i have connected them all to mysql. Do you know what is this problem?
try debugging connection first : https://sbpp.dev/docs/debugging_connection/

and then show us a result
__________________

Last edited by Oylsister; 06-27-2021 at 12:31.
Oylsister is offline
dustinandband
Senior Member
Join Date: May 2015
Old 07-01-2021 , 00:48   Re: Server are not showing.
Reply With Quote #6

Traced the issue and it seems like this is what's causing my problem (update from post #4)
https://github.com/sbpp/sourcebans-p...Query.php#L260
PHP Code:
if( $Type !== self::S2A_INFO )
{
    throw new 
InvalidPacketException'GetInfo: Packet header mismatch. (0x' DecHex$Type ) . ')'InvalidPacketException::PACKET_HEADER_MISMATCH );

Had the exception printed into sourcebans to see what was up
Code:
error connecting xPaw\SourceQuery\Exception\InvalidPacketException: GetInfo: Packet header mismatch. (0x41) in /usr/www/survival/public/sourcebans/includes/SourceQuery/SourceQuery.php:260 Stack trace: #0 /usr/www/survival/public/sourcebans/includes/sb-callback.php(1246): xPaw\SourceQuery\SourceQuery->GetInfo() #1 /usr/www/survival/public/sourcebans/includes/xajax.inc.php(1095): ServerHostPlayers('4', 'servers', '', '0', '0', '', '70') #2 /usr/www/survival/public/sourcebans/includes/xajax.inc.php(744): xajax->_callFunction('ServerHostPlaye...', Array) #3 /usr/www/survival/public/sourcebans/index.php(33): xajax->processRequests() #4 {main} (45.63.67.212:27015)
Not sure how to debug that further as byte operations are something a bit beyond my understanding. Any help appreciated

Edit:
Looks like it's expecting 0x49 instead of 0x41:

PHP Code:
$Type $Buffer->GetByte( );

// Old GoldSource protocol, HLTV still uses it
if( $Type === self::S2A_INFO_OLD && $this->Socket->Engine === self::GOLDSOURCE )
{
    
/**
     * If we try to read data again, and we get the result with type S2A_INFO (0x49)
     * That means this server is running dproto,
     * Because it sends answer for both protocols
     */ 
Edit #2

after some research on SourceQuery's 0x41 response:

Quote:
Servers may respond with the data immediately. However, since this reply is larger than the request, it makes the server vulnerable to a reflection amplification attack. Instead, the server may reply with a challenge to the client using S2C_CHALLENGE ('A' or 0x41). In that case, the client should repeat the request by appending the challenge number. This change was introduced in December 2020 to address the reflection attack vulnerability, and all clients are encouraged to support the new protocol. See this post for more info.
source: https://developer.valvesoftware.com/wiki/Server_queries

Noticed that the last commit to "sourcebans-pp/web/includes/SourceQuery/SourceQuery.php" was in 2018, and the valve forum post was 2020.
So is this an error within sourcebans or something within my server configuration? Other people aren't having the same issue so probably the latter.
Also is there a way to just skip over to byte 0x49?

edit #3

adding this "if" statement into "sourcebans/includes/SourceQuery/SourceQuery.php" fixed the issue. credit . I didn't edit in other stuff from that example (this) but it's a temporary fix anyway until sourcebans officially updates SourceQuery include.

PHP Code:
$this->Socket->Writeself::A2S_INFO"Source Engine Query\0" );
$Buffer $this->Socket->Read( );

$Type $Buffer->GetByte( );

if( 
$Type === self::S2A_CHALLENGE )
{
    
$this->Challenge $Buffer->Get);

    
$this->Socket->Writeself::A2S_INFO"Source Engine Query\0" $this->Challenge );
    
$Buffer $this->Socket->Read( );
    
$Type $Buffer->GetByte( );
}

// Old GoldSource protocol, HLTV still uses it
if( $Type === self::S2A_INFO_OLD && $this->Socket->Engine === self::GOLDSOURCE )
{
    
/**
     * If we try to read data again, and we get the result with type S2A_INFO (0x49)
     * That means this server is running dproto,
     * Because it sends answer for both protocols
     */ 
https://github.com/sbpp/sourcebans-pp/issues/734

Last edited by dustinandband; 07-01-2021 at 18:09.
dustinandband is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode