Server cant find config.cfg

Hi guys!
Someone know why i have this error?
I do the same things that are on installation to linux and i dont know whats going on.
i have the line with key in config

Creating script environments for sessionmanager
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)Stacktrace:

/proc/self/maps:
Started resource sessionmanager
40bc5000-40bd5000 rwxp 00000000 00:00 0
4154b000-4157b000 rwxp 00000000 00:00 0
13a26b480000-13a26b483000 rw-p 00000000 00:00 0
13a26b483000-13a26b500000 r–p 00000000 00:00 0
1c3496b80000-1c3496baf000 rw-p 00000000 00:00 0
1fba063da000-1fba06400000 —p 00000000 00:00 0
1fba06400000-1fba06403000 rw-p 00000000 00:00 0
1fba06403000-1fba06404000 —p 00000000 00:00 0
1fba06404000-1fba0647f000 r-xp 00000000 00:00 0
1fba0647f000-1fba0e3da000 —p 00000000 00:00 0
304044900000-304044980000 rw-p 00000000 00:00 0
32b13ab80000-32b13ab83000 rw-p 00000000 00:00 0
330ed5900000-330ed5980000 rw-p 00000000 00:00 0
38a59052c000-38a590534000 rw-p 00000000 00:00 0
3c0f5c800000-3c0f5c880000 rw-p 00000000 00:00 0
7f90e59ef000-7f90e59f0000 rw-p 00000000 00:00 0
7f90e59f0000-7f90e59f1000 —p 00000000 00:00 0
7f90e59f1000-7f90e59f2000 rw-p 00000000 00:00 0
7f90e59f2000-7f90e59f3000 —p 00000000 00:00 0
7f90e59f3000-7f90e59f4000 rw-p 00000000 00:00 0
7f90e59f4000-7f90e59f5000 —p 00000000 00:00 0
No such config file: server.cfg
7f90e59f5000-7f90e59f6000 rw-p 00000000 00:00 0
7f90e59f6000-7f90e59f7000 —p 00000000 00:00 0
7f90e59f7000-7f90e59f8000 rw-p 00000000 00:00 0
7f90e59f8000-7f90e59f9000 —p 00000000 00:00 0
GlobalError: 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)
Memory around native instruction pointer (0x7f90f0f0a5b7):
0x7f90f0f0a5a7 00 00 b8 0e 00 00 00 31 d2 bf 02 00 00 00 0f 05 …1…
0x7f90f0f0a5b7 c3 48 63 ff 50 b8 24 00 00 00 0f 05 48 89 c7 e8 .Hc.P.$…H…
0x7f90f0f0a5c7 20 9f fd ff 5a c3 48 63 ff 50 48 63 f6 b8 3e 00 …Z.Hc.PHc…>.
0x7f90f0f0a5d7 00 00 0f 05 48 89 c7 e8 08 9f fd ff 5a c3 85 ff …H…Z…

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

do you have a started.bat whit this code>

cd /d ‘‘location for cfx-server-data-master’’
''location for ‘‘run.cmd’’ +exec server.cfg +set sv_licenseKey ‘‘your key’’

or you can do it like this> [FX] Simple Server Starter [Batch File]

He is using Linux, this won’t work. However its similar

But with the above quote of @SUBIE_FAN you should be able to figure this out.

When launching your server your PWD (working directory aka which folder you are currently in) is not the server-data folder.

Check the https://docs.fivem.net for setting up your server.

TLDR:

  1. cd <path to server data where also server.cfg and resources folder is>
  2. <path to server files>/run.sh +exec server.cfg

Run it in a screen session, for example, to run it even after closing your ssh session

2 Likes