Whenever you restart a server with cleared cache, you MUST restart sessionmanager for people to be able to log in.
Don’t clear the cache. Simple as that.
First start of a server leads to this problem, and fresh user is clueless. Isn’t this a bug? Seems yes to me.
It’s not a bug because the sessionmanager starts properly and this only happens under 2 conditions: 1) The first time you ever start the server (because there’s no cache initially), and if you clear the cache manually.
Not to mention it’s been happening for so long there’s no way the FiveM team would be unaware of it. lol
As this only happens in the scenarios mentioned by @xlxAciDxlx, it’s not that big of a deal to use the solution you already provided or to simply stop and restart the server again
You can also put restart sessionmanager
into your server.cfg.
That is just simply beautiful. Thank you. Handy for dev server.