How to update a 4.x server to 5.x on Linux?

How to update a 4.x server to 5.x on Linux?

Postby fstltna » Sat Apr 20, 2019 11:44 pm

Not sure where to post this - I have several dedicated servers all running on headless Linux servers and I am interested in upgrading them without losing the player and world data. Is there a doc on doing this? I think they were installed using the zip files and not a git repo...

Thx,
Marisa
fstltna
Member
 
Posts: 99
Joined: Sat Aug 05, 2017 11:22 pm
In-game: MarisaG

Re: How to update a 4.x server to 5.x on Linux?

Postby sofar » Sun Apr 21, 2019 5:18 am

1. down the server
2. make full backups
3. Update games and mods
4. upgrade server
4a. upgrade to sqlite auth db and sqlite player db (optional)
5. start it back up
5a. if problems with mods or games, fix or work with mod creators

you can just replace the old mods with the new mods most of the time, from zip. contentdb has many 5.0.x compatible mods tagged already as well if you want more official releases that are marked as tested.
sofar
Developer
 
Posts: 2084
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: How to update a 4.x server to 5.x on Linux?

Postby Festus1965 » Sun Apr 21, 2019 8:45 am

like written above,
but don't upgrade/update mos,
* only if you use 3d_armor, need then new 5.0 version, otherwise gamer shown one too deep standing

then check if other mod are complain,
and if so just change now those are ... the one no problem, let for a while, that you have an safe and good running minimum 5.0 --> backup again, and then maybe check mods upgrade
Festus1965
Member
 
Posts: 975
Joined: Sun Jan 03, 2016 11:58 am
GitHub: Minetest-One
In-game: Thomas Explorer

Re: How to update a 4.x server to 5.x on Linux?

Postby fstltna » Sun Apr 21, 2019 3:25 pm

I got that, but how do I do the actual upgrade of the 4.x code to 5.x? I know all those mods work on 5.x as I have been running that on other servers since the betas and they work ok there. Already using sqlite auth & player dbs.
fstltna
Member
 
Posts: 99
Joined: Sat Aug 05, 2017 11:22 pm
In-game: MarisaG

Re: How to update a 4.x server to 5.x on Linux?

Postby Festus1965 » Sun Apr 21, 2019 6:07 pm

fstltna wrote:I got that, but how do I do the actual upgrade of the 4.x code to 5.x?

just change the machine, mean the mts, all other keep
what kind using (stable, compile) is your turn/decision
Festus1965
Member
 
Posts: 975
Joined: Sun Jan 03, 2016 11:58 am
GitHub: Minetest-One
In-game: Thomas Explorer

Re: How to update a 4.x server to 5.x on Linux?

Postby sofar » Sun Apr 21, 2019 7:32 pm

fstltna wrote:I got that, but how do I do the actual upgrade of the 4.x code to 5.x? I know all those mods work on 5.x as I have been running that on other servers since the betas and they work ok there. Already using sqlite auth & player dbs.


depends on how you installed 0.4.x in the first place. If you used distro packages, upgrade those. If you compiled from source, recompile from source... etc.
sofar
Developer
 
Posts: 2084
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: How to update a 4.x server to 5.x on Linux?

Postby fstltna » Sun Apr 21, 2019 7:37 pm

For these machines I used the .zip files. Ideally I would like to switch to the github method...
fstltna
Member
 
Posts: 99
Joined: Sat Aug 05, 2017 11:22 pm
In-game: MarisaG

Re: How to update a 4.x server to 5.x on Linux?

Postby sofar » Sun Apr 21, 2019 11:02 pm

fstltna wrote:For these machines I used the .zip files. Ideally I would like to switch to the github method...


Do you mean, you built from source by downloading the source code zip files?
sofar
Developer
 
Posts: 2084
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: How to update a 4.x server to 5.x on Linux?

Postby fstltna » Mon Apr 22, 2019 12:30 am

sofar wrote:
fstltna wrote:For these machines I used the .zip files. Ideally I would like to switch to the github method...


Do you mean, you built from source by downloading the source code zip files?


Yes exactly...

Marisa
fstltna
Member
 
Posts: 99
Joined: Sat Aug 05, 2017 11:22 pm
In-game: MarisaG

Re: How to update a 4.x server to 5.x on Linux?

Postby sofar » Mon Apr 22, 2019 3:26 am

fstltna wrote:Yes exactly...


Yeah, you can just throw away the old builds and git clone the stable-5 branch:

Code: Select all
$ git clone https://github.com/minetest/minetest
$ cd minetest
$ git checkout stable-5


and then build from there.
sofar
Developer
 
Posts: 2084
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: How to update a 4.x server to 5.x on Linux?

Postby fstltna » Wed Apr 24, 2019 6:55 pm

But what files/dirs do I need to keep/move out of the way?
fstltna
Member
 
Posts: 99
Joined: Sat Aug 05, 2017 11:22 pm
In-game: MarisaG



Return to General Discussion



Who is online

Users browsing this forum: Yandex Bot [Bot] and 0 guests