"This server does not have a license key specified" on Linux - definitely in config!

serverlicencekey

#1

Hey all. I’ve followed the Linux installation instructions to the letter. But upon start, I’m getting:

This server does not have a license key specified. Please set the sv_licenseKey console variable to a key from https://keymaster.fivem.net/. (for example, `set sv_licenseKey "key"` in the config, or `+set sv_licenseKey key` on the command line)

My server.cfg does have a key specified as detailed in the instructions:

# License key for your server (https://keymaster.fivem.net)
sv_licenseKey <my_key_is_here>

and I am starting the server as follows:

fivem@yavin:~/server-data$ bash /home/fivem/server/run.sh server.cfg

So I’m utterly bemused why it’s not finding the key.

Any suggestions will be gratefully received, thanks!


#2

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:


#3

You actually need to execute your server.cfg. Try it like this

fivem@yavin:~/server-data$ bash /home/fivem/server/run.sh +exec server.cfg

Edit: It’s said in the installation instructions aswell btw :wink:


#4

Oh my goodness, how embarrassing. How on earth did I miss that?! Thanks very much Greenlander, all working perfectly now. I’m going to skulk off in shame now… :wink: