Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Cannot transfer instance from old server to new server, instance is unusable on new server

  • 222 Views
  • Last Post 19 January 2022
  • Topic Is Solved
DrKerbalMD posted this 16 January 2022

Old server: Ubuntu 20.04 VM on unRAID server.

New server: Ubuntu 20.04 bare metal.

Both are running AMP 2.3.1. On the VM, I zip the instance I want to move, which in this case is a ValheimPlus server. I also have a Satisfactory server I want to move.

Once zipped, I connect to the new server and transfer the .zip file over the network. I move the .zip file into /home/amp/.ampdata/instances and unzip it. I check the permissions to confirm they were preserved, they were. Owner is still amp.

Then I run ampinstmgr repair. This is the output:

amp@bo:~/.ampdata/instances$ ampinstmgr repair
[Info] AMP Instance Manager v2.3.1 built 13/01/2022 21:17
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Found unattached instance ButtzValheim, importing...
[Notice] AMP Service port ranges have not been specified, using any available...
[Notice] Application Service port ranges have not been specified, using any available...
[16:40:44] [Core Info]            : Starting AMP version 2.3.1.0 (Triton), built 13/01/2022 21:16
[16:40:44] [Core Info]            : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[16:40:44] [Core Warning]         : Current time zone is set to EST - Servers should ideally be UTC to avoid time-zone related issues
[16:40:44] [Core Info]            : OS: Linux / x86_64
[16:40:44] [Core Info]            : CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (4C/8T)
[16:40:44] [Core Info]            : AMP Instance ID: b460b7e2-e3f1-4c6d-8022-c01c8427d99b
[16:40:45] [ModuleLoader Info]    : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited
[16:40:45] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[16:40:45] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [ModuleLoader Info]    : GenericModule requests dependency steamcmdplugin...
[16:40:45] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[16:40:45] [Core Warning]         : No such setting node: Core.Login.LDAPAllowAuthOnAnyDomain - maybe the relevant plugin/module isn't loaded?
[16:40:45] [Core Error]           : Unable to set Core.AMP.PreviousVersion (Version) to 
[16:40:45] [Core Error]           :  is not a valid Version
[16:40:45] [Core Info]            : -configonly specified or activation performed. Saving settings and shutting down. This is perfectly normal.
[Info] Success
[Info] Successfully imported 1 instances.

The "Unable to set Core.AMP.PreviousVersion (Version) to" and "is not a valid Version" lines are highlighted bright red and yet it looks like the import succeeded based on the next line. However, the instance is broken on the new server. On the old server, it correctly appears to be a ValheimPlus module and it's on the right port for Valheim:

old server

I can manage the instance, the instance starts, I can connect to it with a Valheim client.

On the new server, the instance is broken:

new server

Port and module is wrong, and I can't manage the instance. It's as if AMP read the folder name and tried to make an instance, but couldn't read any of the data inside.

I have no idea what I'm doing wrong or if this is even the correct way to transfer an instance. I tried searching and found a few threads on this forum which seemed to indicate this would work, but I can't get it to work. Please help!

Order By: Standard | Newest | Votes
Mike posted this 17 January 2022

Using a normal zip won't work because all the file permissions and flags will be lost. Use a tgz instead.

DrKerbalMD posted this 17 January 2022

Hey Mike thank you for your response! Unfortunately this did not change anything. I did the transfer again but this time as a tarball, and I get the same behavior on the new server: the instance will not let me manage or start it and does not appear to have been imported correctly.

This might be helpful: I tried attaching the instance folder using ampinstmgr attach and got this error:

