Unity Remote Settings does not work in headless instance

Hi,

I am stuck for days on this issue, my client & server share some code that handles Remote Settings, the settings on the client are properly updated but on a headless instance, the settings are never updated.

RemoteSettings.Completed += (b, b1, arg3) =>  HandleRemoteSettings();

// Never called
private void HandleRemoteSettings() {
    Debug.Log("Hello world");
}

// Even when forcing
RemoteSettings.ForceUpdate();

Do Remote settings are supposed to work on a headless instance?
Thanks

Remote Settings is being deprecated later this year, you would be advised to migrate to Remote Config instead. I’m not familiar with the syntax you are using, I would suggest to use the documented approach first (unless the same code is working on your client). Also I trust you places similar Debug.Log statements around this code to confirm that it is properly executing. Code integration | Remote Config | 2.0.2-exp.1

Great, I implemented the thing with the new package.

It works on client and server (as a process), but I got this when I deploy my server (running in a ubuntu 20.04 container in Kubernetes).

Curl error 35: Cert handshake failed. verify result: UNITYTLS_X509VERIFY_FATAL_ERROR. error state: 7

My Kubernetes node is open-bar (no firewall rules anything).

From doc “The web service from which Unity downloads Remote Config data is read-only, but not secure” so I don’t even understand why it’s struggling with TLS?

Can you Google for the error UNITYTLS_X509VERIFY_FATAL_ERROR and see if the results might apply?

Of course I did Google before.

https://answers.unity.com/questions/1536058/issue-with-tls-and-x509-authentication.html

Nothing related to Unity RemoteConfig.

I guess the workaround is to not use RemoteConfig since Unity is unable to offer services that actually works.

I wasn’t implying that you didn’t, I was checking to see if you tested with .NET versions as discussed in the links, for example.

I’ve had this problem before, and finally I found the package ca-cerrificates is helpful.

apt-get install -y ca-certificates
1 Like

But I donot know why.:roll_eyes: