Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux FXServer will hang up when first player join game #2922

Open
kasuganosoras opened this issue Nov 10, 2024 · 3 comments
Open

Linux FXServer will hang up when first player join game #2922

kasuganosoras opened this issue Nov 10, 2024 · 3 comments
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@kasuganosoras
Copy link
Contributor

kasuganosoras commented Nov 10, 2024

What happened?

My FX server is running on Linux. However, after updating the artifacts from 6683 to 10822, the server hangs up every time the first player joins. This issue occurs even on a pretty clean server installed by txAdmin.

06:18:42 [              server] Error: Loop svMain seems hung! (last checkin 45 seconds ago)
06:18:42 [              server] Warning: svMain watchdog stack: root
06:19:27 [              server] Error: Loop svMain STILL seems hung! (last checkin 90 seconds ago)
06:19:27 [              server] Warning: svMain watchdog stack: root
06:20:10 [ citizen-server-impl] server thread hitch warning: timer interval of 135557 milliseconds

image

It will hang up about 130s every time.

Expected result

Not hanging up when first player join

Reproduction steps

  1. Installed a FXServer using txAdmin
  2. Start the server
  3. Join game
  4. The server hang up

Importancy

Slight inconvenience

Area(s)

FXServer

Specific version(s)

FiveM / FXServer 10822

Additional information

Server OS

Fedora Linux 37 (x86_64)

Also tested on Fedora Linux 38 with another server and get the same result

Server spec

  • CPU: Intel Xeon E5-2696 v4 * 2
  • Memory: DDR4 32G * 16
  • Storage: 12TB HDD (With 8TB+ free spaces)
  • Network: 1Gbps

Command uname -a

Linux zdrac 6.10.5-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 14 15:49:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Server configuration file

# Connections
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog

# Script Hook
sv_scriptHookAllowed 0

# Server Info
sets sv_projectName "Test"
sets sv_projectDesc "A Test FX Server"
sv_hostname "Test FiveM Server"
sets tags "zerodream"
sets locale "zh-CN" 

# Icons
load_server_icon zerodream.png

# Settings
sv_endpointprivacy true
set onesync on
sv_maxclients 10

# Keys
set steam_webApiKey [PRIVATE]
set steam_webApiDomain [PRIVATE]
set sv_licenseKey [PRIVATE]

# Permissions
add_principal group.admin group.user
add_principal identifier.fivem:1 group.admin # add the admin to the group
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
@kasuganosoras kasuganosoras added bug triage Needs a preliminary assessment to determine the urgency and required action labels Nov 10, 2024
@AvarianKnight
Copy link
Contributor

I can't replicate this, it works fine with and without txAdmin for me.

image

This was tested on Fedora 39

Linux fedora 6.10.10-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 12 16:02:41 UTC 2024 x86_64 GNU/Linux

@kasuganosoras
Copy link
Contributor Author

That is strange. I tried using a profiler to see what was happening when the server hung, but it seems like nothing was happening. During the server hang, the timeline was completely blank. The last frame before the hang and the first frame after recovery only showed monitor, webpack and yarn running.

profileData.json

I also tried installing Fedora 40 on a brand-new server, but that didn't work either. Additionally, I tried running it in a Debian-based Docker container, and with the same result.

quay.io/parkervcp/pterodactyl-images:base_debian

I suspect this might be related to Nucleus? Every time the server hangs and resumes, Nucleus authentication messages always show up, sometimes before the hang and sometimes after.

Btw, my country has internet censorship, which may randomly block FiveM domains. Will this affect Nucleus?

@kasuganosoras
Copy link
Contributor Author

kasuganosoras commented Nov 11, 2024

I used ptcpdump to capture the network, and I see when the server trying to request servers-ingress-live.fivem.net, the main thread will hang up.

# ./ptcpdump -i br0 -ntv -s 500 port domain | grep "fivem.net"
    120.232.235.136.45475 > 223.5.5.5.53: 18938+ [1au] A? lambda.fivem.net. (45)
    120.232.235.136.46377 > 223.5.5.5.53: 5041+ [1au] AAAA? lambda.fivem.net. (45)
    120.232.235.136.54364 > 1.1.1.1.53: 55803+ A? servers-ingress-live.fivem.net. (48)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

2 participants