DarkAtra / v-rising-discord-bot

This bot allows you to display some information about your v rising server on Discord.
https://vrising.darkatra.dev
MIT License
14 stars 4 forks source link

Cant get server info [com.ibasco.agql.core.exceptions.ReadTimeoutException] #112

Closed Xoma163 closed 2 months ago

Xoma163 commented 2 months ago

Hello

/add-server server-hostname:46.0.192.108 server-query-port:9876

image

What's wrong? I can status my server in monitoring here

DarkAtra commented 2 months ago

you've used the wrong port. the correct query port is: 9877

Xoma163 commented 2 months ago

you've used the wrong port. the correct query port is: 9877

Oh sorry, my bad. It works. Thank you!

adthonb commented 2 months ago

I got the same message and checked that port 9877 could be accessed but your bot can't query my server. Should I set ListOnSteam option to true ?

DarkAtra commented 2 months ago

I got the same message and checked that port 9877 could be accessed but your bot can't query my server. Should I set ListOnSteam option to true ?

You'll want to use your servers query port with the discord bot. Best way to find it is to use https://www.battlemetrics.com/servers/vrising to search for your server and then copy the query port:

grafik

If you are 100% certain that you're using the correct port, then you might be running into this issue: https://github.com/DarkAtra/v-rising-discord-bot/issues/109.

adthonb commented 2 months ago

I am sure 100% using the correct port. I set my server from scrap and config ServerHostSettings.json by myself. I can query v-rising-discord-bot-companion API normally. I just think ListOnSteam option will cause this issue

DarkAtra commented 2 months ago

I am sure 100% using the correct port. I set my server from scrap and config ServerHostSettings.json by myself. I can query v-rising-discord-bot-companion API normally. I just think ListOnSteam option will cause this issue

the bot companion has nothing to do with the query port though. can you maybe elaborate what exactly you're trying to do atm? (e.g. do you want the discord status embed or kill feed or ...)

adthonb commented 2 months ago

I want to use your Jarvis bot to show server status and kill feed. I got this message:

CompletionException: 
com.ibasco.agql.core.exceptions.MaxAttemptsReachedException:
com.ibasco.agql.core.exceptions.ReadTimeoutException
DarkAtra commented 2 months ago

I want to use your Jarvis bot to show server status and kill feed. I got this message:

CompletionException: 
com.ibasco.agql.core.exceptions.MaxAttemptsReachedException:
com.ibasco.agql.core.exceptions.ReadTimeoutException

You can test this IP 141.98.19.254:9877

I want to give a little context first before diving into what's wrong with your config. There are two ports that the discord bot can make use of: server-query-port and server-api-port

With that out of the way, you'll want to use the query port for the status embed. Note that 9877 is not correct as this is your servers api port. Refer to my previous comment on how to find the query port: https://github.com/DarkAtra/v-rising-discord-bot/issues/112#issuecomment-2124693830.

Regarding the bot companion: simply follow this guide and use 9877 as server-api-port and 141.98.19.254 as server-api-hostname.

If none of the above helps, feel free to link me your server on https://www.battlemetrics.com/servers/vrising so that it's easier for me to validate which ports you have to use.

adthonb commented 2 months ago

Sorry to make you confuse. My API port is 25570. My query port is 9877. This is my server https://www.battlemetrics.com/servers/vrising/27536305 but the IP is not correct cause I changed from VPS to a Dedicated server.

This is my ServerHostSettings.json

{
  "Name": "[TH]Meow Meow x1.5 Weekend Raid",
  "Description": "อ่านกฎใน Discord https://discord.gg/tcr3TN3m6c",
  "Port": 9876,
  "QueryPort": 9877,
  "MaxConnectedUsers": 100,
  "MaxConnectedAdmins": 4,
  "ServerFps": 30,
  "SaveName": "world1",
  "Password": "",
  "Secure": true,
  "ListOnSteam": false,
  "ListOnEOS": true,
  "AutoSaveCount": 20,
  "AutoSaveInterval": 120,
  "CompressSaveFiles": true,
  "GameSettingsPreset": "",
  "GameDifficultyPreset": "",
  "AdminOnlyDebugEvents": true,
  "DisableDebugEvents": false,
  "API": {
    "Enabled": true,
    "BindPort": 25570
  },
  "Rcon": {
    "Enabled": false,
    "Port": 25575,
    "Password": ""
  }
}
DarkAtra commented 2 months ago

Sorry to make you confuse. My API port is 25570. My query port is 9877. This is my server https://www.battlemetrics.com/servers/vrising/27536305 but the IP is not correct cause I changed from VPS to a Dedicated server.

This is my ServerHostSettings.json

{
  "Name": "[TH]Meow Meow x1.5 Weekend Raid",
  "Description": "อ่านกฎใน Discord https://discord.gg/tcr3TN3m6c",
  "Port": 9876,
  "QueryPort": 9877,
  "MaxConnectedUsers": 100,
  "MaxConnectedAdmins": 4,
  "ServerFps": 30,
  "SaveName": "world1",
  "Password": "",
  "Secure": true,
  "ListOnSteam": false,
  "ListOnEOS": true,
  "AutoSaveCount": 20,
  "AutoSaveInterval": 120,
  "CompressSaveFiles": true,
  "GameSettingsPreset": "",
  "GameDifficultyPreset": "",
  "AdminOnlyDebugEvents": true,
  "DisableDebugEvents": false,
  "API": {
    "Enabled": true,
    "BindPort": 25570
  },
  "Rcon": {
    "Enabled": false,
    "Port": 25575,
    "Password": ""
  }
}

I just double checked:

As you already said this might be caused by the fact that your server is not listed on steam. However, i'd have to verify that first, which i can't do right now.

Also, it would simplify debugging a lot if you could link me your current server on battlemetrics.

DarkAtra commented 2 months ago

@adthonb i've just confirmed that ListOnSteam has to be true - the server doesn't allow connections to the query port if it's the server is not listed on steam. i'll add that to the documentation (https://github.com/DarkAtra/v-rising-discord-bot/commit/7bb7069c689da3a1006659fa9530be5bb5bbd4ab)

adthonb commented 2 months ago

I've also confirmed that ListOnSteam must be true

adthonb commented 2 months ago

Hello, I got a new error message. NullPointerException: null

Before this error, Jarvis posts only 2 status messages. No updated PvP Kill Feed update. No Status update. My server https://www.battlemetrics.com/servers/vrising/27710147

DarkAtra commented 2 months ago

Hello, I got a new error message. NullPointerException: null

Before this error, Jarvis posts only 2 status messages. No updated PvP Kill Feed update. No Status update. My server https://www.battlemetrics.com/servers/vrising/27710147

Seems like i forgot to add the runtime hints for some bot companion related classes. This release should fix the issue: https://github.com/DarkAtra/v-rising-discord-bot/releases/tag/v2.9.2.

And there seems to be another issue with a mysterious unknown 58th vblood. This PR should fix it (but requires you to update the bot companion) -> https://github.com/DarkAtra/v-rising-discord-bot-companion/pull/20

DarkAtra commented 2 months ago

@adthonb just released https://github.com/DarkAtra/v-rising-discord-bot-companion/releases/tag/v0.5.7 as a fix for the mysterious 58th vblood

adthonb commented 1 month ago

@DarkAtra Hello, yesterday I got a new error message: NullPointerException: null. I try to update the status from DEACTIVE to ACTIVE but it still loops back to the failure state.

This is my server: https://www.battlemetrics.com/servers/vrising/27710147

DarkAtra commented 1 month ago

@DarkAtra Hello, yesterday I got a new error message: NullPointerException: null. I try to update the status from DEACTIVE to ACTIVE but it still loops back to the failure state.

This is my server: https://www.battlemetrics.com/servers/vrising/27710147

did you update the server side plugin to v0.5.7?

adthonb commented 1 month ago

@DarkAtra Hello, yesterday I got a new error message: NullPointerException: null. I try to update the status from DEACTIVE to ACTIVE but it still loops back to the failure state. This is my server: https://www.battlemetrics.com/servers/vrising/27710147

did you update the server side plugin to v0.5.7?

I had updated to v0.5.7, and after that I got this message: CompletionException: com.ibasco.agql.core.exceptions.MaxAttemptsReachedException: com.ibasco.agql.core.exceptions.ReadTimeoutException

DarkAtra commented 1 month ago

@DarkAtra Hello, yesterday I got a new error message: NullPointerException: null. I try to update the status from DEACTIVE to ACTIVE but it still loops back to the failure state. This is my server: https://www.battlemetrics.com/servers/vrising/27710147

did you update the server side plugin to v0.5.7?

I had updated to v0.5.7, and after that I got this message: CompletionException: com.ibasco.agql.core.exceptions.MaxAttemptsReachedException: com.ibasco.agql.core.exceptions.ReadTimeoutException

i'll investigate the issue when i'm home

DarkAtra commented 1 month ago

@adthonb i rolled out a fix