Backup and Restore, transferring to new server and errors

natenaterollerskate

Member
JFF Supporter
Jan 28, 2019
51
4
8
44
So, the end goal is to move my RAT server from a laptop to a proper server. I ran a database backup on my laptop and attempted to restore it on my server, but it didn't seem to work.

Then I tried to copy the Save Game folder from the laptop to the server, and that seemed to fuck everything up too. I even tried to make sure the Save Name was the same (so that it referenced the correct save game folder), but I got errors.

This is what I'm seeing now on my server:

Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediatly.

When RAT is loading server:
Object reference not set to an instance of an object.

After choosing to quit:
Collection was modified; enumeration operation may not execute.





See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at RAT3.timers.SetGameTime(String timeResult)
at RAT3.frmMain.VB$StateMachine_77_ConnectedToServerStartup.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
RAT3
Assembly Version: 1.0.0.0
Win32 Version: 3.0.1.3
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/RAT3.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4488.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Telerik.WinControls.UI
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Telerik.WinControls.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.114.0
Win32 Version: 1.0.114.0
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/System.Data.SQLite.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
Telerik.WinControls.Scheduler
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Telerik.WinControls.Scheduler.DLL
----------------------------------------
TelerikCommon
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/TelerikCommon.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Telerik.WinControls.GridView
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Telerik.WinControls.GridView.DLL
----------------------------------------
Telerik.WinControls.RadToastNotification
Assembly Version: 2021.3.1123.40
Win32 Version: 2021.3.1123.40
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Telerik.WinControls.RadToastNotification.DLL
----------------------------------------
Microsoft.Toolkit.Uwp.Notifications
Assembly Version: 7.0.0.0
Win32 Version: 7.0.0.1
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Microsoft.Toolkit.Uwp.Notifications.DLL
----------------------------------------
Windows.ApplicationModel
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.ApplicationModel.winmd
----------------------------------------
System.Runtime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll
----------------------------------------
Windows.Foundation
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Foundation.winmd
----------------------------------------
System.Runtime.WindowsRuntime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.WindowsRuntime/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.WindowsRuntime.dll
----------------------------------------
Windows.Storage
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.Storage.winmd
----------------------------------------
DynamicComActivator
Assembly Version: 0.0.0.0
Win32 Version: 7.0.0.1
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Microsoft.Toolkit.Uwp.Notifications.dll
----------------------------------------
Windows.UI
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/system32/WinMetadata/Windows.UI.winmd
----------------------------------------
System.Runtime.InteropServices.WindowsRuntime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll
----------------------------------------
System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
Discord.Net.Core
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0.0
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Discord.Net.Core.DLL
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 13.0.1.25517
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
Discord.Net.WebSocket
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0.0
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Discord.Net.WebSocket.DLL
----------------------------------------
Discord.Net.Rest
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0.0
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Discord.Net.Rest.DLL
----------------------------------------
System.Collections.Immutable
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/System.Collections.Immutable.DLL
----------------------------------------
System.Threading.Tasks.Extensions
Assembly Version: 4.2.0.1
Win32 Version: 4.6.28619.01
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/System.Threading.Tasks.Extensions.DLL
----------------------------------------
Microsoft.Bcl.AsyncInterfaces
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.47505
CodeBase: file:///C:/Program%20Files/NomadSoft/7D2D%20RAT%203/Microsoft.Bcl.AsyncInterfaces.DLL
----------------------------------------
System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.ValueTuple
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ValueTuple/v4.0_4.0.0.0__cc7b13ffcd2ddd51/System.ValueTuple.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
This error "at RAT3.timers.SetGameTime(String timeResult) " will be fixed in a release this weekend. It should only happen while your server is down/starting up and RAT is trying to ping it. So turn off the auto connection for Telnet in RAT, get your server going and reconnect it.

The other issues... I'm not sure what to tell you to do, sorry.
 
I figured it out.
I stupidly installed the latest RAT 3 version over the top of the old one I had without properly uninstalling the previous version.
So, after mulling it over in my head for a day I remembered the correct procedure for uninstalling a RAT installation. Which, if anyone needs this, is this:

Start > Run
-%appdata%
-Go back one
-Local
-Delete Nomadsoft
-Roaming
-Delete Nomadsoft
-Un-istnall RAT
-Install new RAT


This fixed the app from crashing and gave me the ability to restore a good backup properly.
 
  • Like
Reactions: Trekkan