Logs / Error guide / FiveM
FiveM: license key invalid or missing (sv_licenseKey)
What the message means
Every FiveM server needs a license key from Cfx.re. If it's missing, invalid or revoked, the server shuts down right after starting.
What it looks like in the log
[ citizen-server-impl] Server FXServer-master v1.0.0.12345 linux
[ svadhesive] Authenticating server license key...
[ svadhesive] Server license key authentication failed. Your license key is invalid or was revoked.
[ citizen-server-impl] Shutting down server.
Excerpt from an example log, marked the way the analysis marks it.
Common causes
- sv_licenseKey is missing in server.cfg or in the startup settings.
- The key was deleted or regenerated in the Cfx.re portal.
- A typo, quotation marks or spaces around the key.
- The key is bound to a different IP address.
How to fix it
- Sign in to the Cfx.re portal (portal.cfx.re) and create a new key under “Server”.
- Enter it as sv_licenseKey "cfxk_…" in server.cfg or in the variable in the panel – in one place only.
- Restart the server; in the log, authentication should now run through without errors.
The key is masked automatically when you share your log.