I have an Unreal project with version 4.23 and I’m trying to migrate it to 4.25. The code part is all set correctly and I can package it as Linux with the cross-compile tool, but the trouble comes when I launch the server: Initializing Steam API always fail!
Firstly, I had an issue wih the fleet, it changed its state from ACTIVATING to ERROR throwing an exitCode = 1, which I discovered it was caused because of the glibc version in the Ubuntu 20.04, where I had recompiled the GameliftServerSDK .so, was newer than the one that is used in AmazonLinux2 instances, so I recompiled it again using Ubuntu 18.04 and that fixed that error (hurray!).
Now my fleet instance is created without errors and its state pass to ACTIVE, BUT (and its a huge but) Steam API is failing to initialize every time. I’ve ssh’d inside the instance and checked the logs and it shows the following lines:
LogOnline: OSS: Creating online subsystem instance for: Steam LogSteamShared: Warning: Steam Dedicated Server API failed to initialize. LogOnline: STEAM: [AppId: 0] Game Server API initialized 0 LogOnline: Warning: STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine. Try running with -NOSTEAM on the cmdline to disable. LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown() LogOnline: Warning: STEAM: Steam API failed to initialize! LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown() LogOnline: OSS: Unable to create OnlineSubsystem module Steam LogOnline: OSS: Creating online subsystem instance for: NULL LogOnline: OSS: TryLoadSubsystemAndSetDefault: Loaded subsystem for module [NULL]
I’ve checked the Binaries folder as well and the only different that I can find with the instances of 4.23 is that the there is no steam_appid.txt inside the folder next to the server binary. I know this file is needed for the server to know the my steam app id and it need to be placed there, so I’ve checked what has been uploaded to the build, and it says clearly that the steam_appid.txt is in it and in the correct folder.
I’ve been fighting against this for weeks now and I have run out of ideas so any help would be really appreciated. I’ve tried to create manually the steam_app.txt file and restart the process inside the instance and that cause an error as well. I’ve checked my DefaultEngine.ini a thousand times and I can’t see anything missing in there. So my only thought now is that it might be a problem with the steamSDK version or even Unreal 4.25. I know that Unreal 4.23 uses steamworks 1.42 and Unreal 4.25 uses the sdk version 1.47 but I think that everything about steamwork sdk is well configure in the project.
Does anyone have an idea about what could be wrong?