Open zeno0207 opened 1 month ago
Hello, I made some research. Server crashes when mutator tries to make http request to any endpoint, and an issue appears only at linux. Crash happens on core level and I couldn't find a way to attach debugger to kf instance.
I made some research,too.I created a kf2 instance on windows with the same parameters.As you said,server didn't crashed.But there was no server listed on the web.
Both the frontend and backend are built by docker compose on ubuntu 22.04(local ip:192.168.0.202).The windows is in the same lan.I wonder what's wrong.
Here is the detail of config file. backend environment [.env] MYSQL_ROOT_PASSWORD=DJV4qhk9dcw_ruk3qnv DB_USER=KF2 DB_PASSWORD=vhx-jxg.FMH0qvd7tvg DB_HOST=127.0.0.1 DB_PORT=3306 DB_NAME=stats SERVER_ADDR=127.0.0.1:3000 SECRET_TOKEN=kfy4kjb0ZPF0fnm!dxw STEAM_API_KEY=secret
frontend environment [.env.production] PUBLIC_BACKEND_URL=http://127.0.0.1:3000/api PORT=5000 HOST=127.0.0.1
mutator config on windows [KF2Stats.BackendConfig] BaseUrl=http://192.168.0.202:3000 SecretToken=kfy4kjb0ZPF0fnm!dxw
backend:
SERVER_ADDR=0.0.0.0:3000 - 127.0.0.1
resolves into host.docker.internal
inside docker
frontend: PUBLIC_BACKEND_URL=http://backend:3000/api HOST=0.0.0.0
If everything else is done correctly, http://127.0.0.1:3000
or http://192.168.0.202:3000
should be available from browser (404 page not found).
Place url that resolves correctly inside mutator config.
OS : ubuntu22.4 game server manager : linuxgsm Command-line Parameters : ./KFGameSteamServer.bin.x86_64 "KF-BioticsLab?Game=KFGameContent.KFGameInfo_Survival?GameLength=2?Difficulty=3?AllowSeasonalSkins=0?AdminPassword=123?GamePassword=?Mutator=KF2Stats.Mut -WebAdminPort=21010 -port=21000 -queryport=21010 -ConfigSubDir=kf2server" [KF2Stats.BackendConfig] BaseUrl=https://kf2stats.sample.com:443 SecretToken=sample
Server will crash soon after KFKF2Stats.ini is generated. Server wont crash if I remove KF2Stats.Mut from command-line parameters.