Persistent Minetest server on Linode server

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Persistent Minetest server on Linode server

by LoseTheGame » Fri Sep 30, 2016 16:52

Hi everyone,

Sorry if I'm being stupid. I have a Ubuntu server on Linode and I want to set-up a continuous Minetest server on it. I'm failing at the first step however because when I input as root:

# apt-get install minetest-server

I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package minetest-server

I've tried "minetestserver" and just "minetest" too but they give the same result.

Any help who be appreciated.

Thanks,

Jonty
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Persistent Minetest server on Linode server

by ExeterDad » Fri Sep 30, 2016 19:18

"sudo apt-get install minetest-server"
is the correct command to install.
how about:
"sudo apt-get update" first?
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Persistent Minetest server on Linode server

by LoseTheGame » Thu Oct 06, 2016 18:36

Thanks, I think I did update first but perhaps I need to reboot the server after the update? I'll try it again in the next couple of days and let you know how it goes.
 

User avatar
Naj
Member
 
Posts: 170
Joined: Sat Sep 19, 2015 21:14
GitHub: pyrollo
In-game: naj

Re: Persistent Minetest server on Linode server

by Naj » Fri Oct 07, 2016 09:56

Under Linux, reboot is not a usual operation, only needed if kernel (and maybe a few core packages) is updated.
 

Jay
Member
 
Posts: 11
Joined: Sun Sep 01, 2013 16:31

Re: Persistent Minetest server on Linode server

by Jay » Sat Oct 08, 2016 07:40

Have you tried enabling the "universe" repository?

http://askubuntu.com/questions/148638/h ... repository
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Persistent Minetest server on Linode server

by LoseTheGame » Sat Oct 08, 2016 19:26

Hi everyone,

So I think the problem was that the Ubuntu on my Linode was horribly out of date and I'm having trouble upgrading it. Anyway, I've set-up a new Linode, installed minetest-server successfully, but now when I run minetestserver I get:

2016-10-08 19:22:37: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:30000.
2016-10-08 19:22:37: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2016-10-08 19:22:37: ERROR[main]: Failed to bind socket (port already in use?)

I tried this:

iptables -A INPUT -p udp -m multiport --destination-ports 30000 -j ACCEPT

And this:

sudo ufw allow 30000

But I'm still getting the same error...

Thanks for all the help!
 

Jay
Member
 
Posts: 11
Joined: Sun Sep 01, 2013 16:31

Re: Persistent Minetest server on Linode server

by Jay » Sun Oct 09, 2016 06:20

Try running:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
netstat -u -l -p -n

This should show if anything is using the port.

If that does not help find the problem, try running:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
strace -f -e trace=bind minetestserver (your minetestserver options here)

Post the output here. You may need to install the strace package first.
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Persistent Minetest server on Linode server

by LoseTheGame » Sun Oct 09, 2016 09:17

Thanks Jay, I think I'm just being stupid. I ran netstat and got:

root@ubuntu:~# netstat -u -l -p -n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:68 0.0.0.0:* 3292/dhclient
udp 0 0 0.0.0.0:30000 0.0.0.0:* 12750/minetestserve

So I tried actually joining the server from another computer and it seems to be working!

So one of my attempts must have started the server without me realising it... Thanks for help anyway, I'll let you know if I run into any more problems.
 

LoseTheGame
Member
 
Posts: 33
Joined: Fri Oct 10, 2014 13:06

Re: Persistent Minetest server on Linode server

by LoseTheGame » Sun Oct 09, 2016 11:13

Another quick question. I can run "minetestserver" and it starts a world with the default name "world" which I can join from other computers. If I "CTRL+C" it will stop that running and everyone gets kicked out the world. However, if another computer then tries to connect to the same IP, there is another world, constantly running on my Linode. Even if I reboot my Linode it's there for people to join. But if I run "minetestserver" again then people will be directed to the "world" world instead. Is this just what happens when the minetest-server service is running? Where is this world stored if it's not the "world" world?
 


Return to Minetest Servers

Who is online

Users browsing this forum: No registered users and 17 guests

cron