Giter Site home page Giter Site logo

fivem's Issues

Adding Scripts to FxServer

This is a completely foreign language that I am trying to learn as quick and easy as I possibly can. I have searched all over google, YouTube, Reddit, etc. and have yet to find information and steps that are helpful to beginners! I have followed videos step by step and my resources still are not appearing on my txadmin resource log. The server is up and I have my scripts sitting on my desktop as well as my server.cfg pulled up yet when I copy the name and add it to server.cfg with the word ensure and the file name of script and save it, it doesn’t show up in the txadmin “resource log”. I have to be doing something wrong here?! I am a visual learner, yet I still seem to be doing something wrong in the steps I’m taking. Please please anyone reach out and help a desperate person out!! I greatly appreciate any and all help, comments, recommendations..all of it! Thanks

You need to specify UDP to start the container

Hey,

I've used this container and it works fine. But you should add this to the example:

docker run -d
--name FiveM
--restart=on-failure
-e LICENCE_KEY=
-p 30120:30120
-p 30120:30120/udp
-v /volumes/fivem:/config
spritsail/fivem

If you don't add the UDP, you will be able to find the server, but not connect to it.

Building resource webpack failed. Error data: yarn failed.

So I am trying to create a new server. I am of a fresh download and as soon as I booted the server up I keep getting an error thrown for
Building resource webpack failed.
Error data: yarn failed.
Does anyone know why this may be happening and how to fix it. I saw in the last cfx patch they updated yarn lock would that affect it? Screenshot of the command prompt below.
Screenshot 2021-05-16 103927

Couldn't find resources

I'm using the provided docker-compose.yml to run the fivem server. I set the license key and modified the network forwards to use my desired ip address for the server, otherwise it is as included. When I start fivem, the server.cfg and resources get created in the directory I'm mounting as a volume, but it seems to complain that it can't find various resources. It's unclear whether I'm missing something extremely basic or if this is just a bug. Here's the output

Resolved live-internal.fivem.net:30110 to 178.32.9.100:30110
Creating script environments for _cfx_internal
Found new resource webadmin in /opt/cfx-server/citizen//system_resources//webadmin
Couldn't find resource sessionmanager.
Creating script environments for webadmin
Instantiated instance of script FxWebAdmin.BaseServer.
Instantiated instance of script FxWebAdmin.HttpServer+HttpServerScript.
Started resource webadmin
Couldn't find resource playernames.
Couldn't find resource mapmanager.
Couldn't find resource chat.
Couldn't find resource spawnmanager.
Couldn't find resource sessionmanager.
Couldn't find resource fivem.
Couldn't find resource hardcap.
Couldn't find resource rconlog.
Couldn't find resource scoreboard.
Authenticating server license key...
Server license key authentication succeeded. Welcome!
cfx> Sending heartbeat to live-internal.fivem.net:30110
Authenticating with Nucleus...
server thread hitch warning: timer interval of 3862 milliseconds
        fff
  cccc ff   xx  xx     rr rr    eee
cc     ffff   xx       rrr  r ee   e
cc     ff     xx   ... rr     eeeee
 ccccc ff   xx  xx ... rr      eeeee

Authenticated with cfx.re Nucleus: https://bbhoss-4gley5.cfx.re/
Saved GeoLite2-Country to /opt/cfx-server/citizen//system_resources//webadmin/GeoLite2-Country.mmdb.
Sending heartbeat to live-internal.fivem.net:30110

Adding enforceGameBuild Env

Theres a launch argument, +set sv_enforceGameBuild 2060, that I would like to use with the fivem container. Is there any way to enable this without modifying the docker config?

POLICE / BODYGUARD PEDS don't shoot when onesync off

Hello,
I wanted to report issues ive noticed with the NPC's when not using onesync. If onesync is turned off, police / bodyguards of other players won't shoot at other players or the wanted player.

When we however turn onesync on or use Legacy the ai will shoot at the player if wanted however the bodyguards summoned by the player or spawned by the server / recruited by the player get confused and shoot at their original recruiter.

Container crash

hi

When i run my new container i have the error message with the last 2 versions of your image.

