Closed L1ghtman2k closed 2 years ago
UDP: It seems like first connecting via master server, disconnecting, and connecting directly works.
I suspect there is some init step that is likely being performed on the server when the client first connects via the master server. I believe this issue exists only on docker containers, but I could be wrong since I tested this a while back
same issue with 1.5.0 image
Yep the same issue here
I have no clue what would be causing this...
@pg9182, I was curious if were able to reproduce this one on your own. If you can't reproduce it, I am wondering how your setup could be different
RUN chown northstar:northstar /usr/lib/northstar/R2Northstar/placeholder_playerdata.pdata
fixed the issue for me because the server needs to read the file when it did not receive pdata for a player by the master server (direct connect without server browser).
certified brah moment, haven't tested it, but if it works, a very nice find!
It should be able to read it, but if it is trying to write to it, that might be it. I'll push a proper fix soon.
Yeah, that makes sense: https://github.com/R2Northstar/NorthstarLauncher/blob/90c123e6beabc833e8bbf0eae89653a522cc74bb/NorthstarDedicatedTest/serverauthentication.cpp#L251-L253
std::fstream pdataStream(pdataPath, std::ios_base::in);
if (pdataStream.fail()) // file doesn't exist, use placeholder
pdataStream = std::fstream(GetNorthstarPrefix() + "/placeholder_playerdata.pdata");
That opens it read/write even though it only needs read.
I am now able to replicate the issue that was happening to my docker instance when I was running it in WSL2 (In DM with @pg9182: https://discord.com/channels/@me/924866340555218974/932860684465758249)
Core issue:
Connecting via server browser works fine, while direct connect (aka
connect <IP-ADDRESS>:<PORT>
in console crashes the client)Some symptoms when connecting directly, instead of master server:
(Client crashes on game start)
(Lobby menu looks different than usual + crash): https://streamable.com/r0fsgo
Logs: (Client logs) nslog2022-02-11 02-57-13.txt
(Server Logs) electric-the-phantom.log.zip
How to replicate:
Run the following on a Linux server with docker (Downloads tf2 files, and starts up the server):
connect via:
connect <IP-ADDRESS>:37015
For convenience, can be run via Northstar-bot in lighthouse discord via:
/create_server region:new jersey insecure:True
, which runs the above script in vultr.