amp@bo:~/.ampdata/instances$ ampinstmgr attach ButtzValheim/
[Info] AMP Instance Manager v2.3.1 built 13/01/2022 21:17
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Notice] AMP Service port ranges have not been specified, using any available...
[Notice] Application Service port ranges have not been specified, using any available...
/usr/bin/chmod: cannot access 'ButtzValheim/AMP_Linux_x86_64': No such file or directory
[Error] IM was unable to execute the requested command.
[Error] FileNotFoundException
[Error] [0] (FileNotFoundException) : Couldn't find the specified application: ButtzValheim/AMP_Linux_x86_64
[Error]   at ModuleShared.Utilities.RunUtilityAsync (String ExecutableFile, String Arguments, String WorkingDirectory, String RunAsUser, Boolean SensitiveArgs, Collections.Generic.IDictionary`2[TKey,TValue] EnvironmentArgs) 
  at InstanceManagerPlugin.LocalInstanceManager.ConfigureAMP (InstanceManagerPlugin.AMPInstanceBase Spec, Collections.Generic.Dictionary`2[TKey,TValue] Args, ModuleShared.RunningTask Task) 
  at InstanceManagerPlugin.LocalInstanceManager.AttachInstance (String DirectoryToInstance, Collections.Generic.Dictionary`2[TKey,TValue] OverlaySettings, String NewLicenceKey, Boolean KeepExistingInstanceID, Boolean SetupDaemon) 
  at InstanceManagerCLI.Core.AttachInstance (String InstancePath, String LicenceKey, Boolean KeepExistingID) 
  at InstanceManagerCLI.Core.ExecuteCommand (Collections.Generic.List`1[T] Params, Collections.Generic.Dictionary`2[TKey,TValue] Args)

Mike posted this 17 January 2022

You need to give a full path (/home/amp/.ampdata/instances/ButtzValheim)

DrKerbalMD posted this 17 January 2022

No error when attaching, but the instance is still not usable.

amp@bo:~/.ampdata/instances$ ampinstmgr attach /home/amp/.ampdata/instances/ButtzValheim/
[Info] AMP Instance Manager v2.3.1 built 13/01/2022 21:17
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Notice] AMP Service port ranges have not been specified, using any available...
[Notice] Application Service port ranges have not been specified, using any available...
[10:50:26] [Core Info]            : Starting AMP version 2.3.1.0 (Triton), built 13/01/2022 21:16
[10:50:26] [Core Info]            : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[10:50:27] [Core Warning]         : Current time zone is set to EST - Servers should ideally be UTC to avoid time-zone related issues
[10:50:27] [Core Info]            : OS: Linux / x86_64
[10:50:27] [Core Info]            : CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (4C/8T)
[10:50:27] [Core Info]            : AMP Instance ID: b460b7e2-e3f1-4c6d-8022-c01c8427d99b
[10:50:27] [ModuleLoader Info]    : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited
[10:50:27] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[10:50:27] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [ModuleLoader Info]    : GenericModule requests dependency steamcmdplugin...
[10:50:27] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[10:50:27] [Core Warning]         : No such setting node: Core.Login.LDAPAllowAuthOnAnyDomain - maybe the relevant plugin/module isn't loaded?
[10:50:27] [Core Error]           : Unable to set Core.AMP.PreviousVersion (Version) to 
[10:50:27] [Core Error]           :  is not a valid Version
[10:50:27] [Core Info]            : -configonly specified or activation performed. Saving settings and shutting down. This is perfectly normal.

The instance doesn't get named when I do it this way, either:

noname

Mike posted this 17 January 2022

Instead of doing repair, do an attach instead.

DrKerbalMD posted this 17 January 2022

I used the attach command. You can see the exact command I used on the first line of the terminal session I put in my last post.

Mike posted this 17 January 2022

Hard to say then, try creating a new Valheim instance and just copying the data in rather than the entire instance.

DrKerbalMD posted this 17 January 2022

I can't even get this to work. I make a new ValheimPlus instance on the server, and then copy over just the Valheim folder from the old server to the new server. I set a random password for the AMP user so I can't scp directly from instance folder to instance folder, but I compress it to a tarball before moving it so permissions should be preserved.

When I connect to the Valheim instance on the new server, I spawn into an empty world.

Mike posted this 17 January 2022

You use AMPs built in SFTP to transfer files, not the system SFTP.

DrKerbalMD posted this 18 January 2022

Ok. I created a ValheimPlus instance on the new server. I zipped "valheim_server_Data" on the old server using the archive command in the File Manager tab. I downloaded it to my Windows machine. I uploaded the .zip archive to the new server after connecting via WinSCP using the "Connect via SFTP" button on the File Manager tab. I extracted it into Valheim/valheim_server_Data/ on the new server, so the Valheim folder on the new server is structured just like the old one. I changed the world name and world seed to match the old server. I started the Valheim server and connected from my Windows machine.

Same problem. Spawn into empty world.

Mike posted this 18 January 2022

It's the "Data" directory you want for your saved world, not "valheimserverdata".

DrKerbalMD posted this 19 January 2022

That worked. Thanks so much for your help and patience. I have one more question: where do Satisfactory saves live? My server doesn't seem to have a /home/amp/.config/Epic directory.

[EDIT] Never mind, found it, posting here for posterity:

/home/amp/.ampdata/instances/<servername>/.virtualhome/.config/Epic/FactoryGame/Saved/SaveGames/server</servername>

Close