Closed Rusty01 closed 3 years ago
Actually this is weird. So I copied my userConfig.json over from the web to the server and did sh_reloadusers. It didn't update. I had to change the map to get it to update. (however even after a server restart the userConfig.json would not pull from the web. I had to copy it to the servers shine folder.
Do you have server logs from the time you tested this (or any time since this issue started)? There should be log messages if an error occurs when loading the data, or if it succeeds.
Yes, it says. "[23:58:29]All attempts to load users from the web failed. Using local file instead." There's nothing else about it in the log.
That implies the request is timing out on each attempt. The timeout time is 5 seconds, does your web server usually respond in less than that? It could also be that for some reason the server running NS2 can't reach your web server (e.g. DNS issues or some routing failure).
Unfortunately the game's HTTP request system doesn't really provide any useful error information, so it's hard to know what exactly is causing the request to fail.
Ok thanks, I'll move it to another host and see what happens. It fails on all 6 servers so could be the web host. The only thing I changed on the web host was adding a dedicated IP address.
On Sun, May 30, 2021 at 5:23 AM Person8880 @.***> wrote:
That implies the request is timing out on each attempt. The timeout time is 5 seconds, does your web server usually respond in less than that? It could also be that for some reason the server running NS2 can't reach your web server (e.g. DNS issues or some routing failure).
Unfortunately the game's HTTP request system doesn't really provide any useful error information, so it's hard to know what exactly is causing the request to fail.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Person8880/Shine/issues/854#issuecomment-850968867, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDBYNVYNCJF6HW53GTB6N3TQH7YFANCNFSM45XQ7DQQ .
Wanted to update. I changed the host and it worked ok. I am wondering why it wouldn't work on the original host. Do you think it's a port issue?
There could be many different issues that would cause it, without knowing the details of a given web host and seeing any logs it has it's not really possible to know for certain.
Given it works on another host there must have been some misconfiguration on the original host.
Another way to get more information for this kind of issue if you have SSH access to the game server would be to use curl
or similar to hit the web server and see what error(s) it returns.
Turns out the game does expose error messages, just they were never used by the vanilla code until recently so I didn't know they were available. I've just released an update that uses these so if this happens again it should hopefully be easier to diagnose.
Heya, not sure if it's a problem on my end, but my userConfig.json isn't pulling from web and updating. My config is setup correctly. I haven't touched it in some time. There's no json errors. Any ideas? Thanks!