[ADMN/SEC/WEB] HawkEye [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by oliverw92, Aug 15, 2011.

  1. Offline

    oliverw92

    sethgandy, phimt, matan7890 and 7 others like this.
  2. i corrected it now this error:

    2011-08-21 20:35:43 [SEVERE] [HawkEye] Error whilst attempting to get 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.
    2011-08-21 20:35:43 [SEVERE] [HawkEye] Error initiating HawkEye database connection, disabling plugin
    2011-08-21 20:35:43 [INFO] [HawkEye] Version 1.0.4 disabled!

    config:
    mysql:
    hawkeye-table: bodocraft_table
    port: 25566
    player-table: bodocraft_players
    username: bodocraft
    world-table: hawk_worlds
    hostname: 217.13.106.20
    max-connections: 10
    password: notshowing
    database: bodocraft

    there is no TAB in the file, i checked with word
     
  3. Offline

    poiuyt580

    Could usage regarding chest content logging/rollbacking be added to the Wiki?
     
  4. Offline

    oliverw92

    Is the mysql database on the same machine as the minecraft server? Also can I ask why you have changed the table names of the player and hawk table but not the world table?

    What do you need to know?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  5. Offline

    TehSkull

    @oliverw92 That's odd. When I do a search in my web interface for // only typos of WorldEdit commands show up. No actual WorldEdit commands. Is there maybe an option we don't have set? I have the newest version of HawkEye and WorldEdit.

    Thanks for the quick, and very all-encompassing response. I appreciate you taking the time to answer pages worth of questions like that.
     
  6. Offline

    oliverw92

    @TehSkull I'll check it out. I might have put it in the dev branch and not the master by mistake...

    EDIT: yeah i failed...
     
  7. i forgot to change but it doesn't matter :)

    yes the database and the minecraft server is in the same machine
     
  8. Offline

    oliverw92

    @samu126 Use localhost instead of the ip
     
  9. Offline

    poiuyt580

    How to search for it, how to roll it back. How specific I can be when searching/rolling back - item ID/names, person's chest, person who stole items, etc.?
     
  10. Offline

    oliverw92

    Exactly the same as any other entry - you can use a:container-transaction. I'll update the wiki at some point, don't have time at the moment.
     
  11. same error, do i need to change the port to something else?

    2011-08-21 22:11:05 [SEVERE] [HawkEye] Error whilst attempting to get 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.
     
  12. Offline

    codename_B

    Possible memory leak found :S
     
  13. Offline

    but2002

    I think you have a port error.. 25566? Is that the port your MySQL server is running on? Default port is 3306. Minecraft default is 25565 and Minequery's default is 25566. I think you may be a bit confused. Correct me if I'm wrong.
     
  14. i will try out, the host where i rented the server didn't sent me information about the mysql database port.
     
  15. Offline

    but2002

    Are you 100% sure that they even offer MySQL? If they do chances are it won't be default. I would ask if they even have support.
     
  16. i have mysql database, im sure:)

    [​IMG]
     
  17. Offline

    but2002

    Haha, well that makes it obvious. Okay, you're hosting the server on what host?
     
  18. Offline

    but2002

    @samu126 After looking up your server, I found out your game port is indeed 25566 and that's not the port that MySQL needs to connect to. You need to find out the port from your host

    And yes, I was asking where you rent it from ;)

    @samu126 OMG. I just looked at your map. Is that the Aurora from Stargate!?!?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  19. Thats unfortunately , the support team is sleeping:) In my country it is 23:00 nearly :)

    I cant get the port now, when will you be online next time?

    edit: yeah i built with my friend, it took 2 week:D (we started with schematics but we built 2 weapon platform to the sides. am how do you get my map?:D I just linked the host and the database front page without url:D
     
  20. Offline

    but2002

    I googled "BodoCraft" and it didn't take me long to find you on minecraftservers.net

    When you get the port, that's all you will need. It should work without an issue then.
     
  21. Offline

    SilencShadoW

    Hey oliver :)
    can u implement a "are u sure?" if u forgot a radius? or if u go up to a radius of X configable in the config file? on /hawk rollback and /hawk preview??? because to be sure that my mods dont rollback the map :p
     
  22. Offline

    Dharkk

    First off, I absolutely LOVE the plugin, it makes my life so much easier.

    Recently I started getting this:

    00:18:23 [SEVERE] Exception in thread "Thread-2538"
    00:18:24 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    00:18:29 [SEVERE] Exception in thread "Thread-2540"
    00:18:56 [SEVERE] [HawkEye] SQL Exception: java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space
    00:19:03 [SEVERE] Exception in thread "Thread-2541"
    00:19:03 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    00:19:21 [SEVERE] [HawkEye] SQL Exception: java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space
    00:19:59 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    00:21:47 [SEVERE] [HawkEye] SQL Exception: java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space
    00:21:43 [SEVERE] Exception in thread "Thread-2542"
    00:22:12 [SEVERE] Exception in thread "Thread-2556"

    This stopped happening right when I removed the Hawkeye.jar from my plugins folder. I also have LWC and dynmap using MySQL.

    -EDIT-

    Forgot to mention, using CB 1060 and the latest version of Hawkeye (1.0.4). Didn't have this happen previous to 1.0.4.
     
  23. Offline

    phaed

    I have been having problems with my server's RAM usage, glad you found the prob. Where in the code is the prob? Would like to patch this asap.
     
  24. Offline

    codename_B

    I'm not 100% on it yet, but will keep you informed.
     
  25. Offline

    oliverw92

    I'll think about it. It would require a massive amount of rewriting to support that. At the end of the day it is very hard to make a query that rolls back the entire database and you should only be giving rollback commands to people you can trust.

    Thanks for the report

    I have to admit I have no idea about java memory management. I would appreciate it beyond belief if you could help me locate any memory leaks. As I said, I really just don't know about it.
     
  26. Offline

    Bronski

    I've been having these infrequently but for a few weeks now, where java kills itself:

    Code:
    Aug 21 19:39:02 kernel: Out of memory: Kill process 6703 (java) score 840 or sacrifice child
    Aug 21 19:39:02 kernel: Killed process 6703 (java) total-vm:1753432kB, anon-rss:1366636kB, file-rss:80kB
    That's in /var/log/messages. Is that what you guys are having?

    I've used these startups but I don't know whether any of the switches is really helping me:

    Code:
    java -server -Xincgc -Xmx1484M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
    
    
    java -server -Xmx1484M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
     
  27. Offline

    Raycrash

    Does it log worldedit edits too ?
     
  28. Offline

    Sayshal

  29. Offline

    xsolar66

    It logs the commands, but doesnt rollback the edits themselves
    This plugin auto-updates itself, it seems - when starting up the server it checks itself for updates
     
  30. Offline

    Lykkepillen

    My tool still aint working if i enable it and logout. Same goes for /hawk here and also /hawk search (at least /hawk search p:lykkepillen r:10, gives no result.)

    I have to switch back to BigBrother if this can't be fixed - We had a lot of griefs in the weekend and right now we can't roll it back :/


    UPDATE:

    It looks like it's working but just stops posting to the chat


    Code:
    06:30:20 [INFO] [HawkEye] DEBUG: Beginning search query
    06:30:20 [INFO] [HawkEye] DEBUG: Building players
    06:30:20 [INFO] [HawkEye] DEBUG: Building worlds
    06:30:20 [INFO] [HawkEye] DEBUG: Building actions
    06:30:20 [INFO] [HawkEye] DEBUG: Building dates
    06:30:20 [INFO] [HawkEye] DEBUG: Building location
    06:30:20 [INFO] [HawkEye] DEBUG: Building filters
    06:30:20 [INFO] [HawkEye] DEBUG: Ordering by data_id
    06:30:20 [INFO] [HawkEye] DEBUG: Building limits
    06:30:20 [INFO] [HawkEye] DEBUG: Searching: SELECT * FROM `hawkeye` WHERE world_id IN (2,1) AND action IN (0,1,2,4,8,9,10,11,13,14,15,17,18,19,20,26,27,28,29) AND x = 56.0 AND y = 67.0 AND z = -67.0 ORDER BY `data_id` DESC
    06:30:20 [INFO] [HawkEye] DEBUG: Getting results
    06:30:20 [INFO] [HawkEye] DEBUG: 1 results found
    06:30:20 [INFO] [HawkEye] DEBUG: Search complete
    Hope that helps
     

Share This Page