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

Error querying the server when using authentication mod #173

Open
Andision opened this issue Mar 29, 2024 · 1 comment
Open

Error querying the server when using authentication mod #173

Andision opened this issue Mar 29, 2024 · 1 comment

Comments

@Andision
Copy link

When using some auth mod like AuthMe, it will return ERROR Error querying the server, waiting 5m.... This seems to be because the mc-monitor try to query the player count by port 25565, but this action need authentication. The debug information is below

++ mc-monitor status --host caz --port 25565 --show-player-count
+ PLAYERS_ONLINE='2024-03-29T15:14:43.236Z      DEBUG   mc-monitor/java_status.go:82    pinging
2024-03-29T15:14:43.237Z        DEBUG   mc-monitor/java_status.go:85    ping returned   {"error": "could not connect to Minecraft server: dial tcp 172.22.0.2:25565: connect: connection refused", "info": null}
failed to ping caz:25565 : could not connect to Minecraft server: dial tcp 172.22.0.2:25565: connect: connection refused'
+ log ERROR 'Error querying the server, waiting 5m...'
+ '[' 2 -lt 1 ']'
+ local level=ERROR
+ shift
+ valid_levels=('INFO' 'WARN' 'ERROR' 'INTERNALERROR')
+ local valid_levels
+ is_elem_in_array ERROR INFO WARN ERROR INTERNALERROR
+ '[' 5 -lt 2 ']'
+ local element=ERROR
+ shift
+ local e
+ for e in "$@"
+ '[' ERROR == INFO ']'
+ for e in "$@"
+ '[' ERROR == WARN ']'
+ for e in "$@"
+ '[' ERROR == ERROR ']'
+ return 0
+ '[' 1 -ge 1 ']'
+ cat -
+ awk -v level=ERROR '{ printf("%s %s %s\n", strftime("%FT%T%z"), level, $0); fflush(); }'
2024-03-29T15:14:43+0000 ERROR Error querying the server, waiting 5m...
+ '[' ERROR == INTERNALERROR ']'
+ sleep 5m

@itzg
Copy link
Owner

itzg commented Mar 29, 2024

Interesting. Do you mind locating any documentation about AuthMe's changes to the Minecraft protocol?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants