[GH-ISSUE #4196] [Bug]: jq: error (at <stdin>:0): Cannot iterate over null (null) #2648

Closed
opened 2026-02-27 03:04:21 +03:00 by kerem · 3 comments
Owner

Originally created by @AutumnFP on GitHub (Apr 30, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4196

User story

As a server admin, I want to the server to be Online

Game

Valheim

Linux distro

Ubuntu 20.04

Command

command: start

Further information

I successfully ran Valheim (vanilla) on my Linux system yesterday, I have had it working previously, but wanted a fresh start after installing FTP structures so uninstalled and reinstalled today.

After resolving an issue with Master server not showing as Listed, I'm now stuck on server STARTED but not ONLINE.

When I start the server (./vhserver st) I receive:

jq: error (at :0): Cannot iterate over null (null)

But then it does appear that the server is running, it's just stuck at Started and not Online (1hr+)

I'm comfortable that my vhserver.cfg file is okay and my port forwarding is working but I cannot work out what's pulling this error. Does anybody have any thoughts?

Relevant log output

Distro Details
=================================
Date:      Sun 30 Apr 14:31:32 UTC 2023
Distro:    Ubuntu 20.04.6 LTS
Arch:      x86_64
Kernel:    5.4.0-148-generic
Hostname:  valhalla
Uptime:    0d, 1h, 10m
tmux:      tmux 3.0a
glibc:     2.31

Server Resource
=================================
CPU         
Model:      Intel(R) Core(TM) i5-10500T CPU @ 2.30GHz
Cores:      12
Frequency:  3431.142MHz
Avg Load:   0.17, 0.33, 0.35

Memory     
Mem:       total  used   free   cached  available
Physical:  7.6GB  2.2GB  5.2GB  2.6GB   5.2GB
Swap:      4.0GB  0B     4.0GB

Storage
Filesystem:  /dev/mapper/ubuntu--vg-ubuntu--lv
Total:       98G
Used:        8.9G
Available:   84G

Network
IP:           0.0.0.0
Internet IP:  xx.xx.xx.xx

Game Server Resource Usage
=================================
CPU Used:  53.3%
Mem Used:  24.8%  1916MB

Storage
Total:        1.8G
Serverfiles:  1.5G

Valheim Server Details
=================================
Server name:      wholeneworld
App ID:           896660
Server IP:        0.0.0.0:2456
Internet IP:      xx.xx.xx.xx:2456
Server password:  ********
Game world:       vhserver
Save interval:    1800s
Master server:    listed
Status:           STARTED

vhserver Script Details
=================================
Script name:            vhserver
LinuxGSM version:       v23.2.3
glibc required:         2.15
Discord alert:          off
Email alert:            off
Gotify alert:           off
IFTTT alert:            off
Mailgun (email) alert:  off
Pushbullet alert:       off
Pushover alert:         off
Rocketchat alert:       off
Slack alert:            off
Telegram alert:         off
Update on start:        off
User:                   vhserver
Location:               /home/vhserver

Backups
=================================
No Backups created

Command-line Parameters
=================================
 ./valheim_server.x86_64 -name 'wholeneworld' -password ******** -port 2456 -world vhserver -public 1 -savedir '/home/vhserver/.config/unity3d/IronGate/Valheim' -logFile '' -saveinterval 1800 -backups 4 -backupshort 7200 -backuplong 43200 

Ports
=================================
Change ports by editing the parameters in:
/home/vhserver/lgsm/config-lgsm/vhserver

Useful port diagnostic command:
ss -tuplwn | grep valheim_server.

DESCRIPTION  PORT  PROTOCOL  LISTEN
Game         2456  udp       1
Query        2457  udp       1

Status:	STARTED

Steps to reproduce

./vhserver st

Originally created by @AutumnFP on GitHub (Apr 30, 2023). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4196 ### User story As a server admin, I want to the server to be Online ### Game Valheim ### Linux distro Ubuntu 20.04 ### Command command: start ### Further information I successfully ran Valheim (vanilla) on my Linux system yesterday, I have had it working previously, but wanted a fresh start after installing FTP structures so uninstalled and reinstalled today. After resolving an issue with Master server not showing as Listed, I'm now stuck on server STARTED but not ONLINE. When I start the server (./vhserver st) I receive: > jq: error (at <stdin>:0): Cannot iterate over null (null) But then it does appear that the server is running, it's just stuck at Started and not Online (1hr+) I'm comfortable that my vhserver.cfg file is okay and my port forwarding is working but I cannot work out what's pulling this error. Does anybody have any thoughts? ### Relevant log output ```shell Distro Details ================================= Date: Sun 30 Apr 14:31:32 UTC 2023 Distro: Ubuntu 20.04.6 LTS Arch: x86_64 Kernel: 5.4.0-148-generic Hostname: valhalla Uptime: 0d, 1h, 10m tmux: tmux 3.0a glibc: 2.31 Server Resource ================================= CPU Model: Intel(R) Core(TM) i5-10500T CPU @ 2.30GHz Cores: 12 Frequency: 3431.142MHz Avg Load: 0.17, 0.33, 0.35 Memory Mem: total used free cached available Physical: 7.6GB 2.2GB 5.2GB 2.6GB 5.2GB Swap: 4.0GB 0B 4.0GB Storage Filesystem: /dev/mapper/ubuntu--vg-ubuntu--lv Total: 98G Used: 8.9G Available: 84G Network IP: 0.0.0.0 Internet IP: xx.xx.xx.xx Game Server Resource Usage ================================= CPU Used: 53.3% Mem Used: 24.8% 1916MB Storage Total: 1.8G Serverfiles: 1.5G Valheim Server Details ================================= Server name: wholeneworld App ID: 896660 Server IP: 0.0.0.0:2456 Internet IP: xx.xx.xx.xx:2456 Server password: ******** Game world: vhserver Save interval: 1800s Master server: listed Status: STARTED vhserver Script Details ================================= Script name: vhserver LinuxGSM version: v23.2.3 glibc required: 2.15 Discord alert: off Email alert: off Gotify alert: off IFTTT alert: off Mailgun (email) alert: off Pushbullet alert: off Pushover alert: off Rocketchat alert: off Slack alert: off Telegram alert: off Update on start: off User: vhserver Location: /home/vhserver Backups ================================= No Backups created Command-line Parameters ================================= ./valheim_server.x86_64 -name 'wholeneworld' -password ******** -port 2456 -world vhserver -public 1 -savedir '/home/vhserver/.config/unity3d/IronGate/Valheim' -logFile '' -saveinterval 1800 -backups 4 -backupshort 7200 -backuplong 43200 Ports ================================= Change ports by editing the parameters in: /home/vhserver/lgsm/config-lgsm/vhserver Useful port diagnostic command: ss -tuplwn | grep valheim_server. DESCRIPTION PORT PROTOCOL LISTEN Game 2456 udp 1 Query 2457 udp 1 Status: STARTED ``` ### Steps to reproduce ./vhserver st
Author
Owner

@h3o66 commented on GitHub (May 2, 2023):

note: the jq error is not related to the server issue and probably not the main issue

<!-- gh-comment-id:1532019944 --> @h3o66 commented on GitHub (May 2, 2023): note: the jq error is not related to the server issue and probably not the main issue
Author
Owner

@AutumnFP commented on GitHub (May 2, 2023):

Perfect, thanks for replying. I'll seek other answers :)

<!-- gh-comment-id:1532026789 --> @AutumnFP commented on GitHub (May 2, 2023): Perfect, thanks for replying. I'll seek other answers :)
Author
Owner

@github-actions[bot] commented on GitHub (May 6, 2024):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:2095008977 --> @github-actions[bot] commented on GitHub (May 6, 2024): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2648
No description provided.