Fliege Posted April 8, 2025 Report Posted April 8, 2025 (edited) Server was previously (still up) hosted by a 3rd Party Provider. Now we want to move to self hosting, continuing with our savegame. Exported the save file and transferred it via sftp to the self hosted machine into the corresponding directories. Upon start, it seems to be not able to open the savegame. If I transfer the save to my personal machine, it works fine. The self hosted server works fine with a fresh "default" save. Permissions on the files / directories seems to be correct. Any help / suggestions are appreciated. 6.4.2025 17:22:01 [Server Fatal] Unable to open or create savegame. 6.4.2025 17:22:01 [Server Error] Exception: ./data/Saves at Vintagestory.API.Common.SQLiteDBConnection.HaveWriteAccessFolder(String folderPath) in VintagestoryApi\Common\IO\SQLiteDBConnection.cs:line 167 at Vintagestory.API.Common.SQLiteDBConnection.OpenOrCreate(String filename, String& errorMessage, Boolean requireWriteAccess, Boolean corruptionProtection, Boolean doIntegrityCheck) in VintagestoryApi\Common\IO\SQLiteDBConnection.cs:line 30 at Vintagestory.Common.Database.SQLiteDbConnectionv2.Vintagestory.Common.Database.IGameDbConnection.OpenOrCreate(String filename, String& errorMessage, Boolean requireWriteAccess, Boolean corruptionProtection, Boolean doIntegrityCheck) at Vintagestory.Common.GameDatabase.OpenConnection(String databaseFilename, Int32 databaseVersion, String& errorMessage, Boolean requireWriteAccess, Boolean corruptionProtection, Boolean doIntegrityCheck) in VintagestoryLib\Common\FileIO\Database\GameDatabase.cs:line 89 at Vintagestory.Common.GameDatabase.ProbeOpenConnection(String databaseFilename, Boolean corruptionProtection, Int32& foundVersion, String& errorMessage, Boolean& isReadonly, Boolean requireWrite) in VintagestoryLib\Common\FileIO\Database\GameDatabase.cs:line 127 at Vintagestory.Server.ServerSystemLoadAndSaveGame.OnBeginConfiguration() in VintagestoryLib\Server\Systems\World\LoadThread\LoadSaveGame.cs:line 85 6.4.2025 17:22:01 [Server Notification] Server stop requested, begin shutdown sequence. Stop reason: Failed opening savegame personal machine: Win11 self hosted machine: Ubuntu Server 24.04.2 + AMP Panel Phobos 2.6.1.2 3rd Party Server: unknown, Pterodactyl Panel Edited April 8, 2025 by Fliege additional info for the self hosted machine
Zane Mordien Posted April 8, 2025 Report Posted April 8, 2025 The very first line that it can't open or create a new file sounds like a permissions problem for the server. I have one server that the save file location is locked up like that. I have no idea why. I had to create a new install to fix it. Secondly, did you fix the name of the savegame in the serverconfig file? If you don't it will create a new game.
Fliege Posted April 8, 2025 Author Report Posted April 8, 2025 The user running the instance has full permissions (owner/rwx) recursivley on all the files/directories. I did an fresh install of the whole machine aswell. Still the same behaviour. Name of savegame is also identical in the serverconfig.
Solution Thorfinn Posted April 8, 2025 Solution Report Posted April 8, 2025 I ran into something similar on Mint. For some reason, even with a root-level login, SQL was not playing nicely. I moved it to ./vs/19/data and it worked fine, as well as allowing it to be run without root access. Win-win! 1
Zane Mordien Posted April 8, 2025 Report Posted April 8, 2025 Same I am running it with root access and it locked the savegame folder. I changed folders and it works great.
Fliege Posted April 8, 2025 Author Report Posted April 8, 2025 Wow that actually worked. Even tho i had to try a few different directories. Cheers! Much appreciated. 2
Recommended Posts