Sign in to follow this  
Maelux

Headless server in vps with debian 9 (SOLVED)

Recommended Posts

Hi all Wurmians

I rent a small vps to create my first wurm unlimited server (1 vcore and two gb ram). The Server has Debian 8 64 bits installed on it by default ( I can reinstall any other OS if was necessary).
I use Putty to comunicate with server. Install Steam cmd, Xvfb and java libraries (libswt-gtk-3-java).

When I run the server all seems to be ok..but I cannot see the server on internet tab and neither logs appear on Creative directory

 

This is that i get on SSH console:

 

steam@vps455235:~$ cd /home/steam/wu
steam@vps455235:~/wu$ ./WurmServerLauncher start=Creative
Starting
Logs found: 0
SteamAppId set.
/home/steam/wu
Runtime path: /home/steam/wu/runtime/jre1.8.0_121/lib/amd64/server/libjvm.so
Working Directory: /home/steam/wu
Number of options: 7
Create java VM!
Sep 19, 2017 6:12:16 PM com.wurmonline.server.gui.WurmServerGuiMain main
INFO: WurmServerGuiMain starting
Should start without GUI here!

 

My main doubts are:

 

How I can know why the server does not work if does not generate neither log ?

Are necessary fill the external and internal ip fields of wurmlogin.sql file (I tried with the ip of my vps but nothing) ?

Are neccesary open the ports as an local sever (I assume that in vps that is not neccesary ..I wrong?)

 

Thank you!


 
Edited by Maelux

Share this post


Link to post
Share on other sites
1 hour ago, Maelux said:

steam@vps455235:~/wu$ ./WurmServerLauncher start=Creative

should be

steam@vps455235:~/wu$ ./WurmServerLauncher Start=Creative

 

iirc the "S" in Start is case sensitive.

Share this post


Link to post
Share on other sites
2 hours ago, ausimus said:

iirc the "S" in Start is case sensitive.

 

Sorry mate that I have to contradict, but no it is not.

 