`Authenticating server license key...
Server license key authentication succeeded. Welcome!
/proc/self/maps:
40031000-40061000 rwxp 00000000 00:00 0
4198e000-4199e000 rwxp 00000000 00:00 0
3a8e2680000-3a8e26af000 rw-p 00000000 00:00 0
6d1d2b80000-6d1d2c00000 rw-p 00000000 00:00 0
27e550d80000-27e550d83000 rw-p 00000000 00:00 0
299753900000-299753980000 rw-p 00000000 00:00 0
2c1100064000-2c110006c000 rw-p 00000000 00:00 0
35f14ff80000-35f150000000 rw-p 00000000 00:00 0
3c842d63c000-3c842d680000 ---p 00000000 00:00 0
3c842d680000-3c842d683000 rw-p 00000000 00:00 0
3c842d683000-3c842d684000 ---p 00000000 00:00 0
3c842d684000-3c842d6ff000 r-xp 00000000 00:00 0
3c842d6ff000-3c843563c000 ---p 00000000 00:00 0
3e4bacf00000-3e4bacf03000 rw-p 00000000 00:00 0
3e4bacf03000-3e4bacf80000 r--p 00000000 00:00 0
55cc6b054000-55cc6b05d000 r--p 00000000 08:41 77074506 /opt/cfx-server/FXServer
55cc6b05d000-55cc6b07c000 r-xp 00009000 08:41 77074506 /opt/cfx-server/FXServer
55cc6b07c000-55cc6b082000 r--p 00028000 08:41 77074506 /opt/cfx-server/FXServer
55cc6b083000-55cc6b084000 r--p 0002e000 08:41 77074506 /opt/cfx-server/FXServer
55cc6b084000-55cc6b085000 rw-p 0002f000 08:41 77074506 /opt/cfx-server/FXServer
55cc6b3d0000-55cc6bdbe000 rw-p 00000000 00:00 0 [heap]
7ff7922e9000-7ff79232a000 rw-p 00000000 00:00 0
7ff79232a000-7ff79232c000 ---p 00000000 00:00 0
7ff79232c000-7ff79242e000 rw-p 00000000 00:00 0
7ff79242e000-7ff792430000 ---p 00000000 00:00 0
Memory around native instruction pointer (0x7ff79de084e4):
0x7ff79de084d4 48 8b 3c 25 28 00 00 00 48 89 7c 24 50 48 8b 38 H.<%(...H.|$PH.8
0x7ff79de084e4 48 8b 5f f0 48 8b 7f f8 48 89 14 24 48 89 44 24 H._.H...H..$H.D$
0x7ff79de084f4 08 48 89 74 24 10 48 89 4c 24 18 0f 57 c0 0f 11 .H.t$.H.L$..W...
0x7ff79de08504 44 24 3f 0f 11 44 24 30 48 01 c3 0f 11 44 24 20 D$?..D$0H....D$

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

thanks in advance

Couldn't find resource (*)

(* meaning every resource I have)

server.cfg

# Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Set the database connection details
set mysql_connection_string "server=<Redacted>;database=essentialmode;userid=root;password=<Redacted>"
set es_enableCustomData 1

# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog
ensure mysql-async

# This allows players to use scripthook-based plugins such as the legacy Lambda Menu.
# Set this to 1 to allow scripthook. Do note that this does _not_ guarantee players won't be able to use external plugins.
sv_scriptHookAllowed 0

# Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD"
#rcon_password ""

# A comma-separated list of tags for your server.
sets tags "<Redacted>, <Redacted>, roleplay, serious-rp, rp"

# A valid locale identifier for your server's primary language.
# For example "en-US", "fr-CA", "nl-NL", "de-DE", "en-GB", "pt-BR"
sets locale "en-US"

# Set an optional server info and connecting banner image url.
# Size doesn't matter, any banner sized image will be fine.
#sets banner_detail "https://url.to/image.png"
#sets banner_connecting "https://url.to/image.png"

# Set your server's hostname
sv_hostname "<Redacted> | New! | Need staff | discord.gg/<Redacted>"

# Loading a server icon (96x96 PNG file)
load_server_icon icon.png

# convars which can be used in scripts
set temp_convar "hey world!"

# Remove the `#` from the below line if you do not want your server to be listed in the server browser.
# Do not edit it if you *do* want your server listed.
#sv_master1 ""

# Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.fivem:1 group.admin # add the admin to the group

# enable OneSync (required for server-side state awareness)
set onesync on

# Server player slot limit (see https://fivem.net/server-hosting for limits)
sv_maxclients 32

# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)
set steam_webApiKey "<Redacted>"

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

Server directories (root, server-data, resources [in order])
root dir
server-data dir
resources dir

It also wont come online, but still sends heartbeats to FiveM. Please, please help.

README needs txAdmin volume information

As the title says, I had to reverse engineer a few things to find where the txAdmin stores it's files, as restarting the docker container kept resetting the values.

Submitting a PR.

Latest FiveM Version isn't working at container runtime

Using the latest FiveM Version makes FxServer crash : 5722-7d9f95c0360fc6c778e87d0bf51ae7b97e5da2d0

Stack trace :

redm-redm-1  | + find . -mindepth 1
redm-redm-1  | + read -r
redm-redm-1  | + echo 'Creating default configs...'
redm-redm-1  | Creating default configs...
redm-redm-1  | + cp -r /opt/cfx-server-data/README.md /opt/cfx-server-data/resources /opt/cfx-server-data/server.cfg /config
redm-redm-1  | + tr -dc a-zA-Z0-9
redm-redm-1  | + head -c 16
redm-redm-1  | + RCON_PASS=eKctL6apNbVDwJak
redm-redm-1  | + sed -i 's/{RCON_PASS}/eKctL6apNbVDwJak/g' /config/server.cfg
redm-redm-1  | + echo ----------------------------------------------
redm-redm-1  | ----------------------------------------------
redm-redm-1  | + echo 'RCON password is set to: eKctL6apNbVDwJak'
redm-redm-1  | RCON password is set to: eKctL6apNbVDwJak
redm-redm-1  | + echo ----------------------------------------------
redm-redm-1  | ----------------------------------------------
redm-redm-1  | + '[' -z true ]
redm-redm-1  | + CONFIG_ARGS=
redm-redm-1  | + '[' -z true ]
redm-redm-1  | + '[' -z  ]
redm-redm-1  | + '[' -z owsah54ph7nc0aswz3hlgjtn54m9ht6v ]
redm-redm-1  | + '[' -z owsah54ph7nc0aswz3hlgjtn54m9ht6v ]
redm-redm-1  | + CONFIG_ARGS=' +set sv_licenseKey xxxxxxxxxxxxxxxx'
redm-redm-1  | + exec /opt/cfx-server/ld-musl-x86_64.so.1 --library-path /usr/lib/v8/:/lib/:/usr/lib/ -- /opt/cfx-server/FXServer +set citizen_dir /opt/cfx-server/citizen/ 
+set sv_licenseKey xxxxxxxxxxxxxx +exec /config/server.cfg +set onesync on +set gamename rdr3
redm-redm-1  | 
redm-redm-1  | 
redm-redm-1  | =================================================================
redm-redm-1  | FXServer crashed.
redm-redm-1  | A dump can be found at /opt/cfx-server/crashes/2857b358-cfc0-4933-5b449cbe-e5e8b3f2.dmp.
redm-redm-1  | Crash report ID: 106a103a-b826-4292-8c61-2d736c67f263
redm-redm-1  | =================================================================
redm-redm-1 exited with code 139

To reproduce the issue, just change the FiveM Version argument to: 5722-7d9f95c0360fc6c778e87d0bf51ae7b97e5da2d0

TXAdmin support ?

Hi there.. Great job.. :)
What about TXAdmin support on this docker ? can this be added somehow ?

Couldn't find resource

Solution:
You have to transfer a folder not a file, ahh: D

version: '3'

services:
  fivem:
    image: spritsail/fivem
    container_name: fivem
    restart: always
    stdin_open: true
    tty: true
    volumes:
      - ".config:/config"
    ports:
      - "30120:30120"
      - "30120:30120/udp"
    environment:
      LICENCE_KEY: "<nop sorry :D>"

I can't get to the server, my client loads scripts endlessly and there are errors in the server, the resources are not found.

And I want to install fivepd, for that I want to create a database (mariadb) in Docker.
But I only know about LXC / LXD, is it easy to implement or should I use LXC / LXD instead of Docker?

https://gtapolicemods.com/index.php?/forums/topic/478-fivepd-how-to-install/

Dont work:

docker run -d \
  --name FiveM \
  --restart=on-failure \
  -e LICENCE_KEY=<your-license-here>
  -p 30120:30120 \
  -p 30120:30120/udp \
  -v /volumes/fivem:/config \
  -ti \
  spritsail/fivem

Top level object in './docker-compose.yml' needs to be an object not '<class 'str'>'.

Work but this:

version: '3'

services:
  fivem:
    image: spritsail/fivem
    container_name: fivem
    restart: always
    stdin_open: true
    tty: true
    volumes:
      - "/home/fivem/config:/config"
    ports:
      - "30120:30120"
      - "30120:30120/udp"
    environment:
      LICENCE_KEY: "<nop sorry :D>"

root@vmd47190:/home/fivem# docker image rm spritsail/fivem:latest Untagged: spritsail/fivem:latest Untagged: spritsail/fivem@sha256:fe6a27927210fe989df5198289fc7028788f5cd9c7f783bae5620d6513b17a2f Deleted: sha256:ab0a880469865ed473105ecfcc539bff67adcecf24f61803b43975615bd285f4 Deleted: sha256:00eb7185db7238fd79ccb9b9f33d6beea796c492af21e7af8f42c7b08d36e141 Deleted: sha256:8df87b58cd20c457ff3229ab8b8a7655dd756e5ce98b651a4c2127816330174f root@vmd47190:/home/fivem# docker-compose up Pulling fivem (spritsail/fivem:)... latest: Pulling from spritsail/fivem d8f3f8ce52f0: Pull complete f853bff20551: Pull complete Digest: sha256:fe6a27927210fe989df5198289fc7028788f5cd9c7f783bae5620d6513b17a2f Status: Downloaded newer image for spritsail/fivem:latest Creating fivem ... done Attaching to fivem fivem | Creating script environments for _cfx_internal fivem | Found new resource webadmin in /opt/cfx-server/citizen//system_resources//webadmin fivem | Found new resource monitor in /opt/cfx-server/citizen//system_resources//monitor fivem | Couldn't find resource sessionmanager. fivem | Creating script environments for webadmin fivem | Instantiated instance of script FxWebAdmin.BaseServer. fivem | Instantiated instance of script FxWebAdmin.HttpServer+HttpServerScript. fivem | Started resource webadmin fivem | Creating script environments for monitor fivem | Started resource monitor fivem | Couldn't find resource mapmanager. fivem | Couldn't find resource chat. fivem | Couldn't find resource spawnmanager. fivem | Couldn't find resource sessionmanager. fivem | Couldn't find resource fivem. fivem | Couldn't find resource hardcap. fivem | Couldn't find resource rconlog. fivem | Couldn't find resource scoreboard. fivem | Authenticating server license key... fivem | Server license key authentication succeeded. Welcome! fivem | cfx> Sending heartbeat to https://servers-ingress-live.fivem.net/ingress fivem | Authenticating with Nucleus... fivem | server thread hitch warning: timer interval of 3673 milliseconds fivem | fff fivem | cccc ff xx xx rr rr eee fivem | cc ffff xx rrr r ee e fivem | cc ff xx ... rr eeeee fivem | ccccc ff xx xx ... rr eeeee

I think the link is wrong,

 && wget -O- http://github.com/citizenfx/cfx-server-data/archive/${DATA_VER}.tar.gz \
        | tar xz --strip-components=1 -C opt/cfx-server-data \
    \

https://github.com/citizenfx/cfx-server-data
Although not really but something is not.
http://github.com/citizenfx/cfx-server-data/archive/dd38bd01923a0595ecccef8026f1310304d7b0e3.tar.gz

Neither, it is probably due to folder's starting position.
With a Linux system on a normal system, it only worked where I was in the folder:
cd / home / FiveM / server-data / war
and then:
bash /home/FiveM/server/run.sh + exec /home/FiveM/server-data/server.cfg
Have executed.

Add an additional image for the monitor (txAdmin)

Hi,

I'm using your docker image for all of my servers. It's really cool, but in-order-to use the (new) monitor resource, it need the ./FXServer to be run without any +exec, it looks like this :

image

If we want to have this thing with your image, I have to run : docker-compose exec fivem sh then go to : /opt/cfx-server and then run the ./FXServer (and the license key obviously).

The console output this :

  _______  ______                           
 |  ___\ \/ / ___|  ___ _ ____   _____ _ __ 
 | |_   \  /\___ \ / _ \ '__\ \ / / _ \ '__|
 |  _|  /  \ ___) |  __/ |   \ V /  __/ |   
 |_|   /_/\_\____/ \___|_|    \_/ \___|_|   
-------------------------------- monitor ---

Creating script environments for _cfx_internal
Creating script environments for monitor
[txAdmin] Version ,2.5.1 using data path '/txData'
[txAdmin] >> Starting profile default
[txAdmin:ConfigVault] Started
[txAdmin:Authenticator] Started
[txAdmin:DiscordBot] Disabled by the config file.
[txAdmin:FXRunner] Started
[txAdmin:Logger] Started
[txAdmin:Translator] Started
[txAdmin:Monitor] Started
[txAdmin:PlayerController] Started
[txAdmin:WebServer] Listening at  http://localhost:40120/ 
[txAdmin:WebServer] Listening at  https://xxxx-xxxxx-xxxxxx-xxxxx.users.cfx.re/ 

It's a really cool feature that I think it could be great to have.

In-order-to do so. I think we just have to build another image like fxserver-monitor, that only launch the FXServer program only with the license key argument.

