EssentialsX

EssentialsX

2M Downloads

EssentialsDiscord stuck on logging in (in Docker)

GGORG0 opened this issue · 34 comments

commented

Type of bug

Other unexpected behaviour

/ess dump all output

(The server doesn't start up)

Error log (if applicable)

No response

Bug description

When starting up the server, EssentialsDiscord is stuck on

[14:48:36 INFO]: [EssentialsDiscord] Enabling EssentialsDiscord v2.19.0
[14:48:36 INFO]: [EssentialsDiscord] Starting Metrics. Opt-out using the global bStats config.
[14:48:36 INFO]: [EssentialsDiscord] Attempting to login to Discord...

and doesn't let the server start up. My config: https://paste.gg/p/anonymous/16ac52acb4b04fa99f94c75d3b80fc8c .
EssentialsX and EssentialsDiscord verison: 2.19.0 stable
Server: Paper 1.17.1-391

Steps to reproduce

  1. Use my config and invite the bot using https://essentialsx.net/wiki/Discord-Tutorial.html
  2. Start the server up.

Expected behaviour

The server starts up and the bot works.

Actual behaviour

The plugin is stuck.

commented

Well, it works in docker on my machine. Also, the same goes for command tab completion. I think something is wrong with my VPS...

Well, yes there is something wrong with my VPS, because it works in docker on my PC, and it doesn't work on the VPS even if I run it manually. The VPS is running Ubuntu Server 20.04 and my PC is running Arch Linux.

commented

I'm having the same issue, stuck loggin in but we're running docker containers on kubernetes

commented

This issue also exists when running docker containers from Pterodactyl panel.

commented
commented

Can you please try the latest dev build and see if you still have the issue?

commented

Ok.

commented

@JRoy Any news?

commented

No, unfortunately the issue it still there on Essentials/EssentialsDiscord v2.19.1-dev+52-41861a8
Also, sorry for late replies :).

commented

Where is it?

commented

@GGORG0 can you share you're entire latest.log

commented

logs/latest.log

commented

Oh ok, I thought it was somewhere in the plugins folder. Here: https://paste.gg/p/anonymous/8bdbcd61369c436f86eadb63d1ec6f2c

commented

Oh ok, I thought it was somewhere in the plugins folder. Here: paste.gg/p/anonymous/8bdbcd61369c436f86eadb63d1ec6f2c

Can you stop your server, enable debug in server.properties, enable debug in plugins/Essentials/config.yml, start your server and then share your startup log

commented

Also, I don't know if that matters, but I use https://github.com/itzg/docker-minecraft-server/ . I'll share the debug logs in a minute.

commented

Oh ok, I thought it was somewhere in the plugins folder. Here: paste.gg/p/anonymous/8bdbcd61369c436f86eadb63d1ec6f2c

Can you stop your server, enable debug in server.properties, enable debug in plugins/Essentials/config.yml, start your server and then share your startup log

Here: https://paste.gg/p/anonymous/a81d255516974cb3976f996d5e112ed6

commented

@JRoy Any news?

can you reproduce this on your local machine and outside the docker environment

commented

I was doing this right now (just finished downloading the files)

commented

Well, it works on my machine without docker....

commented

Well, it works on my machine without docker....

In that case it's probably something firewall related blocking the websocket connection to discord.

commented

Oh, so what could I do?

commented

Oh, so what could I do?

No idea, I'm not that familiar with docker.

commented

Well, it works in docker on my machine. Also, the same goes for command tab completion. I think something is wrong with my VPS...

commented

I also have this issue, working on my computer but does not work in a docker container

commented

i have the same thing with pterodactyl like WiseHollow

commented

I am using PufferPanel in Docker and experience the same issue.

Server: Paper-398 (MC: 1.17.1)
Plugins:

  • Dynmap 3.2.1
  • EssentialsX-2.19.1-dev+52-41861a8
  • EssentialsXChat-2.19.1-dev+52-41861a8
  • EssentialsXDiscord-2.19.1-dev+52-41861a8
  • EssentialsXSpawn-2.19.1-dev+52-41861a8
  • floodgate-spigot-53
  • Geyser-Spigot-957
  • LuckPerms-Bukkit-5.3.87
  • Vault-1.7.3
commented

Also, if that matters, I use Docker CE version 20.10.11, build dea9396

commented

can confirm this is happening to me as well with pterodactly

commented

Likely an issue with single core systems

Related to discord-jda/JDA#1858

commented

Likely an issue with single core systems

Related to DV8FromTheWorld/JDA#1858

Thank you for that link. You're correct. There is a workaround until OpenJDK fixes this issue. Use this within your startup parameters when launching your server jar file.

-Djava.util.concurrent.ForkJoinPool.common.parallelism=1

For example, here is my Pterodactyl startup command-

java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -jar {{SERVER_JARFILE}}

commented

This workaround worked for us.

commented

The dev build 5f98d3f which contains #4711 does not fix the issue for me. I still need to use the workaround.

This line from the console in Pufferpanel seems to contain version information.
System Info: Java 17 (OpenJDK 64-Bit Server VM 17+35-Ubuntu-120.04) Host: Linux 5.10.81+truenas (amd64)
Maybe the check used in the mitigation does not work here? The info message does not appear in the log at all.

commented

This issue is still not fixed and should be re-opened.

commented

This issue is still not fixed and should be re-opened.

Can you elaborate? What isn't fixed. If you mean the JDK bug itself, that isn't on us and you should use existing workarounds until further notice. Don't solely rely on the mitigations in place.

commented

This issue is still not fixed and should be re-opened.

@ciubciubpl This is an OpenJDK bug, there's nothing we can do about it. You need to update your Java runtime to 17.0.2 or later.