public enum GuiCommandLineArgument
{
    START("start"), 

....

 

It looks like the map is still missing, which is normal on first start. On first start with GUI it is normally copied from the dist folder, not sure if this is done when you directly go for a start with the map flag.

Edited by Sklo:D

Share this post


Link to post
Share on other sites
3 hours ago, Maelux said:

Hi all Wurmians

I rent a small vps to create my first wurm unlimited server (1 vcore and two gb ram). The Server has Debian 8 64 bits installed on it by default ( I can reinstall any other OS if was necessary).
I use Putty to comunicate with server. Install Steam cmd, Xvfb and java libraries (libswt-gtk-3-java).

When I run the server all seems to be ok..but I cannot see the server on internet tab and neither logs appear on Creative directory

 

This is that i get on SSH console:

 

steam@vps455235:~$ cd /home/steam/wu
steam@vps455235:~/wu$ ./WurmServerLauncher start=Creative
Starting
Logs found: 0
SteamAppId set.
/home/steam/wu
Runtime path: /home/steam/wu/runtime/jre1.8.0_121/lib/amd64/server/libjvm.so
Working Directory: /home/steam/wu
Number of options: 7
Create java VM!
Sep 19, 2017 6:12:16 PM com.wurmonline.server.gui.WurmServerGuiMain main
INFO: WurmServerGuiMain starting
Should start without GUI here!

 

My main doubts are:

 

How I can know why the server does not work if does not generate neither log ?

Are necessary fill the external and internal ip fields of wurmlogin.sql file (I tried with the ip of my vps but nothing) ?

Are neccesary open the ports as an local sever (I assume that in vps that is not neccesary ..I wrong?)

 

Thank you!



 

 

Can you post the result of

 

cd /home/steam/wu

ls

Share this post


Link to post
Share on other sites

 

1 hour ago, Sklo:D said:

 

Can you post the result of

 

cd /home/steam/wu

ls

 

Hi Sklo and thank you for your time!..

here is:

2a4wm7k.jpg

 

 

Quote

should be

steam@vps455235:~/wu$ ./WurmServerLauncher Start=Creative

 

iirc the "S" in Start is case sensitive.

 

Hey! ausimus I try this, but still can not see the server on internet tab... Thanks!!

Edited by Maelux

Share this post


Link to post
Share on other sites

I could reproduce this back in the day, and add queryport=27017 (or whatever you need it to be) helped me.

Also make sure the correct ports are allowed in iptables (i use ufw or firehol to manage it).

 

So I have something like this (on my main/login server)

Quote

 

steam@eland:~/wu$ cat ./S1Launch.sh
#!/bin/bash
./WurmServerLauncher-patched start=Creative queryport=27016


 

 

If you're not mod patched, ignore the -patched part :)

Edited by Marlon

Share this post


Link to post
Share on other sites
39 minutes ago, Marlon said:

I could reproduce this back in the day, and add queryport=27017 (or whatever you need it to be) helped me.

Also make sure the correct ports are allowed in iptables (i use ufw or firehol to manage it).

 

So I have something like this (on my main/login server)

 

If you're not mod patched, ignore the -patched part :)

 

Hi Marlon, pleased to meet you...

 

You mean the port range that start from 27016 to 27030 and use for Steam queries right?...I try to launch the server with 27016 and 27017 but nothing...

Dou you also run a VPS? I think so all VPS ports alre allowed by default..

 

Edited by Maelux

Share this post


Link to post
Share on other sites
10 hours ago, Maelux said:

 

 

Hi Sklo and thank you for your time!..

here is:

2a4wm7k.jpg

 

 

 

Hey! ausimus I try this, but still can not see the server on internet tab... Thanks!!

 

Hey,

 

the problem is quite obvious as I expected, there is no map yet.

 

 

cp -r /home/steam/wu/dist/Creative /home/steam/wu

 

 

and you problem will be solved. You can then go on and normally run the map with:

 

 

cd /home/steam/wu

./WurmServerLauncher start=Creative

Edited by Sklo:D

Share this post


Link to post
Share on other sites
5 hours ago, Sklo:D said:

cp -r /home/steam/wu/dist/Creative /home/steam/wu

 

 

Hey Sklo:D, Ok. now I get a copy of creative folder in Main directory

 

When start the server...

Everything seems normal,

23u7xut.jpg

but..

I cannot see it on internet server list and either nothing log is generated .. So seems that some other thing still happening.

6qupzp.jpg

 

If it would be of help this is the new report of  " ls"

 

2naji4z.jpg

 

 

:huh:?¿

Edited by Maelux

Share this post


Link to post
Share on other sites
40 minutes ago, Maelux said:

 

Hey Sklo:D, Ok. now I get a copy of creative folder in Main directory

 

When start the server...

Everything seems normal,

23u7xut.jpg

but..

I cannot see it on internet server list and either nothing log is generated .. So seems that some other thing still happening.

6qupzp.jpg

 

If it would be of help this is the new report of  " ls"

 

2naji4z.jpg

 

 

:huh:?¿

 

Are you sure you have all the java packages installed on your debian? The server is still not starting properly not recognising the Map.

You will need these packages:

 

apt-get update
apt-get -y upgrade

apt-get -y install openjdk-8-jre
apt-get -y install lib32gcc1

 

 

 

Even if I don't think that the start parameter is case sensitive on Linux as it isn't on windows you can try starting the server using a lower case s at start=Creative

 

cd /home/steam/wu

./WurmServerLauncher start=Creative

Edited by Sklo:D

Share this post


Link to post
Share on other sites
7 hours ago, Sklo:D said:

Are you sure you have all the java packages installed on your debian? The server is still not starting properly not recognising the Map.

You will need these packages:

 

apt-get update
apt-get -y upgrade

apt-get -y install openjdk-8-jre
apt-get -y install lib32gcc1

 

Yep I installed all this packages.

 

 

7 hours ago, Sklo:D said:

Even if I don't think that the start parameter is case sensitive on Linux as it isn't on windows you can try starting the server using a lower case s at start=Creative

 

cd /home/steam/wu

./WurmServerLauncher start=Creative

 

It does not matter, none of them work.

 

Again thank you for your time Sklo

Edited by Maelux

Share this post


Link to post
Share on other sites
11 hours ago, Maelux said:

 

Yep I installed all this packages.

 

 

 

It does not matter, none of them work.

 

Again thank you for your time Sklo

snip, ignore

Edited by Sklo:D

Share this post


Link to post
Share on other sites
11 hours ago, Maelux said:

 

Yep I installed all this packages.

 

 

 

It does not matter, none of them work.

 

Again thank you for your time Sklo

 

Alright I think I have found the problem, you need two more commands, since WU is a bit of a strange setup thing.

 

rm /home/steam/wu/Creative/originaldir

touch /home/steam/wu/Creative/gamedir

 

This should now really solve your problems :)

Share this post


Link to post
Share on other sites

 

23 hours ago, Sklo:D said:

 

Alright I think I have found the problem, you need two more commands, since WU is a bit of a strange setup thing.

 

rm /home/steam/wu/Creative/originaldir

touch /home/steam/wu/Creative/gamedir

 

This should now really solve your problems :)

 

This is exactly what happened and this two actions in addition to copy the /Dist/Creative folder to the main directory has been necessary for my for run a headless Server properly on Debian 9 64 bits...


Now the questions would be...


Assuming it is not necessary applied this aditional actions on home servers..

¿the rule is applied in all headless installations ? ¿Also with other linux SO, and Windows?.. ¿or just in Debian 9 64 bits?


In any case there is no doubt for me that the person who assisted me, he is a great server administrator

Thanks a lot Sklo!!

 

 

Share this post


Link to post
Share on other sites
33 minutes ago, Maelux said:

Assuming it is not necessary applied this aditional actions on home servers..

¿the rule is applied in all headless installations ? ¿Also with other linux SO, and Windows?.. ¿or just in Debian 9 64 bits?


In any case there is no doubt for me that the person who assisted me, he is a great server administrator

Thanks a lot Sklo!!

 

 

 

The GUI is the key for this problem, using the GUI on first start will do exactly the same as my 3 commands from above. It copies the maps from dist to wu_root then it deletes the originaldir files and adds the gamedir files. So this problem will not appear if you use the GUI to manage your WU server.

 

Thanks for the flowers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this