What do you think ?

Docker Hub description needs to be updated

The Docker Hub description does not match the README.md here on GitHub, meaning that users basing their configuration off of the command in that description will encounter issues that have already been closed here (namely the SIGSEGV that drove me insane all day).

Fivem problem

What can I do about it?

[ script:yarn] Error: [yarn] F:\txData\CFXDefault_374651.base\resources[system][builders]\yarn\yarn_cli.js:89123
[ script:yarn] lock.compromised(err);
[ script:yarn] ^
[ script:yarn]
[ script:yarn] TypeError: lock.compromised is not a function
[ script:yarn] at compromisedLock (F:\txData\CFXDefault_374651.base\resources[system][builders]\yarn\yarn_cli.js:89123:10)
[ script:yarn] at F:\txData\CFXDefault_374651.base\resources[system][builders]\yarn\yarn_cli.js:89075:24
[ script:yarn] at FSReqCallback.oncomplete (node:fs:188:23)

Can't Bash into the container

With most containers, I can just run "docker exec -it /bin/bash" except that this doesn't work with this container. I need to change the permissions on it so I can apply the new config, but I can't do that right now without being able to Bash into it. How would one Bash into this container?

Run Error: tini entrypoint failed: No such file or directory

Is there a trick to building this image?

When I run the already built image from Docker Hub, it runs perfectly fine - but I can't connect to it.

When I try to build my own image from this repo (with no changes made to it), it builds but doesn't run. When I try to run it I keep getting:

[FATAL tini (6)] exec /usr/bin/entrypoint failed: No such file or directory

Windows 10 64-bit, Version 1903 (Build 18362.720)
Docker 19.03.8 (Build afacb8b)

Timezone

Hi, there,
Is it possible to change the timezone?
Thanks

Container crash

Sorry, I couldn't reopen the last ticket becuase it was closed by a contributor. Got a stacktrace while server was loading, using the latest image. Used the same command I previously used to create and run the container. This kind of looks like issue #3, but I am running /ti so I'm unsure what's going on.

sudo docker run -d
--name fiveM
--restart=on-failure
-e LICENCE_KEY='asdf'
-p 30120:30120
-p 30120:30120/udp
-v /asdf/asdf/asdf:/config
-ti
spritsail/fivem

Creating script environments for sessionmanager
/proc/self/maps:
4086f000-4089f000 rwxp 00000000 00:00 0 
41ce8000-41cf8000 rwxp 00000000 00:00 0 
c6ef800000-c6ef801000 rwxp 00000000 00:00 0 
cbdc92c0000-cbdc9300000 rwxp 00000000 00:00 0 
fef5eac0000-fef5eb00000 rwxp 00000000 00:00 0 
fef74100000-fef74140000 rwxp 00000000 00:00 0 
120a23a02000-120a23a40000 ---p 00000000 00:00 0 
120a23a40000-120a23a41000 rwxp 00000000 00:00 0 
120a23a41000-120a23a42000 ---p 00000000 00:00 0 
120a23a42000-120a23a67000 r-xp 00000000 00:00 0 
120a23a67000-120a23a7f000 ---p 00000000 00:00 0 
120a23a7f000-120a2ba02000 ---p 00000000 00:00 0 
1beb79640000-1beb79680000 rwxp 00000000 00:00 0 
240788c40000-240788c80000 rwxp 00000000 00:00 0 
284fb28c0000-284fb28d6000 rwxp 00000000 00:00 0 
2a4d74ac0000-2a4d74b00000 r-xp 00000000 00:00 0 
3bde86328000-3bde86330000 rwxp 00000000 00:00 0 
55571c272000-55571c283000 r-xp 00000000 08:02 4597141                    /opt/cfx-server/FXServer
55571c283000-55571c2dc000 r-xp 00011000 08:02 4597141                    /opt/cfx-server/FXServer
55571c2dc000-55571c2ea000 r-xp 0006a000 08:02 4597141                    /opt/cfx-server/FXServer
55571c2ea000-55571c2eb000 r-xp 00077000 08:02 4597141                    /opt/cfx-server/FXServer
55571c2eb000-55571c2ec000 rwxp 00078000 08:02 4597141                    /opt/cfx-server/FXServer
55571cbd7000-55571cbd8000 ---p 00000000 00:00 0                          [heap]
55571cbd8000-55571cbee000 rwxp 00000000 00:00 0                          [heap]
7f6408c95000-7f6408c96000 rwxp 00000000 00:00 0 
Memory around native instruction pointer (0x7f64223ac68b):
0x7f64223ac67b  0f 7e d2 66 0f 70 d1 4e 66 41 0f 7e d3 44 89 d0  .~.f.p.NfA.~.D..
0x7f64223ac68b  66 41 0f 38 00 c0 66 0f 6f d0 44 31 d8 66 0f 70  fA.8..f.o.D1.f.p
0x7f64223ac69b  d9 e7 66 41 0f 7e de 66 41 0f fe d1 44 21 f0 44  ..fA.~.fA...D!.D
0x7f64223ac6ab  89 ef c1 c7 05 66 0f 7f 54 24 e8 44 31 d0 66 41  .....f..T$.D1.fA
=================================================================
Got a SIGILL while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Tutorial how to setup DB and resources?

How can I upload the resources and connect the db when running the container. What if I update the container? Do I need to copy every thing to the new container?

Error on yarn and webpack

Hi, I am using the latest image you provided (I also tried with latest artifact build by changing Fivem version to 3553-e4897f46aeb8a852a33c93a0f7f7b74d5425fd70).

I don't know if the issue is caused by the image, but I guess so.

