Comments (17)
from invsync.
Huh, that's weird. It should set the up table itself. Keeping the connection open won't work because it will lock up for any other transaction. Does it work fine despite these errors?
from invsync.
No, server hangs
from invsync.
Oh, that's not good! Does this happen every time you switch servers or just occasionally?
from invsync.
Oh, that's not good! Does this happen every time you switch servers or just occasionally?
Just occasionally. Also i suggest to implement some features from HuskSync https://www.spigotmc.org/resources/husksync-1-16-1-17-1-18-synchronize-player-inventories-data-cross-server.97144/ . That would be sweet but i understand it would be much harder and time-costly
from invsync.
Sorry the link doesn't work for me. Could you please request specific things? Maybe make a new issue for them also.
Im not really sure what to do about the issue here tho. The error doesn't really have much useful. You said you manually created all the columns in the table? Why?
from invsync.
Sorry the link doesn't work for me. Could you please request specific things? Maybe make a new issue for them also.
https://github.com/WiIIiam278/HuskSync yeap, definitly out of scope of this issue
Im not really sure what to do about the issue here tho. The error doesn't really have much useful. You said you manually created all the columns in the table? Why?
I don't remember exactly why. Maybe i encountered issue and thought it's the safest and quickest way. Maybe i should close this issue until i get more info about what's going on.
from invsync.
You can leave it open, but yeah I don't really have a lot to go on with this. Maybe you could try setting up a test server and see if you can reproduce the issue? Again the database should set it self up, so if that's not working there might be other things that need to be fixed.
from invsync.
Again the database should set it self up
Checked it again, no issues. It works.
from invsync.
So is this issue no longer a problem?
from invsync.
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: java.sql.SQLException: No operations allowed after statement closed.
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:82)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.StatementImpl.setQueryTimeout(StatementImpl.java:1896)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at mrnavastar.sqlib.util.SqlManager.endTransaction(SqlManager.java:62)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at mrnavastar.sqlib.api.databases.Database.endTransaction(Database.java:28)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at mrnavastar.sqlib.api.Table.endTransaction(Table.java:55)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at mrnavastar.invsync.InvSync.lambda$onInitialize$1(InvSync.java:58)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents.lambda$static$4(ServerPlayConnectionEvents.java:59)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at net.fabricmc.fabric.impl.networking.server.ServerPlayNetworkAddon.invokeDisconnectEvent(ServerPlayNetworkAddon.java:140)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at net.fabricmc.fabric.impl.networking.AbstractNetworkAddon.handleDisconnect(AbstractNetworkAddon.java:131)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at net.minecraft.class_2535.handler$ejj000$handleDisconnect(class_2535.java:1590)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at net.minecraft.class_2535.channelInactive(class_2535.java)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:831)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Unknown Source)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: Caused by: com.mysql.cj.exceptions.StatementIsClosedException: No operations allowed after statement closed.
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:85)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.StatementImpl.checkClosed(StatementImpl.java:336)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: at com.mysql.cj.jdbc.StatementImpl.setQueryTimeout(StatementImpl.java:1889)
[17:00:39] [Netty Epoll Server IO #20/INFO]: [STDERR]: ... 43 more
from invsync.
Okay so this is still an issue
from invsync.
This happens for me reproducable, if I have 2 servers up and running, and then afterwards installing the InvSync mod. It does not happen on newly created server instances when the mod is already installed.
Tested on 1.19.2 and with both SQLITE and MySQL
from invsync.
Ah interesting. I'm not sure adding support for pre-existing servers is really a viable option however. How is the system supposed to know which server to sync items from? On a clean install it doesn't matter, cause both servers are blank. But on used ones one server needs to be over written. I'm guessing this has something to do with the issue, but I'm not sure how to go about resolving it.
Non the less Thank you for the reproduction steps, I will give them a try and see what I can come up with.
from invsync.
If you push your latest changes, I can have a look too and figure out what might be causing this issue, if you want to
from invsync.
Same issue as #54
from invsync.
Fixed in new release
from invsync.
Related Issues (20)
- Synchronization players statistics. HOT 1
- How to configure profiles? HOT 4
- [Suggestion] Add FTB mods support HOT 3
- [Suggestion] Add Trinkets mods support
- Lost data on any event other than proper disconnect. Synchronize all every now and then. HOT 3
- Lags on players join HOT 2
- Works only with fabric servers? HOT 1
- Dependency Dashboard
- Crash on player join HOT 3
- [Ask] InvSync on single player world HOT 1
- Add names servers and rules for this? HOT 1
- Issue with switching servers and InvSync HOT 2
- Database connection closed on player disconnect HOT 4
- Sync Advancement Crashes HOT 2
- Don't clear player data
- [Suggestion] Add Travelers backpack mods support
- 1.19.4 support ? HOT 5
- 1.20.1 Support please HOT 9
- Periodic saves HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invsync.