GameServerManagers / GameServerManagers/LinuxGSM
[BUG] (23) Failed writing AND body jq: error (at <stdin>:1): Cannot iterate over null (null) during mods-update
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
## User Story
As a server admin, I want to use mod-update to update server mods, which I believe was done successfully, but the errors don't make me feel good when doing the mod update.
## Basic info
* **Distro:** [Ubuntu 20.04]
* **Game:** [CS:GO]
* **Command:** [mods-update]
* **LinuxGSM version:** [v22.1.0]
## Further Information
I believe this might happen when the sourcemod.net server is overloaded with traffic/users, as it's not happening everytime, but on some occasions, but it's just a rough guess.
This might be possibly related to https://github.com/GameServerManagers/LinuxGSM/issues/3762 but it's just a wild guess, it might be completely unrelated, just similar.
Logs with the issue below:
```
csgoserver@server:~/csgoserver$ ./csgoserver mu
[ INFO ] Updating mods csgoserver: Update addons/mods: 2 addons/mods will be updated
* Metamod: Source (retain common custom files)
* SourceMod (retain common custom files)
==> Updating Metamod: Source
creating mod download directory /home/csgoserver/csgoserver/lgsm/mods/tmp...OK
##O=- # # curl: (22) The requested URL returned error: 522 # # # #
Failure! An issue occurred downloading Metamod: Sourcecsgoserver@server:~/csgoserver$ ./csgoserver mu
(23) Failed writing body
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
[ INFO ] Updating mods csgoserver: Update addons/mods: 2 addons/mods will be updated
* Metamod: Source (retain common custom files)
* SourceMod (retain common custom files)
==> Updating Metamod: Source
```
What's interesting is that despite those errors, the update itself was performed successfully and with no errors after those mentioned above.
## To Reproduce
Steps to reproduce the behaviour:
1. Go to your server directory
2. Execute `./csgoserver mu`
3. Hope the bug happens or there are some network issues (or cause the network issues locally for testing)
4. See error
Just a heads up, that both sourcemod and metamod just got updates that fixed server-breaking bug that valve introduced with an update, because of this almost every server owner is now trying to download the updates, clogging up sourcemod.net server.
## Expected behaviour
Mods update without no error
Contributor guide
Assessment
This issue has not been assessed yet.