Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Aion server

Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
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.
 
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
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:

unIK3r6 - Aion server - RaGEZONE Forums


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.
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
Everything is done according to this guide

https://forum.ragezone.com/f588/tutorial-how-to-run-an-1206148/

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


YuCEAeT - Aion server - RaGEZONE Forums



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
 

Attachments

You must be registered for see attachments list
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
Everything is done according to this guide

https://forum.ragezone.com/f588/tutorial-how-to-run-an-1206148/

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


YuCEAeT - Aion server - RaGEZONE Forums



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.
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
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.
 
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
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.



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:

G8sYsXk - Aion server - RaGEZONE Forums



and can successfully launch them:

Aov2QD7 - Aion server - RaGEZONE Forums


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.
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
oOBPsbD - Aion server - RaGEZONE Forums



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.
 

Attachments

You must be registered for see attachments list
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
oOBPsbD - Aion server - RaGEZONE Forums



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.
 

Attachments

You must be registered for see attachments list
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
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.
 
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
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.


 
Last edited:
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
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.

wAr3fHv - Aion server - RaGEZONE Forums




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.
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Joined
Sep 21, 2013
Messages
2,319
Reaction score
3,113
If you are using AionGer 5.8 then you should understand that,
AionGer 5.8 works with java 1.8 for loginserver and chatserver and java1.7 for gameserver.



It's definitely a server. I've downloaded, extracted and compiled the source code just fine.

Previously the link was wrong, that's why he said, but later it was fixed.
 
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
If you are using AionGer 5.8 then you should understand that,
AionGer 5.8 works with java 1.8 for loginserver and chatserver and java1.7 for gameserver.





Previously the link was wrong, that's why he said, but later it was fixed.

Too many version mismatches, if a developer doesn't update the entire core to use one unified version of java jdk, they shouldn't be tasked with updating the core.

This is why people are having issues compiling, CS requires this version, LS requires that version, GS requires a unicorn version.... so frustrating.

I think I will take this core and post a general guide for how to update the core to the latest JDK LTS, current versions are so old.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Sep 3, 2019
Messages
90
Reaction score
12
Hi
It started on JDK1.8 without any problems, only strange because it worked on JDK1.7 before,
it stopped after debian 11 update but everything works. Thank you for your help.
 
Upvote 0
Experienced Elementalist
Joined
Aug 6, 2021
Messages
220
Reaction score
55
Hi
It started on JDK1.8 without any problems, only strange because it worked on JDK1.7 before,
it stopped after debian 11 update but everything works. Thank you for your help.

good to hear it's all working.
 
Upvote 0
Back
Top