[SOLVED] Installation on CentOS 7

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

[SOLVED] Installation on CentOS 7

Post by Mordecaine »

Hello,

I tried to install the l2j on CentOS 7. I used the wiki page.
I did the follings commands:
mkdir /opt/l2j
useradd -s /bin/false -d /opt/lineage2 -c "Linage 2 Daemon User" lineage2
cd /opt/l2j
git clone https://bitbucket.org/l2jserver/l2j_server.git
git clone https://bitbucket.org/l2jserver/l2j_datapack.git
cd l2j_datapack
yum install java-1.8.0-openjdk -y
./gradlew build

But the gradlew build failed:
Could not resolve all dependencies for configuration ':compileClasspath'.

So I looked at the support chatroom and read there (in the history) that there is a zip file with all server datas.
I downloaded the zip file (https://bitbucket.org/l2jserver/l2j_ser ... .6.0.0.zip)

I created the two databases and started the login server. This worked fine.
The error logs says, that he wasnt able to find the right tables.

Where I can find the database dumps for the tables? Or its enough to create empty tables?

Cheers, Mordecaine
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 »

Let me test.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine »

Ok, I did the following steps.

I found out, that there are two helper jars (in Zip file):
dbinst_gs.jar
dbinst_ls.jar

I started the jars with the follwing command:
java -jar dbinst_gs.jar

After that, the programm asks me:

Code: Select all

java -jar dbinst_ls.jar
Welcome to L2J DataBase installer
Jun 14, 2017 4:26:11 PM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml
Host (localhost):
Port (3306):
Username (root): l2j_login_server
Password (): MyPassword
Database (l2jls):
(C)lean install, (U)pdate or (E)xit? C
Writing dump l2jls_dump_20170614-162632.sql
Dump Complete!
Installing Database Content...
Database Installation Complete!
Database Installation Complete!
After that, the tables are still empty.

Now I found (in the git clone) a lot of .sql files:
/opt/l2j/l2j_datapack/dist/sql/game
/opt/l2j/l2j_datapack/dist/sql/login

Now I did the following commands:
for i in $(ls -1 *.sql);do mysql -u l2j_game_server -pMyPassword l2jgs < $i;done

and the same for the login server. Now I have all tables.

Is there a better way to do this?

Cheers, Morde
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine »

I get still errors.

I think I should go back to the first step and get out, why the "gradlew build" command failed.

@Zoey76 Did you test the gradlew build with centos 7?
If you have no centos 7, we can do a teamviewer session, and you cant test on my machine.

Cheers, Morde
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 »

I have installed CentOS 7 on a virtual machine, I'll test it myself and add it to the wiki.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine »

When it works on my server, I can build a RPM package for you. Then its a bit easier for RedHat, CentOS, Fedora and Oracle Linux users.

After that I can write a documentation and you can upload it if you want to.
Further more I can write a service file for login and game server. After that the SystemD is able to start the processes and its a bit easier to handle the daemons.

Thanks for your help,
Morde
Mordecaine
Posts: 5
Joined: Mon Jun 12, 2017 5:12 pm

Re: Installation on CentOS 7

Post by Mordecaine »

Did you update the wiki?
Maybe I have the wrong wiki. I searched in this wiki page: https://bitbucket.org/l2jserver/l2j_server/wiki/Home

Cheers,
Morde
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

Re: Installation on CentOS 7

Post by regenx »

How is L2J server on CentOS? Better than Ubuntu 16.04 LTS?
It is stable? CentOS distro is recommended for web servers, it is good for gaming and java app?
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Installation on CentOS 7

Post by Sacrifice »

Every linux distro, correctly installed will be good... We could say that even works better in linux (any distro)...
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Installation on CentOS 7

Post by Zoey76 »

For CentOS please follow the official guide http://www.l2jserver.com/centos.html
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Locked