Alte_Sokke Posted February 27, 2020 Report Posted February 27, 2020 Hi there, how may i install a update to the newest version on linux server without lose my world ? Thanks for replay, Alte_Sokke
Marcel Rickl Posted March 5, 2020 Report Posted March 5, 2020 The server update for those who run it themselves runs like this. You delete everything except your "server.sh". Then copy the new server files, except the "server.sh" into your folder. After that you can start the server as usual, etc... In the server.sh there is the item "DATAPATH='/var/vintagestory/data" (This is now an example of my file.) If it is NOT deleted your game is still there. Therefore your current "server.sh" is kept so that you don't need to enter the paths again and again. I hope it's helped. Greeting Marcel
NorseGuard Posted January 17, 2025 Report Posted January 17, 2025 Dont think so, cant find the server.SH file in my server.
kmartburrito Posted January 17, 2025 Report Posted January 17, 2025 (edited) I would like to understand globally how to update the server. I'm also not sure on how to do this for a Windows dedicated server. Surprisingly this is not well documented. EDIT - Here's what I found for others, however it still is not clear for Windows servers - https://wiki.vintagestory.at/Special:MyLanguage/Setting_up_a_Multiplayer_Server#Updating_Servers Updating Servers If you want to install a newer version, remove all installation files first, or you'll get unforseeable behavior. If you chose a data folder inside the installation folder, make sure to not delete that one, or you'll loose your save games, settings and player data. Download the "Tar.gz Archive/Linux (server only)" file and extract it. If you have a remote installation and only a FTP connection to your server, you will have to unpack it locally and upload each file. Edited January 17, 2025 by kmartburrito updating with instructions posted to update servers
kmartburrito Posted January 17, 2025 Report Posted January 17, 2025 I ended up trying to figure out the right process on my own - documenting for others that may run into the same issue. I made copies of my server data folder, and then blanked out the server (non-data, where the binaries are / install dir) and copied over the 1.20 update from my single player install dir. When I started the server, it now starts with 1.20 which is a good step, however when I try to join the server it says the server requires you to be on the whitelist and I'm not a part of it. I specifically have set in my server config that whitelisting is NOT required. I had to add my player as a whitelisted player to make this all work. I believe the enforced whitelist is an error/defect/bug as my server config specifically says no whitelist. I added myself to the server's whitelist by running the following command in the server window while the server was running. Replace my name with your player name - /player kmartburrito whitelist on Note that this is detailed in the dedicated server guide here - https://wiki.vintagestory.at/Guide:Dedicated_Server#Use_a_whitelist
Stefanklm Posted January 18, 2025 Report Posted January 18, 2025 (edited) Ok so for Windows Server its just: Make Sure to Backup your Savegame everytime youre working on the Server. Just for Savety Go to "Client Area" on top of this Website. Then klick on "(Show all available downloads and mirrors of Vintage Story)" and then Download just "Windows .zip Archive(server only) (46.9 MB) (mirror)", make sure you download the Version you want. Then copie the Files in the ZIP Folder in your Vintage Story Folder and click "Replace" if Windows ios asking you. In this Zip File are only Folders and Datas that dosnt affect your Modfolder or Setting Files, so its Safe and will not delete your Setting or something. Since there is no Data Folder in the Zip File, it will not Delete or overwrite them. Thats it. With Version 1.20 the Whitelist is Standard in mode "on". So when your Server has fully startet, just type in the Console "/whitelist off" to turn it off temporaly. Now Join your Server and type in Chat "/serverconfig whitelistmode off" to turn ist off permanently. If you like to see your Server in the Public List you can also write in Chat "/serverconfig advertise on". Thats all. As long as you didnt got any Mods that may Break, its just 10 Minutes of Work. When you like to let the Whitelist on, you have to add your Username like kmartburr wrote in the Post above Edited January 18, 2025 by Stefanklm 1 1
TheDuskmoon Posted January 23, 2025 Report Posted January 23, 2025 On 1/17/2025 at 7:38 PM, Stefanklm said: Ok so for Windows Server its just: Make Sure to Backup your Savegame everytime youre working on the Server. Just for Savety Go to "Client Area" on top of this Website. Then klick on "(Show all available downloads and mirrors of Vintage Story)" and then Download just "Windows .zip Archive(server only) (46.9 MB) (mirror)", make sure you download the Version you want. Then copie the Files in the ZIP Folder in your Vintage Story Folder and click "Replace" if Windows ios asking you. In this Zip File are only Folders and Datas that dosnt affect your Modfolder or Setting Files, so its Safe and will not delete your Setting or something. Since there is no Data Folder in the Zip File, it will not Delete or overwrite them. Thats it. With Version 1.20 the Whitelist is Standard in mode "on". So when your Server has fully startet, just type in the Console "/whitelist off" to turn it off temporaly. Now Join your Server and type in Chat "/serverconfig whitelistmode off" to turn ist off permanently. If you like to see your Server in the Public List you can also write in Chat "/serverconfig advertise on". Thats all. As long as you didnt got any Mods that may Break, its just 10 Minutes of Work. When you like to let the Whitelist on, you have to add your Username like kmartburr wrote in the Post above So i had accidentally downgraded my server to a past version and had attempted this method and am still stuck, i am gonna try again after my work but any possible tips for me to try. 1
Stefanklm Posted January 23, 2025 Report Posted January 23, 2025 (edited) Try to download the latest version and restart the server. Hopefully it hasn't destroyed your savegame. And if it did, hopefully you have a backup? If it doesn't start and you don't have a backup, first check if it's really the savegame that's not starting. There may also be something about this in the logs. Move your current savegame somewhere else and restart the server with the current version. It will create a new savegame. If this works, the error is actually in the savegame and it is lost forever without a backup. But if it doesn't start with the new one either, there is still hope. Then the error lies elsewhere Edited January 23, 2025 by Stefanklm
TheDuskmoon Posted January 23, 2025 Report Posted January 23, 2025 ive tried that multiple times with no luck, and no game saves to even back up since got the game to just play multiplayer with my friends, ive done just about every method possible so far, even the serverconfig is saying the server is updated but in game its stuck at 1.19.8 and loading it at such, and ive done the works, full delete to reinstall, replaced files to current, ive found only a small few who have had my same issue, which is i accidentally downgraded the server, and theres no way to put it back to current, so as of now until i hear back from the ticket i put in this issue may not be able to be fixed, legit have tried it all, but thanks for the imput, doesnt hurt to reach out
Malnaur Posted January 25, 2025 Report Posted January 25, 2025 The default whitelisting is a PITA for headless linux servers. You have to bootstrap it with at least one user manually. The easiest way I found is to start a local game and whitelist yourself (/player [username] whitelist on). You should get a reply that you are whitelisted for a long time. Now, quit the local session and find the player whitelist file ("C:\Users\[name]\AppData\Roaming\VintagestoryData\Playerdata\playerswhitelisted.json"). Open that file and copy the entire contents. Make sure your server is stopped or it will overwrite the edit you are about to make! In a terminal window on the server, use your favorite editor to replace the '[]' in the whitelist file there with the stuff you copied locally. It should look exactly like the original file: [ { detailed stuff } ] Now start the server and you should be able to log in and use server commands to whitelist your friends.
Recommended Posts