pvpgn / pvpgn-server

Next generation of PvPGN server
https://pvpgn.pro
GNU General Public License v2.0
541 stars 155 forks source link

BNETD disconnecting after startup #476

Open ShrekisLyf opened 1 year ago

ShrekisLyf commented 1 year ago

Hello!

I dont know how to describe this issue

I set up a server on Ubuntu 18.04 following the guide on this project The log shows SQL is working (MYSQL) and lets me boot via /usr/local/pvpgn/sbin/bnetd As soon as i do that Gateway editor tells me the connection is successful and also lets me connect via WC3 1.21a with the w3l.exe When i start it lets me log in and then connect but as soon as i entered an email it will say "unable to connect to battle.net" or "connection lost" Same with the gateway editor :/

This is the log output i get from around that time Jan 29 19:24:11 [trace] conn_shutdown: [28] connection already closed Jan 29 19:24:11 [info ] handle_init_packet: [26] client initiated file download connection Jan 29 19:24:11 [trace] conn_shutdown: [26] connection already closed Jan 29 19:24:11 [info ] handle_init_packet: [25] client initiated file download connection Jan 29 19:24:11 [trace] conn_shutdown: [25] connection already closed Jan 29 19:24:11 [info ] handle_init_packet: [27] client initiated file download connection Jan 29 19:24:11 [trace] conn_shutdown: [27] connection already closed Jan 29 19:24:11 [info ] file_send: [25] sending file "chathelp-war3-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/chathelp-war3.txt") of length 351 Jan 29 19:24:11 [info ] file_send: [26] sending file "icons-WAR3.bni" ("/usr/local/pvpgn/var/pvpgn/files/icons-WAR3.bni") of length 36931 Jan 29 19:24:11 [info ] file_send: [27] sending file "newaccount-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/newaccount.txt") of length 1423 Jan 29 19:24:11 [debug] sd_tcpinput: [26] read returned -1 (closing connection) Jan 29 19:24:11 [debug] sd_tcpinput: [25] read returned -1 (closing connection) Jan 29 19:24:11 [info ] conn_destroy: [26] closed file connection Jan 29 19:24:11 [info ] conn_destroy: [25] closed file connection Jan 29 19:24:12 [info ] file_send: [28] sending file "termsofservice-enUS.txt" ("/usr/local/pvpgn/etc/pvpgn/i18n/termsofservice.txt") of length 1402 Jan 29 19:24:12 [debug] sd_tcpinput: [27] read returned -1 (closing connection) Jan 29 19:24:12 [info ] conn_destroy: [27] closed file connection Jan 29 19:24:12 [debug] sd_tcpinput: [28] read returned -1 (closing connection) Jan 29 19:24:12 [info ] conn_destroy: [28] closed file connection Jan 29 19:24:13 [info ] _client_fileinforeq: [24] file requested: "bnserver-WAR3.ini" - type = 0x05 Jan 29 19:24:13 [debug] ipbanlist_check: lastcheck: 1675016649, now: 1675016653, now-lc: 4. Jan 29 19:24:13 [debug] ipbanlist_check: checking 78.132.3.158 Jan 29 19:24:13 [info ] sd_accept: [25] accepted connection from 78.132.3.158:50965 on 0.0.0.0:6112 Jan 29 19:24:13 [debug] conn_create: [25][22] sessionkey=0x1298632799 sessionnum=0x00000006 Jan 29 19:24:13 [debug] sd_accept: [25] client connected to a bnet listening address Jan 29 19:24:13 [info ] handle_init_packet: [25] client initiated file download connection Jan 29 19:24:13 [trace] conn_shutdown: [25] connection already closed Jan 29 19:24:13 [info ] file_send: [25] sending file "bnserver-WAR3.ini" ("/usr/local/pvpgn/var/pvpgn/files/bnserver-WAR3.ini") of length 352 Jan 29 19:24:13 [debug] sd_tcpinput: [25] read returned -1 (closing connection) Jan 29 19:24:13 [info ] conn_destroy: [25] closed file connection Jan 29 19:24:19 [trace] sql_read_account: SELECT uid FROM pvpgn_BNET WHERE username='zergrush' Jan 29 19:24:19 [trace] sql_read_attrs: SELECT * FROM pvpgn_BNET WHERE uid='1' Jan 29 19:24:19 [info ] _client_loginreqw3: [24] (W3) "ZergRush" passed account check (even though account has no salt) Jan 29 19:24:20 [info ] _client_logonproofreq: [24] logon proof requested Jan 29 19:24:20 [trace] sql_read_attrs: SELECT * FROM pvpgn_friend WHERE uid='1' Jan 29 19:24:20 [trace] sql_read_attrs: SELECT * FROM pvpgn_friend WHERE uid='0' Jan 29 19:24:20 [info ] _client_logonproofreq: [24] (W3) "ZergRush" logged in (right password) Jan 29 19:24:20 [debug] _client_anongame_infos: client_tag request tagid=(0x0) tag=(CLIENT_FINDANONGAME_INFOTAG_URL) tag_unk=(0x0000) Jan 29 19:24:20 [debug] _client_anongame_infos: client_tag request tagid=(0x1) tag=(CLIENT_FINDANONGAME_INFOTAG_MAP) tag_unk=(0x0000) Jan 29 19:24:20 [debug] _client_anongame_infos: client_tag request tagid=(0x2) tag=(CLIENT_FINDANONGAME_INFOTAG_TYPE) tag_unk=(0x0000) Jan 29 19:24:20 [debug] _client_anongame_infos: client_tag request tagid=(0x3) tag=(CLIENT_FINDANONGAME_INFOTAG_DESC) tag_unk=(0x0000) Jan 29 19:24:20 [debug] _client_anongame_infos: client_tag request tagid=(0x4) tag=(CLIENT_FINDANONGAME_INFOTAG_LADR) tag_unk=(0x0000) Jan 29 19:24:31 [info ] _client_setemailreply: [24] init account "ZergRush" email to "k.niederl1@gmail.com" Jan 29 19:24:35 [trace] sql_read_attrs: SELECT * FROM pvpgn_Record WHERE uid='1' Jan 29 19:24:35 [trace] sql_read_attrs: SELECT * FROM pvpgn_Record WHERE uid='0' Jan 29 19:24:36 [trace] _client_motdw3: lastnews() 1396069566 news_time 1204002367

I have not changed anything besides the SQL path yet

Where have i gone wrong?

kcinickgx commented 1 year ago

yo, after 3 hours debugging, delete the motd file and try again etc/pvpgn/i18n/w3motd.txt, it's something with the fmt library, why is this happening, is this project dead? last update 5 years ago...

ShrekisLyf commented 1 year ago

Looking at their discord it is very well alive but the wc3 parts seems to be underdeveloped while the diablo2 Branche is actively worked on

kcinickgx commented 1 year ago

it's seems to be fixed on the [PvPGN-PRO 1.99.8.0.0 RC1] (https://github.com/pvpgn/pvpgn-server/releases/tag/1.99.8.0.0-rc1-PRO) pre-release