Aion server

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts

    Aion server

    Hi
    For a few days I have had a problem with launching a server on linux that requires JAVA-7

    Of course, I did a system update and everything went wrong, I reinstalled Debian 11, of course I installed JAVA or Zulu-7 and there was a problem because it did not start the server.

    Below is the full explanation of how the boot server was and the whole configuration works without any problems until the update.


    $ java -version
    openjdk version "1.7.0_272"
    OpenJDK Runtime Environment (Zulu 7.40.0.15-CA-linux64) (build 1.7.0_272-b10)
    OpenJDK 64-Bit Server VM (Zulu 7.40.0.15-CA-linux64) (build 24.272-b10, mixed mode)

    Script to start the server that the server always started and ran until the last update:

    #!/bin/sh

    # Path to main Open folder WITHOUT a trailing slash
    RUNPATH="/var/ServerPlay/Heaven"

    # GameServer Folder Name
    GAMEFOLDER="GameServer"
    # GameServer Launch Command
    GAMEEXEC="java -Xms4g -Xmx10g -XX:PermSize=4g -XX:MaxPermSize=10g -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=1 -ea -XX:-UseSplitVerifier -javaagent:./libs/al-commons.jar -cp ./libs/*:AL-Game.jar com.gameserver.GameServer"

    # LoginServer Folder Name
    LOGINFOLDER="LoginServer"
    # LoginServer Launch Command
    LOGINEXEC="java -Xms8m -Xmx32m -ea -Xbootclasspath/p:./libs/jsr166-1.7.0.jar -cp ./libs/*:AL-Login.jar com.loginserver.LoginServer"

    # ChatServer Launch Command
    CHATEXEC="java -Xms128m -Xmx128m -ea -Xbootclasspath/p:./libs/jsr166-1.7.0.jar -cp ./libs/*:AL-Chat.jar com.chatserver.ChatServer"
    # ChatServer Folder Name
    CHATFOLDER="ChatServer"

    # DONT NO EDIT AFTER HERE
    GAME_PID=$(ps ux | awk '/GameServer/ && !/awk/ {print $2}')
    LOGIN_PID=$(ps ux | awk '/LoginServer/ && !/awk/ {print $2}')
    CHAT_PID=$(ps ux | awk '/ChatServer/ && !/awk/ {print $2}')

    start() {
    if [ -z "$LOGIN_PID" ]; then
    echo -n "Starting Login Server..."
    cd $RUNPATH/$LOGINFOLDER
    screen -A -m -d -S login.login $LOGINEXEC
    echo "OK"

    else
    echo "Login Server is already started..."
    fi

    if [ -z "$GAME_PID" ]; then
    echo -n "Starting Game Server..."
    cd $RUNPATH/$GAMEFOLDER
    screen -A -m -d -S game.game $GAMEEXEC
    echo "OK"
    else
    echo "Game Server is already started..."
    fi

    if [ -z "$CHAT_PID" ]; then
    echo -n "Starting Chat Server..."
    cd $RUNPATH/$CHATFOLDER
    screen -A -m -d -S chat.chat $CHATEXEC
    echo "OK"
    else
    echo "Chat Server is already started..."
    fi
    return 0
    }
    stop() {
    echo -n "Stoping Services..."
    if [ ! -z "$LOGIN_PID" ]; then
    kill $LOGIN_PID
    fi
    if [ ! -z "$GAME_PID" ]; then
    kill $GAME_PID
    fi
    if [ ! -z "$CHAT_PID" ]; then
    kill $CHAT_PID
    fi
    echo "OK"
    return 0
    }
    start_login() {
    if [ -z "$LOGIN_PID" ]; then
    echo -n "Starting Login Server..."
    cd $RUNPATH/$LOGINFOLDER
    screen -A -m -d -S login.login $LOGINEXEC
    echo "OK"
    else
    echo "Open Login Server is already started..."
    fi
    return 0
    }
    start_game() {
    if [ -z "$GAME_PID" ]; then
    echo -n "Starting Game Server..."
    cd $RUNPATH/$GAMEFOLDER
    screen -A -m -d -S game.game $GAMEEXEC
    echo "OK"
    else
    echo "Open Game Server is already started..."
    fi
    return 0
    }

    start_chat() {
    if [ -z "$CHAT_PID" ]; then
    echo -n "Starting Chat Server..."
    cd $RUNPATH/$CHATFOLDER
    screen -A -m -d -S chat.chat $CHATEXEC
    echo "OK"
    else
    echo "Chat Server is already started..."
    fi

    return 0
    }

    stop_login() {
    if [ ! -z "$LOGIN_PID" ]; then
    kill $LOGIN_PID
    echo "Stoping login server..."
    else
    echo "Login server its not started"
    fi

    return 0
    }

    stop_game() {

    if [ ! -z "$GAME_PID" ]; then
    kill $GAME_PID
    echo "Stoping gameserver server..."
    else
    echo "Gameserver server its not started"
    fi

    return 0
    }

    stop_chat() {

    if [ ! -z "$CHAT_PID" ]; then
    kill $CHAT_PID
    echo "Stoping Chat server..."
    else
    echo "Chat server its not started"
    fi

    return 0
    }

    status() {
    echo "[Heaven]========================================="

    if [ ! -z "$LOGIN_PID" ]; then
    echo "[OK] Login Server Running..."
    else
    echo "[FAIL] Login Server is not running"
    fi

    if [ ! -z "$GAME_PID" ]; then
    echo "[OK] Game Server Running..."
    else
    echo "[FAIL] Game Server is not running"
    fi

    if [ ! -z "$CHAT_PID" ]; then
    echo "[OK] Chat Server Running..."
    else
    echo "[FAIL] Chat Server is not running"
    fi
    echo "==============================================="
    return 0

    }
    help() {
    echo "Commands: ====================================="
    echo "help = Show this help text"
    echo "start = Starts all servers"
    echo "stop = Stops all servers"
    echo "start-login = Starts LoginServer Only"
    echo "start-game = Starts GameServer Only"
    echo "start-chat = Starts ChatServer Only"
    echo "stop-login = Stop LoginServer Only"
    echo "stop-game = Stop GameServer Only"
    echo "stop-chat = Stop ChatServer Only"
    echo "restart = Restart all servers "
    echo "restart-login = Restart LoginServer Only"
    echo "restart-game = Restart GameServer Only"
    echo "restart-chat = Restart ChatServer Only"
    echo "status = Show status servers"
    echo " =============================================="
    return 0
    }
    case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    restart)
    $0 stop $*
    sleep 5
    $0 start $*
    ;;
    start-login)
    start_login
    ;;
    start-game)
    start_game
    ;;
    start-chat)
    start_chat
    ;;
    stop-login)
    stop_login
    ;;
    stop-game)
    stop_game
    ;;
    stop-chat)
    stop_chat
    ;;
    restart-login)
    $0 stop_login $*
    sleep 5
    $0 start_login $*
    ;;
    restart-game)
    $0 stop_game $*
    sleep 5
    $0 start_game $*
    ;;
    restart-chat)
    $0 stop_chat $*
    sleep 5
    $0 start_chat $*
    ;;
    help)
    help
    ;;
    status)
    status
    ;;
    *)
    echo $"Usage: $0 (start|stop|stop-login|stop-game|stop-chat|start-login|start-game|start-chat|restart|restart-login|restart-game|restart-chat|status|help)"
    exit 1
    esac
    exit $?

    After starting, I have this message:

    Error opening zip file or JAR manifest missing : ./libs/jsr166-1.7.0.jar
    Error occurred during initialization of VM
    agent library failed to init: instrument

    I've never had a problem running on any Linux system until now.

    Someone can help solve the problem.


  2. #2
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    I'm not sure how you've installed the JDK but it's best to download the JDK tar and untar it into the local directories instead of installing via apt.

    Here is what my version is:



    I suspect the error is due to a lower version you've installed or potentially issues with the apt version you may have installed.

    JDK 7u27 is wayy too low, try JDK 7u67 like I have and it should work :)

    Also use a simple start script instead of your custom one, there could be issues there regarding paths and what not.

  3. #3
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Everything is done according to this guide

    https://forum.ragezone.com/f588/tuto...un-an-1206148/

    Unfortunately the changes to the JDK 7u67 are of no help.





    Error opening zip file or JAR manifest missing : ./libs/jsr166-1.7.0.jar
    Error occurred during initialization of VM
    agent library failed to init: instrument

  4. #4
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by selgro View Post
    Everything is done according to this guide

    https://forum.ragezone.com/f588/tuto...un-an-1206148/

    Unfortunately the changes to the JDK 7u67 are of no help.





    Error opening zip file or JAR manifest missing : ./libs/jsr166-1.7.0.jar
    Error occurred during initialization of VM
    agent library failed to init: instrument
    It might be a permissions issue, run "sudo su" and put in your password, then try run your bash script.
    Let me know if this fixes the problem.

  5. #5
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Quote Originally Posted by StingerOne View Post
    It might be a permissions issue, run "sudo su" and put in your password, then try run your bash script.
    Let me know if this fixes the problem.
    Everything is done with root privileges as you can see in the screenshot
    Worst of all, it is the same on every version of Linux.

  6. #6
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by selgro View Post
    Everything is done with root privileges as you can see in the screenshot
    What core are you using? Can you link it to me?
    And this is debian 11.4.0 Bullseye right?

  7. #7
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Quote Originally Posted by StingerOne View Post
    What core are you using? Can you link it to me?
    And this is debian 11.4.0 Bullseye right?
    This is debian Debian 5.10.103-1 (2022-03-07) x86_64 Debian 11

  8. #8
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by selgro View Post
    This is debian Debian 5.10.103-1 (2022-03-07) x86_64 Debian 11
    This is less of an aion server problem and more of a system problem so here's what I'd recommend you do.

    • Reinstall the OS
    • Update the system with sudo apt update && sudo apt upgrade
    • Install java, ant and maven via the tar files.
    • Compile the servers.
    • Install mysql and import your tables.
    • configure the server and run the bash scripts.


    I'm not sure how an update breaks your system like that, you should be able to update the system as much as you want without that happening.

    Follow my steps as a bare minimum to get the servers to compile and run, don't bother with mysql initially until you confirm the servers can be built and at least launched.

    - - - Updated - - -

    Quote Originally Posted by StingerOne View Post
    This is less of an aion server problem and more of a system problem so here's what I'd recommend you do.

    • Reinstall the OS
    • Update the system with sudo apt update && sudo apt upgrade
    • Install java, ant and maven via the tar files.
    • Compile the servers.
    • Install mysql and import your tables.
    • configure the server and run the bash scripts.


    I'm not sure how an update breaks your system like that, you should be able to update the system as much as you want without that happening.

    Follow my steps as a bare minimum to get the servers to compile and run, don't bother with mysql initially until you confirm the servers can be built and at least launched.
    I have successfully compiled the servers:




    and can successfully launch them:



    Which means it's a problem with the way you have configured your linux machine.

    I'm using Debian 11 with kernel 5.10.0 with no problems, I didn't do anything special, just followed my tutorial steps.
    Last edited by StingerOne; 02-08-22 at 09:14 AM. Reason: nice 2000's server software.

  9. #9
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts



    Is it possible to get the build.xml file?
    Because maybe I have something wrong with build.xml file. Everything works and compiles on Windows.

  10. #10
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by selgro View Post



    Is it possible to get the build.xml file?
    Because maybe I have something wrong with build.xml file. Everything works and compiles on Windows.
    Show me line 29 of the build.xml file.

  11. #11
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Quote Originally Posted by StingerOne View Post
    Show me line 29 of the build.xml file.

    Line 29 nowarn="off" source="1.7" target="1.7" includeantruntime="false">

  12. #12
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by selgro View Post
    Line 29 nowarn="off" source="1.7" target="1.7" includeantruntime="false">
    I suspect something is wrong with creating a zip file. What core are you using? I will download it and compile it on my debian box and see if I get the same errors.

  13. #13
    Member selgro is offline
    MemberRank
    Sep 2019 Join Date
    65Posts
    Quote Originally Posted by StingerOne View Post
    I suspect something is wrong with creating a zip file. What core are you using? I will download it and compile it on my debian box and see if I get the same errors.

    Aion_GER_5.8_rev279_Full
    Last edited by selgro; 02-08-22 at 07:18 PM.

  14. #14
    King is Here ! cinus is offline
    MemberRank
    May 2020 Join Date
    NetherlandLocation
    458Posts
    Quote Originally Posted by selgro View Post
    That not a server emulator for sure XD
    Just intel Drivers ^^

  15. #15
    Proficient Member StingerOne is offline
    MemberRank
    Aug 2021 Join Date
    AltgardLocation
    160Posts
    Quote Originally Posted by StingerOne View Post
    Show me line 29 of the build.xml file.
    Install Java JDK 8u202 and it should work.

    For some reason the source compile uses 1.7 but the code requires 1.8... it requires a version 52.0 which is jdk8.

    Everything compiles fine in my debian 11, so all of these problems you're having must be specific to your version of debian, or you haven't configure things correctly.



    - - - Updated - - -

    Quote Originally Posted by cinus View Post
    That not a server emulator for sure XD
    Just intel Drivers ^^
    It's definitely a server. I've downloaded, extracted and compiled the source code just fine.
    Last edited by StingerOne; 03-08-22 at 02:47 AM.



Page 1 of 2 12 LastLast

Advertisement