I have been following this guide to setup a Linux build of my game server, and when I try to run it, I get an error 77 with curl when trying to login in PlayFab with the title secret key.
It only happens when executing it from inside the container, it works in Windows, and it work in WSL.
Here is my docker file :
FROM ubuntu:22.04 RUN apt-get update RUN apt-get install -y libssl1.1 WORKDIR /assets COPY project /assets WORKDIR /app COPY linux/<Server executable> . COPY settings/PlayFabSecret . RUN chmod +x <Server executable> CMD [<Server start command>]
and the playfab connection code in the server, which works on Windows and WSL :
std::ifstream secretFile("./PlayFabSecret"); std::string pfKey; secretFile >> pfKey; PlayFabSettings::staticSettings->titleId = (<title ID>); PlayFabSettings::staticSettings->developerSecretKey = pfKey; //Wrapper around PlayFab APIs to allow synchronous wait eXl::Err res = m_AuthExecutor.WaitForQuery(&PlayFabAuthenticationInstanceAPI::GetEntityToken, AuthenticationModels::GetEntityTokenRequest(), [&] (AuthenticationModels::GetEntityTokenResponse const& iResp) { // Result in Windows and WSL LOG_INFO << "Playfab login successful"; m_AuthExecutor.GetAuthenticationContext()->entityToken = iResp.EntityToken; }); if (!res) { // Result in the container + curl error 77 LOG_INFO << "Playfab login failure"; exit(1); }