ValioBungee
ValioBungee copied to clipboard
Redis stops working
Hello, these last few days I have been having problems with the redis of one of the proxies stops working and then everything breaks out of nowhere one stops working and I want to see if you can help me because it has already happened to me 4 times this week
I don't have logs because no error appears in the console
What version of redis bungee you are running
Seems similar to #91
RedisBungee-Bungee-0.11.3-SNAPSHOT-all and Redis-7
can you try the development branch https://github.com/ProxioDev/RedisBungee/tree/dev/0.12.0/update
since it has updated Jedis + new data system inside it
Okay
I put that version and the folder is not generated, what can I do?
I put that version and the folder is not generated, what can I do?
when you compile run ./gradlew clean shadowJar then if you use bungeecord go to folder RedisBungee-Bungee/build /libs/RedisBungee-Bungee-VERSION-all.jar
The folder is still not generated and this error appears when turning off the proxy
[15:46:46 ERROR]: Exception disabling plugin RedisBungee java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "com.imaginarycode.minecraft.redisbungee.api.ProxyDataManager.close()" because "this.proxyDataManager" is null at com.imaginarycode.minecraft.redisbungee.RedisBungee.stop(RedisBungee.java:279) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.onDisable(RedisBungee.java:316) ~[?:?] at net.md_5.bungee.BungeeCord.independentThreadStop(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCord.access$000(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCord$5.run(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] Caused by: java.lang.NullPointerException: Cannot invoke "com.imaginarycode.minecraft.redisbungee.api.ProxyDataManager.close()" because "this.proxyDataManager" is null at com.imaginarycode.minecraft.redisbungee.RedisBungee.stop(RedisBungee.java:277) ~[?:?] ... 4 more
this error isn't useful because it shows when plugin is disabled can you provide full logs?
yes -> https://mclo.gs/ecJBaJr
seems like BUILDING issue, I am not sure why @build_date@ didn't get replaced pre-compile to its value
[17:58:50] [main/WARN]: Exception encountered when loading plugin: RedisBungee
java.lang.ExceptionInInitializerError: null
at com.imaginarycode.minecraft.redisbungee.RedisBungee.initialize(RedisBungee.java:196) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.RedisBungee.onEnable(RedisBungee.java:311) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
at net.md_5.bungee.BungeeCord.start(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
at net.md_5.bungee.BungeeCordLauncher.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
at net.md_5.bungee.Bootstrap.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
Caused by: java.lang.NumberFormatException: For input string: "@build_date@"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Long.parseLong(Long.java:711) ~[?:?]
at java.lang.Long.parseLong(Long.java:836) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.Constants.<clinit>(Constants.java:18) ~[?:?]
... 6 more
anyways try download this build from https://github.com/ProxioDev/RedisBungee/actions/runs/8023318681
Ok, I'll try
[18:46:58 WARN]: Exception encountered when loading plugin: RedisBungee
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:89) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.connect(Connection.java:194) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.initializeFromClientConfig(Connection.java:392) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.
The folder was generated but only with the config.yml and not the other message file and that error appears
on development branch config file version changed you have to redo your config
from the redis server?
I already put everything in the plugin config
not the redis server,
config of redisbungee on 0.12.0 has changed which resets the old config file with backup stored in the BACKUP folder inside redisbungee plugin folder
also https://github.com/ProxioDev/RedisBungee/actions/runs/8023929440 try this build because config versioning issue
[19:21:11 INFO] [RedisBungee]: Initializing RedisBungee..... [19:21:11 INFO] [RedisBungee]: Version: 0.12.0-SNAPSHOT [19:21:11 INFO] [RedisBungee]: Build date: 2024-02-23T19:11:50.000+0000 [19:21:11 INFO] [RedisBungee]: Loaded proxy id Proxy-Devs [19:21:11 INFO] [RedisBungee]: handle reconnect to last server: false [19:21:11 INFO] [RedisBungee]: handle motd: true [19:21:11 INFO] [RedisBungee]: RedisBungee MODE: SINGLE [19:21:11 INFO] [RedisBungee]: Successfully connected to Redis. [19:21:12 INFO] [RedisBungee]: Redis server version: 7.0.11 [19:21:12 ERROR] [RedisBungee]: Your version of Redis (7.0.11) is not at least version 3.0 RedisBungee requires a newer version of Redis. [19:21:12 WARN]: Exception encountered when loading plugin: RedisBungee java.lang.RuntimeException: Unsupported Redis version detected at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils$1.unifiedJedisTask(InitialUtils.java:33) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils$1.unifiedJedisTask(InitialUtils.java:22) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.tasks.RedisTask.execute(RedisTask.java:59) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils.checkRedisVersion(InitialUtils.java:44) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.initialize(RedisBungee.java:246) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.onEnable(RedisBungee.java:306) ~[?:?] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCord.start(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCordLauncher.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.Bootstrap.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
fixed that issue Try this build https://github.com/ProxioDev/RedisBungee/actions/runs/8024457325
[19:21:11 INFO] [RedisBungee]: Initializing RedisBungee..... [19:21:11 INFO] [RedisBungee]: Version: 0.12.0-SNAPSHOT [19:21:11 INFO] [RedisBungee]: Build date: 2024-02-23T19:11:50.000+0000 [19:21:11 INFO] [RedisBungee]: Loaded proxy id Proxy-Devs [19:21:11 INFO] [RedisBungee]: handle reconnect to last server: false [19:21:11 INFO] [RedisBungee]: handle motd: true [19:21:11 INFO] [RedisBungee]: RedisBungee MODE: SINGLE [19:21:11 INFO] [RedisBungee]: Successfully connected to Redis. [19:21:12 INFO] [RedisBungee]: Redis server version: 7.0.11 [19:21:12 ERROR] [RedisBungee]: Your version of Redis (7.0.11) is not at least version 3.0 RedisBungee requires a newer version of Redis. [19:21:12 WARN]: Exception encountered when loading plugin: RedisBungee java.lang.RuntimeException: Unsupported Redis version detected at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils$1.unifiedJedisTask(InitialUtils.java:33) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils$1.unifiedJedisTask(InitialUtils.java:22) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.tasks.RedisTask.execute(RedisTask.java:59) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.util.InitialUtils.checkRedisVersion(InitialUtils.java:44) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.initialize(RedisBungee.java:246) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.onEnable(RedisBungee.java:306) ~[?:?] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCord.start(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCordLauncher.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.Bootstrap.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown]
Ok, I'll try
[21:18:31 WARN]: Exception encountered when loading plugin: RedisBungee
com.imaginarycode.minecraft.redisbungee.internal.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.flush(Connection.java:340) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.getStatusCodeReply(Connection.java:267) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.helloOrAuth(Connection.java:492) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.initializeFromClientConfig(Connection.java:401) ~[?:?]
at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.
No, that was an error, I put the ssl Sorry, but it still doesn't work, I'm in the dev proxy tested with the same redis as the normal server but the people in the devs don't appear
if you seen last messages, this development branch that has new data system its event based which can't see old format you have to apply it to all proxies #86
[21:18:31 WARN]: Exception encountered when loading plugin: RedisBungee com.imaginarycode.minecraft.redisbungee.internal.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.flush(Connection.java:340) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.getStatusCodeReply(Connection.java:267) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.helloOrAuth(Connection.java:492) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.initializeFromClientConfig(Connection.java:401) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.(Connection.java:67) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.ConnectionFactory.makeObject(ConnectionFactory.java:59) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.create(GenericObjectPool.java:566) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:306) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.commonspool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:233) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.util.Pool.getResource(Pool.java:38) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.ConnectionPool.getResource(ConnectionPool.java:29) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.ConnectionPool.getResource(ConnectionPool.java:7) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.providers.PooledConnectionProvider.getConnection(PooledConnectionProvider.java:68) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.executors.DefaultCommandExecutor.executeCommand(DefaultCommandExecutor.java:23) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.UnifiedJedis.executeCommand(UnifiedJedis.java:250) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.UnifiedJedis.set(UnifiedJedis.java:718) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.summoners.JedisPooledSummoner.(JedisPooledSummoner.java:37) ~[?:?] at com.imaginarycode.minecraft.redisbungee.api.config.loaders.ConfigLoader.loadConfig(ConfigLoader.java:131) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.initialize(RedisBungee.java:210) ~[?:?] at com.imaginarycode.minecraft.redisbungee.RedisBungee.onEnable(RedisBungee.java:306) ~[?:?] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCord.start(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.BungeeCordLauncher.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] at net.md_5.bungee.Bootstrap.main(Unknown Source) ~[XCord.jar:git:Travertine-Bootstrap:1.19-R0.1-SNAPSHOT:f2b718f:unknown] Caused by: java.net.SocketTimeoutException: Read timed out at sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:288) ~[?:?] at sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:314) ~[?:?] at sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355) ~[?:?] at sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:808) ~[?:?] at java.net.Socket$SocketInputStream.read(Socket.java:966) ~[?:?] at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484) ~[?:?] at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478) ~[?:?] at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160) ~[?:?] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:111) ~[?:?] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1510) ~[?:?] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1425) ~[?:?] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455) ~[?:?] at sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:925) ~[?:?] at sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1295) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.util.RedisOutputStream.flushBuffer(RedisOutputStream.java:57) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.util.RedisOutputStream.flush(RedisOutputStream.java:138) ~[?:?] at com.imaginarycode.minecraft.redisbungee.internal.jedis.Connection.flush(Connection.java:337) ~[?:?] ... 23 more
generally any error related to socket time out or connection refused is probably your connection is bad to the redis server or wrong configuration etc
I was able to fix that, what happens to me is the last thing I said below
I was able to fix that, what happens to me is the last thing I said below
?
No, that was an error, I put the ssl Sorry, but it still doesn't work, I'm in the dev proxy tested with the same redis as the normal server but the people in the devs don't appear
this
if you seen last messages, this development branch that has new data system its event based which can't see old format you have to apply it to all proxies #86
like i said above you have to update all proxies because development branch for 0.12.0 can't see proxies on 0.11.x or lower due the new data format
ok this afternoon I'll change it and if something doesn't go right or something happens I'll let you know.