Inactive [ADMN/SEC] AuthDB v2.3.6 - Database authentication and protection [1.1-1.4.5]

Discussion in 'Inactive/Unsupported Plugins' started by CraftFire, Mar 13, 2011.

  1. Offline

    CraftFire

    In order to centralize support of our legacy projects, we will no longer be providing support on Bukkit. Please use www.spout.org for support with our projects going forward.
     
  2. Offline

    Wulfspider

    You could try adding load: startup to the plugin.yml inside the AuthDB.jar and see if that makes any difference.
     
  3. Offline

    Massimo1993

    what? 0.o
     
  4. Offline

    Wulfspider

    You open your AuthDB.jar with a zip program of some sort, and replace the plugin.yml content with this: http://pastie.org/2618937. Try that and see if it works.
     
  5. Offline

    Massimo1993

    tnks it works, you need to post this as a fix u.u
     
  6. Offline

    Wulfspider

    It will be in the next version. :)
     
  7. Offline

    BlancoLanda

    @Wulfspider

    Code:
    20:32:41 [GRAVE] Could not load 'plugins\AuthDB.jar' in folder 'plugins':
    java.lang.ExceptionInInitializerError
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:176)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:175)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:213)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Error
     constructing com.avaje.ebeaninternal.server.core.DefaultServerFactory
            at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFac
    tory.java:114)
            at com.avaje.ebean.EbeanServerFactory.<clinit>(EbeanServerFactory.java:5
    7)
            ... 10 more
    Caused by: java.lang.IllegalArgumentException: Error constructing com.avaje.ebea
    ninternal.server.core.DefaultServerFactory
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:107)
    
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:94)
            at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFac
    tory.java:112)
            ... 11 more
    Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Documen
    ts and Settings\Martín\Mis documentos\minecraft_server\craftbukkit-0.0.1-SNAPSH
    OT.jar (El sistema no puede hallar la ruta especificada)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigL
    oader.java:121)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.load(XmlConfigLoa
    der.java:78)
            at com.avaje.ebeaninternal.server.core.DefaultServerFactory.<init>(Defau
    ltServerFactory.java:91)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
            at java.lang.Class.newInstance0(Class.java:372)
            at java.lang.Class.newInstance(Class.java:325)
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:104)
    
            ... 13 more
    Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Martín\Mis
    documentos\minecraft_server\craftbukkit-0.0.1-SNAPSHOT.jar (El sistema no puede
    hallar la ruta especificada)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(ZipFile.java:214)
            at java.util.zip.ZipFile.<init>(ZipFile.java:144)
            at java.util.jar.JarFile.<init>(JarFile.java:152)
            at java.util.jar.JarFile.<init>(JarFile.java:116)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.checkJar(XmlConfi
    gLoader.java:176)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigL
    oader.java:110)
            ... 22 more
    This happens to me with latest AuthDB RB (Also with latest Dev Build), I tried executing server without any other plugins or executing server with only .jar (without config file) etc. and the same... How can I fix this?
     
  8. Offline

    Wulfspider

    Looks like the symbols in your directory are messing things up. Try running the server from another location.
     
  9. Offline

    Torados

    Got the same error.
    Have to set the "authdb.*" in bpermissions, that all my players can login.
    OPs can login without any problems. "Normal" user become a "wrong password blah" without the permission-node.

    I have disabled the other permission-nodes.
    Like this way:

    Code:
    authdb.*: true
    authdb.link.*: false
    authdb.unlink.*: false
    authdb.admin.*: false
    Not the finest way, but it works atm.
    Hope this will be fixed.

    Running on:
    AuthDB v2.3.2
    CraftBukkit #1231
    bPermissions v1.2
    Simple Machines v2.0


    **BTW**
    authDB doesn`t load up new registered Users from the forum.
    The "keep alive"-option set to true makes no different.
    I have to reload the plugins to get the new player into the authdb database.
    that makes no sense.
     
  10. Offline

    Wulfspider

    These are not valid nodes are not in our source:
    authdb.link.*: false
    authdb.unlink.*: false
    authdb.admin.*: false
    The correct nodes are listed here and linked from our OP: http://wiki.bukkit.org/AuthDB/Permissions.

    The keepalive option only keeps each connection alive. It isn't how you think it works.

    I'll look into the sync issue, but I haven't encountered that yet. Did you modify your bukkit.yml file at all?
     
  11. Offline

    Aus

    Thanks!
    Any success?
     
  12. Offline

    Wulfspider

    I haven't been able to recreate it. Tested with the last builds of AuthDB and released build, but I have no issues, timeouts, or crashes.

    Are you using a dev CraftBukkit build?
     
  13. Offline

    Aus

    Yes. CB 1231

    If crash doesn`t repeat for you, I dunno what to do.
    Any thoughts of possible cures? Or thoughts about possible causes of problem

    Solved. Deleted folder and let AuthDB to make a new one.
    Which of files caused the crash i unknown. Maybe will figure out lately

    Sorry for disturbing

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  14. Offline

    Wulfspider

    No problem. If you figure anything else, let me know.
     
  15. Offline

    Torados

    I know that these nodes are not correct. That was an example, because i was too busy to write the correct one ^^

    I have nothing modified inside the bukkit.yml.
    Do i have to ? :confused:
    I have only changed the mysql settings in the basic.yml and advanced.yml.
     
  16. Offline

    Wulfspider

    Where are you modifying those nodes at, in the plugin.yml? You don't even need to do that, you just disable linking and unlinking in the advanced.yml.

    No, modifying the bukkit.yml sometimes causes problems with the database. That is why I was asking.
     
  17. Offline

    Charant

    I found a strange bug plugin. The server runs fine for a while and then suddenly freezes absolutely no errors. Only messages "Readed timed out" and "Connection reset". If you remove AuthDB - everything is stable. The same problem is not just me, but other administrators, I know.

    I found this bug when I came Bukkit to version 1.8. Yesterday I used the latest version of Bukkit and AuthDB v2.3.2
     
    aymanh likes this.
  18. Offline

    trash0

    Hi. There is a serious bug when player's username is in Russian. plugin halt the server
    Code:
    2011-10-07 02:11:10 [INFO] [AuthDB] Launching function: checkTimeout(Player player))
    2011-10-07 02:11:33 [INFO] Whitelist: Player Треш is trying to join...
    2011-10-07 02:11:33 [INFO] Whitelist: Illegal characters in player name, disallow!
    2011-10-07 02:11:33 [INFO] kick!
    2011-10-07 02:12:04 [SEVERE] Could not pass event PLAYER_LOGIN to AuthDB
    java.lang.StackOverflowError
            at org.sqlite.PrepStmt.setLong(PrepStmt.java:201)
            at com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement.setLong(ExtendedPreparedStatement.java:304)
            at com.avaje.ebeaninternal.server.type.DataBind.setLong(DataBind.java:90)
            at com.avaje.ebeaninternal.server.type.ScalarTypeLong.bind(ScalarTypeLong.java:44)
            at com.avaje.ebeaninternal.server.type.ScalarTypeLong.bind(ScalarTypeLong.java:34)
            at com.avaje.ebeaninternal.server.deploy.BeanProperty.bind(BeanProperty.java:663)
            at com.avaje.ebeaninternal.server.persist.dml.DmlHandler.bindInternal(DmlHandler.java:265)
            at com.avaje.ebeaninternal.server.persist.dml.DmlHandler.bind(DmlHandler.java:224)
            at com.avaje.ebeaninternal.server.persist.dmlbind.BindableProperty.dmlBind(BindableProperty.java:100)
            at com.avaje.ebeaninternal.server.persist.dmlbind.BindableProperty.dmlBind(BindableProperty.java:82)
            at com.avaje.ebeaninternal.server.persist.dmlbind.BindableList.dmlBind(BindableList.java:69)
            at com.avaje.ebeaninternal.server.persist.dml.InsertMeta.bind(InsertMeta.java:164)
            at com.avaje.ebeaninternal.server.persist.dml.InsertHandler.bind(InsertHandler.java:130)
            at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:98)
            at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.insert(DmlBeanPersister.java:76)
            at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeInsertBean(DefaultPersistExecute.java:91)
            at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:527)
            at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:557)
            at com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:404)
            at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:377)
            at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361)
            at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308)
            at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)
            at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1577)
            at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1567)
            at com.authdb.util.databases.EBean.save(EBean.java:81)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:62)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
            at com.authdb.util.databases.EBean.checkPlayer(EBean.java:63)
            at com.authdb.util.databases.EBean.sync(EBean.java:93)
    When player name is in English language - then it is ok! There is no bug!
    When i disable the plugin AuthDB.jar - player succesfully log in with Russian username.

    P.S. Sorry for bad english (
     
  19. Offline

    Wulfspider

    Don't use Russian characters right now then? :p
    I'll see what we can do about it.
     
  20. Offline

    trash0

    See please, because i am not using it, but random player uses ! :) And I host server in Russia )))
    Please give workaround or something to fix this ... it is very important to our server!

    Whitelist plugin must kick the player before the player pass the authdb plugin. But i cannot understood how to change plugin load order or something.

    And thx for fast reply!
     
  21. Offline

    Wulfspider

    You could request that they use a valid username, being as real accounts don't allow it I believe. :p
    You could try adding the character to the filter, but I'm not sure that will work. Unsupported languages have unseen issues with Minecraft ya know.

    You could set AuthDB to softdepend on the whitelist plugin by editing the plugin.yml in AuthDB.jar and adding your whitelist plugin name to the softdepend: [Spout,Whitelist] like that or similar.

    You could also set the whitelist plugin to load on startup instead of after the world is loaded, by adding load: startup to its plugin.yml.
     
  22. Offline

    trash0

    None of this things helped to me.
    Because anyone can take the server down with simple username change to unsupported characters, i think it is a serious security issue and it must be fixed in first place.
     
  23. Offline

    Wulfspider

    We'll see what we can do.
     
  24. Offline

    trash0

    I can't download development builds.
    ci.craftfire.com seems to block my requests.
    Also i can't download anything from repo.craftfire.com to rebuild the plugin from your sources
     
  25. Offline

    Wulfspider

    Both are currently down right now. I'm working on getting them back up.
     
  26. Offline

    aymanh

    Uppercase username on smf isn't working.

    i have same thing.Gives me lag small amounts of lags.
    "I found a strange bug plugin. The server runs fine for a while and then suddenly freezes absolutely no errors. Only messages "Readed timed out" and "Connection reset". If you remove AuthDB - everything is stable. The same problem is not just me, but other administrators, I know."
     
  27. Offline

    rom_t

    I'm sorry but... I'm lost.

    I do have MySQL and my Minecraft server on the same server. I re-downloaded lastest CrafBukkit and lastest AuthDB releases. I checked and tried a lot of configurations, from modifying the socket port to trying to install JDBC. The Debug-Mode doesn't helps me more, and, after have read this whole topic I'm stuck at the same point :

    Log :
    Debug :
    Config :
    I am using the customdb method and I'm not good at java so... could someone help me please ?
     
  28. Offline

    trash0

    I think i know what's the problem! When the user with uppercase letter and unsupported character connecting - it causes endless recursive cycle in main/java/com/authdb/util/databases/EBean.java in EBean checkPlayer(String player, boolean save) function!
    this bug applies to XenForo forum too

    I cannot determine why, becouse my java programming skill is poor. But developers must pay attention to this bug.
    There are no debug messages, but server halts with RTO errors.
     
  29. Offline

    Wulfspider

    Yeah, I can confirm the issue with SMF, but I haven't tested XenForo yet.

    Did you already make the database and did you set the name properly on advanced.yml? The table will be created for you if you don't already have one created by the name you specify.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  30. Offline

    rom_t

    Yes, I did both. With and without creating the table by myself with
    Here's a part of my advanced.yml :

    I double-checked, the table "authdb_users" is in my database "mc_serv" with the correct columns in it.
    Is there an error with my configuration or may I forgot one step ? (Btw, I'm running it on debian 5.0.51a-24+lenny5)
     
  31. Offline

    Wulfspider

    I tested the latest build of CraftBukkit and the latest AuthDB with your config, and it works fine.

    You might want to just do a clean install of AuthDB and redo the config files, and only change what is necessary to connect to the database and then go from there after testing.

    Edit: It looks like you removed the email field from the config, but you have it in your database table. You might want to readd that to advanced.yml and then try again even if you aren't requiring it.
     

Share This Page