Giter Site home page Giter Site logo

Comments (3)

frebib avatar frebib commented on July 29, 2024

Running the compose file that you provided above, I can see that FXServer is launched with the following cmdline

/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 foo

The container logs contain this for me

[    c-server-monitor]   _______  ______
[    c-server-monitor]  |  ___\ \/ / ___|  ___ _ ____   _____ _ __
[    c-server-monitor]  | |_   \  /\___ \ / _ \ '__\ \ / / _ \ '__|
[    c-server-monitor]  |  _|  /  \ ___) |  __/ |   \ V /  __/ |
[    c-server-monitor]  |_|   /_/\_\____/ \___|_|    \_/ \___|_|
[    c-server-monitor] -------------------------------- monitor ---
[    c-server-monitor]
[    c-scripting-core] Creating script environments for monitor
[19:31:04][tx:v7.1.0] Profile 'default' starting...
[19:31:05][tx:SetupProfile] =========================================================
[19:31:05][tx:SetupProfile] Creating new profile folder...
[19:31:05][tx:SetupProfile] Server profile was saved in '/txData/default'
[19:31:05][tx:SetupProfile] =========================================================
[19:31:05][tx:WebServer] Listening on 0.0.0.0.
[19:31:05][tx]
[19:31:05][tx]    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
[19:31:05][tx]    ┃                                    ┃
[19:31:05][tx]    ┃     All ready! Please access:      ┃
[19:31:05][tx]    ┃    http://your-public-ip:40120/    ┃
[19:31:05][tx]    ┃                                    ┃
[19:31:05][tx]    ┃   Use the PIN below to register:   ┃
[19:31:05][tx]    ┃                5770                ┃
[19:31:05][tx]    ┃                                    ┃
[19:31:05][tx]    ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
[19:31:05][tx]
[19:31:05][tx] To be able to access txAdmin from the internet open port 40120
[19:31:05][tx] on your OS Firewall as well as in the hosting company.
[19:31:05][tx:FXRunner] Please open txAdmin on the browser to configure your server.
[19:31:31][tx:AdminVault] Use this PIN to add a new master account:  5770
[19:31:34][tx:PlayerDatabase] Internal Database optimized. This applies only for the txAdmin internal database, and does not affect your MySQL or framework (ESX/QBCore/etc) databases.
[19:31:34][tx:PlayerDatabase] - 0 players that haven't connected in the past 16 days and had less than 2 hours of playtime.
[19:31:34][tx:PlayerDatabase] - 0 whitelist requests older than a week.
[19:31:34][tx:PlayerDatabase] - 0 whitelist approvals older than a week.

I don't really know much about how fivem works, but I can see that the sv_licenseKey value is being set correctly as the error message says it should be:

/config # tr '\0' '\n' < /proc/7/cmdline
/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
foo

from fivem.

frebib avatar frebib commented on July 29, 2024

Ignore what I said above; we worked this out.
It's expected that the $LICENSE_KEY variable isn't passed through; you have to set it in the txadmin UI

from fivem.

frebib avatar frebib commented on July 29, 2024

The latest container build will now fail to start in this case. Remove the $LICENSE_KEY variable and set it in the txadmin webui

from fivem.

Related Issues (20)

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.