(I have added the process error code but it doesn't help).
image
image
image

And here is the full logs
  Creating script environments for _cfx_internal
  Found new resource ilog in /config/resources//ilog
  Found new resource webadmin in /opt/cfx-server/citizen//system_resources//webadmin
  Found new resource monitor in /opt/cfx-server/citizen//system_resources//monitor
  Found new resource es_admin2 in /config/resources//[essential]/es_admin2
  Found new resource es_extended in /config/resources//[essential]/es_extended
  Found new resource pine_rocade in /config/resources//[essential]/pine_rocade
  Found new resource essentialmode in /config/resources//[essential]/essentialmode
  Found new resource inventories in /config/resources//[essential]/inventories
  Found new resource tab in /config/resources//[essential]/tab
  Found new resource icar in /config/resources//[essential]/icar
  Found new resource esx_status in /config/resources//[esx]/esx_status
  Found new resource esx_bankerjob in /config/resources//[esx]/esx_bankerjob
  Found new resource esx_mecanojob in /config/resources//[esx]/esx_mecanojob
  Found new resource esx_vehicleshop in /config/resources//[esx]/esx_vehicleshop
  Found new resource esx_tattooshop in /config/resources//[esx]/esx_tattooshop
  Found new resource esx_extraitems in /config/resources//[esx]/esx_extraitems
  Found new resource esx_skin in /config/resources//[esx]/esx_skin
  Found new resource esx_burgerjob in /config/resources//[esx]/esx_burgerjob
  Found new resource esx_realestateagentjob in /config/resources//[esx]/esx_realestateagentjob
  Found new resource esx_unicornjob in /config/resources//[esx]/esx_unicornjob
  Found new resource esx_tekila in /config/resources//[esx]/esx_tekila
  Found new resource esx_organ in /config/resources//[esx]/esx_organ
  Found new resource esx_optionalneeds in /config/resources//[esx]/esx_optionalneeds
  Found new resource esx_accessories in /config/resources//[esx]/esx_accessories
  Found new resource esx_discord_bot in /config/resources//[esx]/esx_discord_bot
  Found new resource esx_gcidentity in /config/resources//[esx]/esx_gcidentity
  Found new resource esx_eden_clotheshop in /config/resources//[esx]/esx_eden_clotheshop
  Found new resource esx_realweapons in /config/resources//[esx]/esx_realweapons
  Found new resource esx_thief in /config/resources//[esx]/esx_thief
  Found new resource esx_policejob in /config/resources//[esx]/esx_policejob
  Found new resource esx_sit in /config/resources//[esx]/esx_sit
  Found new resource esx_license in /config/resources//[esx]/esx_license
  Found new resource esx_plongee in /config/resources//[esx]/esx_plongee
  Found new resource esx_barbershop in /config/resources//[esx]/esx_barbershop
  Found new resource esx_lscustom in /config/resources//[esx]/esx_lscustom
  Found new resource esx_taxijob in /config/resources//[esx]/esx_taxijob
  Found new resource esx_identity in /config/resources//[esx]/esx_identity
  Found new resource esx_basicneeds in /config/resources//[esx]/esx_basicneeds
  Found new resource esx_advanced_inventory in /config/resources//[esx]/esx_advanced_inventory
  Found new resource esx_service in /config/resources//[esx]/esx_service
  Found new resource esx_jobs in /config/resources//[esx]/esx_jobs
  Found new resource esx_drugs in /config/resources//[esx]/esx_drugs
  Found new resource esx_shops in /config/resources//[esx]/esx_shops
  Found new resource esx_foodtruck in /config/resources//[esx]/esx_foodtruck
  Found new resource esx_billing in /config/resources//[esx]/esx_billing
  Found new resource ibank in /config/resources//[esx]/ibank
  Found new resource esx_keys in /config/resources//[esx]/esx_keys
  Found new resource esx_fishing in /config/resources//[esx]/esx_fishing
  Found new resource esx_datastore in /config/resources//[esx]/esx_datastore
  Found new resource esx_spectate in /config/resources//[esx]/esx_spectate
  Found new resource esx_addonaccount in /config/resources//[esx]/esx_addonaccount
  Found new resource esx_property in /config/resources//[esx]/esx_property
  Found new resource esx_joblisting in /config/resources//[esx]/esx_joblisting
  Found new resource esx_addoninventory in /config/resources//[esx]/esx_addoninventory
  Found new resource esx_vigneronjob in /config/resources//[esx]/esx_vigneronjob
  Found new resource iweapons in /config/resources//[esx]/iweapons
  Found new resource esx_society in /config/resources//[esx]/esx_society
  Found new resource esx_celldoors in /config/resources//[esx]/esx_celldoors
  Found new resource esx_coronergate in /config/resources//[esx]/esx_coronergate
  Found new resource esx_ambulancejob in /config/resources//[esx]/esx_ambulancejob
  Found new resource esx_dmvschool in /config/resources//[esx]/esx_dmvschool
  Found new resource runcode in /config/resources//[system]/runcode
  Found new resource scoreboard in /config/resources//[fivem]/scoreboard
  Found new resource fivem in /config/resources//[fivem]/fivem
  Found new resource rconlog in /config/resources//[fivem]/rconlog
  Found new resource PineappleV in /config/resources//[fivem]/PineappleV
  Found new resource sessionmanager in /config/resources//[fivem]/sessionmanager
  Found new resource baseevents in /config/resources//[fivem]/baseevents
  Found new resource chat in /config/resources//[fivem]/chat
  Found new resource spawnmanager in /config/resources//[fivem]/spawnmanager
  Found new resource mapmanager in /config/resources//[fivem]/mapmanager
  Found new resource mazebank in /config/resources//[stream]/mazebank
  Found new resource int_jdmhub in /config/resources//[stream]/int_jdmhub
  Found new resource handling in /config/resources//[stream]/handling
  Found new resource pdm-mlo in /config/resources//[stream]/pdm-mlo
  Found new resource assets in /config/resources//[stream]/assets
  Found new resource gabz_mrpd in /config/resources//[stream]/gabz_mrpd
  Found new resource srp_dlctattoos in /config/resources//[stream]/srp_dlctattoos
  Found new resource mapping in /config/resources//[stream]/mapping
  Found new resource eclipse in /config/resources//[stream]/eclipse
  Found new resource esx_menu_dialog in /config/resources//[ui]/esx_menu_dialog
  Found new resource loadingscreen in /config/resources//[ui]/loadingscreen
  Found new resource carte grise in /config/resources//[ui]/carte grise
  Resource loading for carte%20grise failed:
  Could not open resource metadata file /config/resources//[ui]/carte grise/__resource.lua.
  Found new resource esx_menu_list in /config/resources//[ui]/esx_menu_list
  Found new resource trew_hud_ui in /config/resources//[ui]/trew_hud_ui
  Found new resource esx_menu_default in /config/resources//[ui]/esx_menu_default
  Found new resource cron in /config/resources//[libs]/cron
  Found new resource mysql-async in /config/resources//[libs]/mysql-async
  Found new resource interact-sound in /config/resources//[libs]/interact-sound
  Found new resource gcphone_old in /config/resources//[libs]/gcphone_old
  Found new resource skinchanger in /config/resources//[libs]/skinchanger
  Found new resource screenshot-basic in /config/resources//[libs]/screenshot-basic
  Found new resource instance in /config/resources//[libs]/instance
  Found new resource lux_vehcontrol in /config/resources//[libs]/lux_vehcontrol
  Found new resource esplugin_mysql in /config/resources//[libs]/esplugin_mysql
  Found new resource izone in /config/resources//[libs]/izone
  Found new resource async in /config/resources//[libs]/async
  Found new resource location_jetski in /config/resources//[others]/location_jetski
  Found new resource carcontrol in /config/resources//[others]/carcontrol
  Found new resource LegacyFuel in /config/resources//[others]/LegacyFuel
  Found new resource location_moto in /config/resources//[others]/location_moto
  Found new resource dpemotes in /config/resources//[others]/dpemotes
  Found new resource new_arrivals in /config/resources//[others]/new_arrivals
  Found new resource lasso in /config/resources//[others]/lasso
  Found new resource VaultDoorSystem in /config/resources//[others]/VaultDoorSystem
  Found new resource hypr9boost in /config/resources//[others]/hypr9boost
  Found new resource pNotify in /config/resources//[others]/pNotify
  Found new resource dlc in /config/resources//[others]/dlc
  Found new resource icams in /config/resources//[others]/icams
  Found new resource dpclothing in /config/resources//[others]/dpclothing
  Found new resource progressBars in /config/resources//[others]/progressBars
  Found new resource meta_libs in /config/resources//[others]/meta_libs
  Found new resource slashtires in /config/resources//[others]/slashtires
  Found new resource locations in /config/resources//[others]/locations
  Found new resource doors in /config/resources//[others]/doors
  Found new resource CWRadarGun in /config/resources//[others]/CWRadarGun
  Found new resource showcoords in /config/resources//[others]/showcoords
  Found new resource location_bateau in /config/resources//[others]/location_bateau
  Found new resource mumble-voip in /config/resources//[others]/mumble-voip
  Found new resource vSyncR in /config/resources//[others]/vSyncR
  Found new resource simpledrift in /config/resources//[others]/simpledrift
  Found new resource mhacking in /config/resources//[others]/mhacking
  Found new resource iconomy in /config/resources//[others]/iconomy
  Found new resource braquage in /config/resources//[others]/braquage
  Found new resource wk_wrs in /config/resources//[others]/wk_wrs
  Found new resource heli in /config/resources//[others]/heli
  Found new resource realisticvehicle in /config/resources//[others]/realisticvehicle
  Found new resource discord-rp in /config/resources//[others]/discord-rp
  Found new resource rp-radio in /config/resources//[others]/rp-radio
  Found new resource els in /config/resources//[others]/els
  Found new resource lockpicking in /config/resources//[others]/lockpicking
  Found new resource knockout in /config/resources//[others]/knockout
  Found new resource hud in /config/resources//[others]/hud
  Found new resource bob74_ipl in /config/resources//[others]/bob74_ipl
  Found new resource 99krshops in /config/resources//[others]/99krshops
  Found new resource nb_menuperso in /config/resources//[others]/nb_menuperso
  Found new resource announce in /config/resources//[others]/announce
  Found new resource .github in /config/resources//[essential]/[phone]/.github
  Resource loading for .github failed:
  Could not open resource metadata file /config/resources//[essential]/[phone]/.github/__resource.lua.
  Found new resource sql in /config/resources//[essential]/[phone]/sql
  Resource loading for sql failed:
  Could not open resource metadata file /config/resources//[essential]/[phone]/sql/__resource.lua.
  Found new resource src_htmlPhone in /config/resources//[essential]/[phone]/src_htmlPhone
  Resource loading for src_htmlPhone failed:
  Could not open resource metadata file /config/resources//[essential]/[phone]/src_htmlPhone/__resource.lua.
  Found new resource webpack in /config/resources//[system]/[builder]/webpack
  Found new resource yarn in /config/resources//[system]/[builder]/yarn
  Found new resource gcphone in /config/resources//[essential]/[phone]/[resources]/gcphone
  Creating script environments for sessionmanager
  Started resource sessionmanager
  Creating script environments for monitor
  Started resource monitor
  No such command .
  Creating script environments for mapmanager
  Started resource mapmanager
  Started resource spawnmanager
  Started gametype [RP] RôlePlay
  Started resource fivem
  Creating script environments for baseevents
  Started resource baseevents
  Creating script environments for rconlog
  Started resource rconlog
  Started resource dlc
  Could not make hard link for /config/resources//[stream]/mapping/stream//[others]/ArmurerieExt.ymap <-> /config/cache/files/mapping/stream_cache/zf6a190caa7b691aface1462ab2220d9401541853.
  Started resource mapping
  Asset assets/mp_f_freemode_01_mp_f_gunrunning_01^jbib_003_u.ydd uses 32.0 MiB of physical memory.
  Started resource assets
  Asset int_jdmhub/bam_jdm_txt.ytd uses 19.0 MiB of physical memory.
  Started resource int_jdmhub
  Started resource loadingscreen
  Started resource progressBars
  Creating script environments for mysql-async
  Started resource mysql-async
  Creating script environments for ilog
  Started resource ilog
  Creating script environments for essentialmode
  Started resource essentialmode
  Creating script environments for esplugin_mysql
  Started resource esplugin_mysql
  Creating script environments for es_admin2
  Started resource es_admin2
  Creating script environments for async
  Started resource async
  Creating script environments for es_extended
  Started resource es_extended
  Creating script environments for inventories
  Started resource inventories
  Creating script environments for icar
  Started resource icar
  Creating script environments for scoreboard
  Started resource scoreboard
  Creating script environments for izone
  Started resource izone
  Creating script environments for instance
  Started resource instance
  Creating script environments for cron
  Started resource cron
  Creating script environments for iconomy
  Started resource iconomy
  Creating script environments for yarn
  Started resource yarn
  Running build tasks on resource webpack - it'll restart once completed.
  Couldn't start resource webpack.
  Running build tasks on resource webpack - it'll restart once completed.
  Could not start dependency webpack for resource screenshot-basic.
  Couldn't start resource screenshot-basic.
  Creating script environments for vSyncR
  vSync Revamped by Kalinka loaded!
  Started resource vSyncR
  Creating script environments for gcphone
  Started resource gcphone
  : bad option: --library-path
  Creating script environments for esx_identity
  : bad option: --library-path
  Started resource esx_identity
  Started resource skinchanger
  Creating script environments for esx_skin
  Started resource esx_skin
  Started resource esx_menu_default
  Started resource esx_menu_list
  Started resource esx_menu_dialog
  Creating script environments for esx_addonaccount
  Started resource esx_addonaccount
  Creating script environments for esx_addoninventory
  Started resource esx_addoninventory
  Creating script environments for esx_datastore
  Started resource esx_datastore
  Creating script environments for esx_society
  Started resource esx_society
  Creating script environments for esx_service
  Started resource esx_service
  Creating script environments for esx_billing
  Started resource esx_billing
  Creating script environments for new_arrivals
  Started resource new_arrivals
  Creating script environments for esx_jobs
  Started resource esx_jobs
  Creating script environments for esx_joblisting
  Started resource esx_joblisting
  Creating script environments for esx_taxijob
  Error while createInvTN
  Started resource esx_taxijob
  Creating script environments for esx_mecanojob
  Error while createInvTN
  Started resource esx_mecanojob
  Creating script environments for esx_policejob
  Error while createInvTN
  = INFO = Registered number for police => police
  Started resource esx_policejob
  Creating script environments for esx_bankerjob
  Error while createInvTN
  Started resource esx_bankerjob
  Creating script environments for esx_ambulancejob
  = INFO = Registered number for ambulance => ambulance
  Error while createInvTN
  Started resource esx_ambulancejob
  Creating script environments for esx_vehicleshop
  Error while createInvTN
  Started resource esx_vehicleshop
  Creating script environments for esx_lscustom
  Started resource esx_lscustom
  Creating script environments for esx_vigneronjob
  Error while createInvTN
  Started resource esx_vigneronjob
  Creating script environments for iweapons
  Error while createInvTN
  Started resource iweapons
  Creating script environments for esx_foodtruck
  Error while createInvTN
  Started resource esx_foodtruck
  Creating script environments for icams
  Started resource icams
  Creating script environments for esx_tekila
  Error while createInvTN
  Started resource esx_tekila
  Creating script environments for ibank
  Started resource ibank
  Creating script environments for esx_status
  Started resource esx_status
  Creating script environments for esx_basicneeds
  Started resource esx_basicneeds
  Creating script environments for esx_optionalneeds
  Started resource esx_optionalneeds
  Creating script environments for esx_eden_clotheshop
  Started resource esx_eden_clotheshop
  Creating script environments for esx_shops
  Started resource esx_shops
  Creating script environments for esx_drugs
  Started resource esx_drugs
  Creating script environments for esx_license
  Started resource esx_license
  Creating script environments for esx_gcidentity
  Started resource esx_gcidentity
  Creating script environments for esx_discord_bot
  Started resource esx_discord_bot
  Creating script environments for esx_dmvschool
  Started resource esx_dmvschool
  Creating script environments for esx_celldoors
  Started resource esx_celldoors
  Creating script environments for esx_barbershop
  Started resource esx_barbershop
  Creating script environments for esx_accessories
  Started resource esx_accessories
  Creating script environments for esx_advanced_inventory
  Started resource esx_advanced_inventory
  Creating script environments for esx_extraitems
  Started resource esx_extraitems
  Creating script environments for esx_tattooshop
  Started resource esx_tattooshop
  Creating script environments for esx_keys
  Started resource esx_keys
  Creating script environments for esx_thief
  Started resource esx_thief
  Creating script environments for esx_spectate
  Started resource esx_spectate
  Creating script environments for esx_plongee
  Started resource esx_plongee
  Creating script environments for location_jetski
  Started resource location_jetski
  Creating script environments for location_moto
  Started resource location_moto
  Creating script environments for location_bateau
  Started resource location_bateau
  Creating script environments for esx_sit
  Started resource esx_sit
  Creating script environments for esx_fishing
  Started resource esx_fishing
  Started resource esx_realweapons
  Creating script environments for interact-sound
  Started resource interact-sound
  Creating script environments for announce
  Started resource announce
  Started resource pNotify
  Creating script environments for nb_menuperso
  Started resource nb_menuperso
  Started resource realisticvehicle
  Started resource hud
  Creating script environments for heli
  Started resource heli
  Creating script environments for lux_vehcontrol
  Started resource lux_vehcontrol
  Started resource wk_wrs
  Creating script environments for hypr9boost
  Started resource hypr9boost
  Started resource knockout
  Creating script environments for tab
  Started resource tab
  Creating script environments for slashtires
  Started resource slashtires
  Started resource discord-rp
  Creating script environments for VaultDoorSystem
  Started resource VaultDoorSystem
  Creating script environments for trew_hud_ui
  Started resource trew_hud_ui
  Creating script environments for LegacyFuel
  Started resource LegacyFuel
  Creating script environments for mumble-voip
  [mumble-voip] Initialised Script, 1024 channels created
  Started resource mumble-voip
  Started resource rp-radio
  Creating script environments for dpemotes
  Started resource dpemotes
  Started resource dpclothing
  Asset eclipse/gabz_pillbox_textures_01.ytd uses 22.5 MiB of physical memory.
  Started resource eclipse
  Couldn't find resource bennylift.
  Couldn't find resource bigbenny.
  Started resource mazebank
  Asset gabz_mrpd/gabz_mrpd_txd.ytd uses 38.5 MiB of physical memory.
  Started resource gabz_mrpd
  Started resource bob74_ipl
  Started resource pdm-mlo
  Started resource srp_dlctattoos
  Creating script environments for runcode
  Started resource runcode
  Authenticating server license key...
  cfx> Server is listening on port: 30121
  Started map PineappleV
  Started resource PineappleV
  Building resource webpack failed.
  Error data: yarn failed! code 9 signal null
  Building resource webpack failed.
  Error data: yarn failed! code 9 signal null
  server thread hitch warning: timer interval of 296 milliseconds
  
  dp Emotes (dpemotes) is up to date. (173)
  Server license key authentication succeeded. Welcome!
          fff                          
    cccc ff   xx  xx     rr rr    eee  
  cc     ffff   xx       rrr  r ee   e 
  cc     ff     xx   ... rr     eeeee  
   ccccc ff   xx  xx ... rr      eeeee 
                                       
  Authenticated with cfx.re Nucleus: <snip>
  -- [server notice: tebex_not_set]
  ================
  Monetize your server using Tebex! Visit https://tebex.io/fivem for more info.
  ================
  
  Uncaught MongoNetworkError: connection timed out
  @ilog/server/server_main.js(35141,13): MongoError
  @ilog/server/server_main.js(35173,5): MongoNetworkError
  @ilog/server/server_main.js(40808,14): connectionFailureError
  @ilog/server/server_main.js(40732,16): 
  events.js(299,28): onceWrapper
  events.js(210,5): emit
  net.js(468,8): Socket._onTimeout
  internal/timers.js(531,17): listOnTimeout
  internal/timers.js(475,7): processTimers
  
  MongoNetworkError: connection timed out
  Sending heartbeat to https://servers-ingress-live.fivem.net/ingress
  [{"val":4630,"name":"hunger","percent":46.3},{"val":3019,"name":"thirst","percent":30.19},{"val":0,"name":"drunk","percent":0.0}]
  all update 1
  [mumble-voip] Initialised player: 1
  all update 1
  all update 1
  Sending heartbeat to https://servers-ingress-live.fivem.net/ingress

Here is the yarn_builder.js related code :
image
https://github.com/citizenfx/cfx-server-data/blob/7680f316a7a128ca09d27101dac572098c111242/resources/%5Bsystem%5D/%5Bbuilders%5D/yarn/yarn_builder.js#L36-L70

Here is the permission on the volume i mount on the container (/config) (777) :
image

EDIT : I can confirm that it does work without using the docker image. Maybe it's missing nodejs deps or something ? I really don't know.

This server does not have a license key specified

When I try to run my docker compose, it gives me an error that the license key is not specified but I'm passing it with environment. In the entrypoint I'm printing CONFIG_ARGS and it is passing the license key correctly.

My docker-compose:

  server_esx:
    image: spritsail/fivem
    restart: unless-stopped
    stdin_open: true
    tty: true
    depends_on:
      - database
    environment:
      - LICENSE_KEY=${LICENSE_KEY}
      - NO_DEFAULT_CONFIG=true
    ports:
      - "30120:30120"
      - "30120:30120/udp"
      - "40120:40120"
    volumes:
      - ./esx:/config
      - ./volumes/esx:/txData
      - ./shared:/config/resources/[shared]

Error:

 [svadhesive] Error: 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)

Yarn is busy by another process

Hi,

I've just tested your image, but I needed it for RedM, so I edited it a bit.

The console output from the container:
image

My Docker-compose file:

  server:
    build:
      context: ./stacks/server
    restart: always
    stdin_open: true
    tty: true
    volumes:
      - "/stacks/server/resources:/config"
    ports:
      - "30120:30120"
      - "30120:30120/udp"
    environment:
      LICENCE_KEY: "..."

I added a line to the entrypoint:

exec /opt/cfx-server/FXServer \
       +set citizen_dir /opt/cfx-server/citizen/ \
       +exec /config/server.cfg \
       +set sv_licenseKey ${LICENCE_KEY} \
       +set gamename rdr3 \
       $@

What could be wrong here?

I've tested on WSL, it works fine without docker tho :/

EDIT: Just to provide more informations, it looks like they changed the yarn builder from the cfx-server-data. I'm trying to find what's wrong here

Yarn in Server Fivem

Today i try to create an server but issues arise of Yarn and keep it restarting amd same error
image

Updating to 1629 produces error and immediate crash

The server was working fine until Watchtower automatically updated the container to version 1629. Now, every time that it is started, the container spits out Could not find component cache storage file (components.json). (and nothing else) in the logs and immediately crashes. Switching back to the previous version (1626) fixed the issue completely. You might want to push that version to the latest tag until this issue is fixed, as I highly doubt that I will be the only user affected by this bug.

Webpack is busy

I created a server using this compose and txadmin installation

services:
  fivem:
    image: spritsail/fivem:stable
    container_name: fivem
    restart: always
    stdin_open: true
    tty: true
    volumes:
      - "./server-data/:/config"
      - "./txData/:/txData"
    ports:
      - "30120:30120"
      - "30120:30120/udp"
      - "40120:40120"
    environment:
      LICENSE_KEY: "${LICENSE_KEY}"
      NO_DEFAULT_CONFIG: "true" 

  database:
    image: mariadb
    container_name: mariadb
    restart: always
    environment:
      MARIADB_ROOT_PASSWORD: password
    volumes:
      - './mariadb/:/var/lib/mysql'
      - './sql:/docker-entrypoint-initdb.d'

i used this recipe for the server-data:
https://raw.githubusercontent.com/overextended/ox_recipes/ox/recipe.yaml

But now screenshot-basic is stuck loading when booting the server.

Serverlog:
fxserver_1705412057.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.