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

RedisBungee-Velocity (Error on connect) #43

Closed
ConnorServers opened this issue Jul 22, 2022 · 12 comments
Closed

RedisBungee-Velocity (Error on connect) #43

ConnorServers opened this issue Jul 22, 2022 · 12 comments
Assignees
Labels

Comments

@ConnorServers
Copy link

ConnorServers commented Jul 22, 2022

I compiled the latest version of RedisBungee-Velocity 0.8.0-SNAPSHOT.
Here is the jar: https://workupload.com/archive/kranAb6M
The error occurs on player connection.

[10:41:22 ERROR]: Exception in task com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityListener$$Lambda$1786/0x00000008015564f0@67dfc92 by plugin RedisBungee
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException: null key in entry: null=e53c22f7-d4e7-432a-a2af-a619741980de
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2051) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache.get(LocalCache.java:3951) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4848) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.serversToPlayers(RedisBungeeVelocityPlugin.java:372) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI.getServerToPlayers(RedisBungeeAPI.java:106) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI.getPlayersOnServer(RedisBungeeAPI.java:116) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityListener.lambda$onPluginMessage$2(RedisBungeeVelocityListener.java:248) ~[?:?]
        at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$1(VelocityScheduler.java:229) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: null key in entry: null=e53c22f7-d4e7-432a-a2af-a619741980de
        at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:30) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.collect.ImmutableMultimap$Builder.put(ImmutableMultimap.java:162) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$5.jedisTask(RedisBungeeVelocityPlugin.java:379) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$5.jedisTask(RedisBungeeVelocityPlugin.java:372) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.api.tasks.RedisTask.execute(RedisTask.java:69) ~[?:?]
        at com.imaginarycode.minecraft.redisbungee.api.tasks.RedisTask.call(RedisTask.java:23) ~[?:?]
        at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4853) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3529) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2278) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2155) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2045) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
        ... 10 more
        
@ConnorServers ConnorServers changed the title RedisBungee-Velocity RedisBungee-Velocity (Error on connect) Jul 22, 2022
@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

could you please reform the error to be like this:

error

@ConnorServers
Copy link
Author

Done.

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

could you supply logs on start or just getting me this line. something like this:

Loaded plugin redisbungee 0.8.0-SNAPSHOT-17e6e12

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

i remember fixing this error few days ago

@ConnorServers
Copy link
Author

ConnorServers commented Jul 22, 2022

[11:18:16 WARN] [redisbungee]: INSECURE setup was detected Please setup ssl for your redis instance.
[11:18:16 INFO] [redisbungee]: Loaded server id Main.
[11:18:16 INFO] [redisbungee]: RedisBungee MODE: SINGLE
[11:18:16 INFO] [redisbungee]: Successfully connected to Redis.
[11:18:16 INFO] [redisbungee]: 5.0.7 <- redis version
[11:18:16 INFO] [redisbungee]: lua manager was loaded
[11:18:16 INFO]: Loaded plugin redisbungee 0.8.0-SNAPSHOT-${git.commit.id.abbrev} by ProxioDev
[11:18:16 INFO]: Loaded plugin rootproxy 1.0 by Cody Lynn
[11:18:16 INFO]: Loaded 12 plugins

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

okay this is old version it seems try downloading latest build from here

https://github.com/ProxioDev/RedisBungee/actions

@ham1255 ham1255 added this to the 0.8.0 milestone Jul 22, 2022
@ConnorServers
Copy link
Author

Thank you.
Do I use "original-redisbungee-velocity" or the "redisbungee-velocity"

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

Without 'original word

@ConnorServers
Copy link
Author

`[12:03:52 WARN] [redisbungee]: INSECURE setup was detected Please set password for your redis instance.
[12:03:52 WARN] [redisbungee]: INSECURE setup was detected Please setup ssl for your redis instance.
[12:03:52 INFO] [redisbungee]: Loaded proxy id test-1.
[12:03:52 INFO] [redisbungee]: RedisBungee MODE: SINGLE
[12:03:52 ERROR]: Can't create plugin redisbungee
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: RuntimeException: Unable to connect to your Redis server!
    at RedisBungeeVelocityPlugin.(RedisBungeeVelocityPlugin.java:94)
    at VelocityPluginModule.configure(VelocityPluginModule.java:48)
    while locating RedisBungeeVelocityPlugin
    Learn more:
    https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
    1 error
    ======================
    Full classname legend:
    ======================
    RedisBungeeVelocityPlugin: "com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin"
    VelocityPluginModule: "com.velocitypowered.proxy.plugin.loader.java.VelocityPluginModule"
    ========================
    End of classname legend:
    ========================
    at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1103) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1138) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:121) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:151) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:343) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:221) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.Velocity.main(Velocity.java:64) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    Caused by: java.lang.RuntimeException: Unable to connect to your Redis server!
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.(RedisBungeeVelocityPlugin.java:103) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.GUICE$TRAMPOLINE() ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.apply() ~[?:?]
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    ... 6 more
    Caused by: com.imaginarycode.minecraft.redisbungee.internal.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name.
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.DefaultJedisSocketFactory.connectToFirstSuccessfulHost(DefaultJedisSocketFactory.java:63) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.DefaultJedisSocketFactory.createSocket(DefaultJedisSocketFactory.java:87) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.connect(Connection.java:180) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.initializeFromClientConfig(Connection.java:338) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.(Connection.java:53) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Jedis.(Jedis.java:214) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.JedisFactory.makeObject(JedisFactory.java:181) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.util.Pool.getResource(Pool.java:34) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.JedisPool.getResource(JedisPool.java:364) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner.(JedisSummoner.java:14) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.loadConfig(RedisBungeeVelocityPlugin.java:908) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.(RedisBungeeVelocityPlugin.java:99) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.GUICE$TRAMPOLINE() ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.apply() ~[?:?]
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    ... 6 more
    Suppressed: java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect0(Native Method) ~[?:?]
    at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]
    at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]
    at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
    at java.net.Socket.connect(Socket.java:633) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.DefaultJedisSocketFactory.connectToFirstSuccessfulHost(DefaultJedisSocketFactory.java:73) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.DefaultJedisSocketFactory.createSocket(DefaultJedisSocketFactory.java:87) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.connect(Connection.java:180) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.initializeFromClientConfig(Connection.java:338) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.(Connection.java:53) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.Jedis.(Jedis.java:214) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.JedisFactory.makeObject(JedisFactory.java:181) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.util.Pool.getResource(Pool.java:34) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.internal.jedis.JedisPool.getResource(JedisPool.java:364) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner.(JedisSummoner.java:14) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.loadConfig(RedisBungeeVelocityPlugin.java:908) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin.(RedisBungeeVelocityPlugin.java:99) ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.GUICE$TRAMPOLINE() ~[?:?]
    at com.imaginarycode.minecraft.redisbungee.RedisBungeeVelocityPlugin$$FastClassByGuice$$19733422.apply() ~[?:?]
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:296) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1100) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1138) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:121) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:151) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:343) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:221) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    at com.velocitypowered.proxy.Velocity.main(Velocity.java:64) ~[velocity.jar:3.1.2-SNAPSHOT (git-74edac96-b153)]
    [12:03:52 INFO]: Loaded plugin rootproxy 1.0 by Cody Lynn`

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

current build has changed some config internals, so you have to redo your config, and also your old config is placed inside redisbungee folder inside old_config folder

@ham1255
Copy link
Member

ham1255 commented Jul 22, 2022

was your issue solved?

@ConnorServers
Copy link
Author

Yes! seems like it, thanks.

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

No branches or pull requests

2 participants