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

IP address not updates after recreate minecraft's server docker container #376

Open
andreypfau opened this issue Nov 20, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@andreypfau
Copy link

I have all minecraft servers in docker containers.

My velocity plasmovoice/config.yml

[servers]
vanilla = "pfaumc-vanilla-1:25565"

[host]
ip = "0.0.0.0"
port = 25565

After recreating of docker container named as pfaumc-vanilla-1 internal IP address of container changes, but velocity plasmovoice still try to connect to old IP

How to fix?

Change one-time resolving of IP address, need to resolve IP server dynamicly (maybe with cache with 1 minute timeout)

@andreypfau
Copy link
Author

InetSocketAddress serverAddress = AddressUtil.resolveAddress((InetSocketAddress) serverInfo.getAddress());

Here address resolves only on starting of velocity, and not updates later

@Apehum Apehum added the bug Something isn't working label Nov 22, 2023
@Apehum Apehum self-assigned this Nov 22, 2023
@andreypfau
Copy link
Author

Any updates?

@Apehum
Copy link
Member

Apehum commented Dec 30, 2023

Should be fixed in 2.1.0 by this commit ca6ce2e

Prerelease is available here:
https://github.com/plasmoapp/plasmo-voice/releases/tag/2.1.0-SNAPSHOT

@andreypfau
Copy link
Author

Should be fixed in 2.1.0 by this commit ca6ce2e

Prerelease is available here: https://github.com/plasmoapp/plasmo-voice/releases/tag/2.1.0-SNAPSHOT

[13:14:48 ERROR]: Couldn't pass ProxyInitializeEvent to plasmovoice
2024-01-23T13:14:48.261984898Z java.lang.IllegalStateException: bStats Metrics class has not been relocated correctly!
2024-01-23T13:14:48.261988013Z 	at org.bstats.MetricsBase.checkRelocation(MetricsBase.java:251) ~[?:?]
2024-01-23T13:14:48.261990398Z 	at org.bstats.MetricsBase.<init>(MetricsBase.java:121) ~[?:?]
2024-01-23T13:14:48.261992903Z 	at org.bstats.velocity.Metrics.<init>(Metrics.java:84) ~[?:?]
2024-01-23T13:14:48.261995157Z 	at org.bstats.velocity.Metrics.<init>(Metrics.java:18) ~[?:?]
2024-01-23T13:14:48.261997421Z 	at org.bstats.velocity.Metrics$Factory.make(Metrics.java:49) ~[?:?]
2024-01-23T13:14:48.261999605Z 	at su.plo.voice.velocity.VelocityVoiceProxy.onProxyInitialization(VelocityVoiceProxy.kt:51) ~[?:?]
2024-01-23T13:14:48.262001749Z 	at su.plo.voice.velocity.Lmbda$3.execute(Unknown Source) ~[?:?]
2024-01-23T13:14:48.262003933Z 	at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity-3.3.0-SNAPSHOT-343.jar:3.3.0-SNAPSHOT (git-b9b11665-b343)]
2024-01-23T13:14:48.262007079Z 	at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:597) ~[velocity-3.3.0-SNAPSHOT-343.jar:3.3.0-SNAPSHOT (git-b9b11665-b343)]
2024-01-23T13:14:48.262009463Z 	at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:478) ~[velocity-3.3.0-SNAPSHOT-343.jar:3.3.0-SNAPSHOT (git-b9b11665-b343)]
2024-01-23T13:14:48.262011818Z 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
2024-01-23T13:14:48.262013992Z 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
2024-01-23T13:14:48.262016126Z 	at java.lang.Thread.run(Thread.java:840) [?:?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants