LogBlock problem?

Discussion in 'Bukkit Help' started by Danimal, Jun 17, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Danimal

    I downloaded the plugin LogBlock a few days ago on my server to use as a rollback plugin. To install it I put the Jar file in the plugins folder then started the server. Now every time the server starts it has this error or message.

    07:08:36 [INFO] [LogBlock] [LogBlock] Version check: Your version is up to date
    07:08:36 [INFO] [LogBlock] [LogBlock] Connecting to username@jdbc:mysql://localhost:3306/minecraft...
    07:08:36 [SEVERE] [LogBlock] [LogBlock] Error while fetching connection:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at de.diddiz.util.MySQLConnectionPool.getConnection(MySQLConnectionPool.java:73)
    at de.diddiz.LogBlock.LogBlock.getConnection(LogBlock.java:266)
    at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:96)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:218)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:218)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
    ... 23 more
    If I log into my server and do the /Lb command it gives me this "No database connected. Check your MySQL user/pw and database for typos. start/restart your MySQL server."
    If anyone knows about MySQL please post on this thread, I would like to solve this problem so I can use LogBlock on my server.
    Thanks
     
  2. Offline

    stevevbrewer

    You need to add your MySQL database login details to the config.yml. It needs MySQL to run.
     
  3. Offline

    Danimal

    It already does have that, it comes default, but it does not seem to work.
     
  4. Offline

    stevevbrewer

    But you need to add your own MySQL database login details. It's trying to login to the dummy settings entered in LogBlock's config by default which is 'username' at 'localhost' with database name 'minecraft'. This won't exist if you don't have a database on the local machine with that name, username and password setup.
     
  5. Offline

    junebugjump

    We just started getting this EXACT same error today... It's been working up until now just fine, in fact was working earlier today. I've changed nothing on the server at all.... I did a hard restart of the server and that did not help either.

    Hopefully, someone will respond with a suggestion that isn't change the default settings. And, yes, I did double check the config to make sure that I wasn't being a blow-hard. It's rather upsetting actually.
     
Thread Status:
Not open for further replies.

Share This Page