Can't type in console?

Discussion in 'Bukkit Help' started by GizJaz, Aug 9, 2015.

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

    GizJaz

    When I start up the server I get the message, unable to access jar file craftbukkit.jar but the server still works, but I can't type in console to stop the server or op myself.

    And ops.json doesn't work to op me?

    (Sorry, new to the whole minecraft server thing.)
     
  2. Offline

    scrollbar

    Can you send us a screen shot of the console? This is most likely because you have a server instance running on the background.
     
  3. Offline

    Mr_SandGAMING

    make sure don't do a / before the command in the console just op.
     
  4. Offline

    Tecno_Wizard

    @GizJaz, I have experienced this bug on more than one occasion. It's caused by an issue with Bukkit that the Bukkit team already knew about, but it's so baked into the code that it would require a LOT of work to fix.
    Request a lock. This isn't going to be fixed.
    The only fix is restarting the server until it doesn't happen.


    Ignore this.
     
    Last edited: Aug 10, 2015
  5. Offline

    GizJaz

    I'd like to think there's at least someone I can get myself oped at least? Since into the text or console doesn't work, if I could just get op, I could stop and save the server in game because at the moment I can't even shut it down.

    [​IMG]
     
  6. Offline

    Tecno_Wizard

    @GizJaz, I revoke my last post. You have no idea what you're doing right now...

    Please post the cmd file. Your server is not running.

    Here's what mine contains, but you're going to want to allocate less RAM than I do. I'm using an iMac with 12G RAM:

    Code:
    cd ~/Desktop/Bukkit/
        java -Xmx4096M -Xms4096M craftbukkit.jar
    
     
    Last edited: Aug 10, 2015
  7. Offline

    GizJaz

    Cmd file? Sorry, don't quite know what that is? Where can I find it?

    Edit: Oddly, the server is running though?
     
    Last edited: Aug 10, 2015
  8. Offline

    Tecno_Wizard

    You ran the cmd file start_server.command didn't you? I need the contents of that file. Right click it and open with textedit.
     
    Googlelover1234 likes this.
  9. Offline

    GizJaz

    Oh, okay. I have

    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xmx1024M -jar craftbukkit.jar -o true

    Which was on the wiki for making a bukkit server.
     
  10. Offline

    Tecno_Wizard

    @GizJaz, the wiki isn't a panacea.

    What's the exact name of the jar in your server folder?
    Also, please tag people when you are speaking to them. Without tags, we do not receive a notification when you post. @ Person's name is how you do it without the spaces. You can see i Have done it to you a bunch of times already. The button is on the bottom left of teach post (it's tagh for one of the original Bukkit devs)
     
  11. Offline

    GizJaz

    craftbukkit_server.jar
     
  12. Offline

    oceantheskatr

  13. Offline

    GizJaz

    Yes, I did that correctly
     
  14. Offline

    Tecno_Wizard

    In that case, this is your command file.

    Code:
    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xmx1024M -jar craftbukkit_server.jar -o true
     
  15. Offline

    GizJaz

    Last edited: Aug 10, 2015
  16. Offline

    Boomer

    what size is your craftbukkit_server.jar file in bytes
     
  17. Offline

    GizJaz

    16.8 MB so, 16800000 bytes?

    @Boomer
     
  18. Offline

    Boomer

    okay, thats good enough. Just eliminating wrong files and corrupted files from the mix of possibilities.
    What happens now when you have corrected your script file to launch the correct filename? What is your system output now?
     
  19. Offline

    GizJaz

    @Boomer

    What do you mean by correcting the script file to launch the correct filename?
     
  20. Offline

    Boomer

    You first showed the content of your script, which gave output that it could not find the filename it was looking for. You answered a few questions, it was deteremined your server filename was actually craftbukkit_server.jar , it was posted what your file should look like then with THAT filename, you commented that "you had that" but it didn't seem to be like you were actually paying attention to that maybe. I had you check "craftbukkit_server.jar" and you reported the file size, its a validish filesize for a server jar indeed.

    So using the script that has been edited to launch craftbukkit_server.jar what is the output you get?
    [​IMG]
     
    Last edited: Aug 10, 2015
  21. Offline

    GizJaz

    Looks like I did misread a bit, my problem now is that almost everything in my folder kinda disappeared?

    It just shows the jar, logs and the world? I think I'm just gonna delete everything and restart trying to get this to work but I can't delete the file the jar is in use and I don't know how to stop that now...
     
  22. Offline

    JohnathanPlays

    Just log out of your computer and log back in. That will kill all instances of the server. As for making the server work, MAKE SURE that the name of the jar file and the text in your start cmd file are the same. In other words, you said that this was your cmd file:

    1. #!/bin/bash
    2. cd "$( dirname "$0" )"
    3. java -Xmx1024M -jar craftbukkit.jar -o true

      You MUST make sure that your bukkit jar file is named craftbukkit.jar. If you want to keep it as craftbukkit_server.jar, you would put this in your start cmd file:
      1. #!/bin/bash
      2. cd "$( dirname "$0" )"
      3. java -Xmx1024M -jar craftbukkit_server.jar -o true

      Hope that helps
     
Thread Status:
Not open for further replies.

Share This Page