LocalFileBackupPlugin/TakeBackup NullReferenceException

  • 53 Views
  • Last Post 27 October 2021
  • Topic Is Solved
BroOtti posted this 18 October 2021

OS: Ubuntu 20.04.3 LTS

Product: AMP 2.2.2.2

Problem Description: After upgrading from 2.2.0.6 to 2.2.2.2 backups not working for my main panel on server 1(Controller). No problems on server 2(Target) after same upgrade. Error from Log:

[21:08:56] [APIService:admin Warning] : Returned exception from API call LocalFileBackupPlugin/TakeBackup
[21:08:56] [Core:admin Error]     : NullReferenceException
[21:08:56] [Core:admin Error]     : [0] (NullReferenceException) : Object reference not set to an instance of an object
[21:08:56] [Core:admin Error]     :   at GSMyAdmin.Scheduler+<>c__DisplayClass42_0.<key_fired>b__5 (Text.RegularExpressions.Match m)
  at Text.RegularExpressions.Regex.Replace (Text.RegularExpressions.MatchEvaluator evaluator, Text.RegularExpressions.Regex regex, String input, Int32 count, Int32 startat)
  at Text.RegularExpressions.Regex.Replace (String input, Text.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat)
  at Text.RegularExpressions.Regex.Replace (String input, Text.RegularExpressions.MatchEvaluator evaluator)
  at GSMyAdmin.Scheduler.Key_Fired (Object sender, EventArgs e)
  at ModuleShared.Extensions.InvokeSafe[T] (EventHandler`1[TEventArgs] handler, Object sender, T args)
  at GSMyAdmin.Scheduler+ScheduleTrigger.Fire (Object source, EventArgs e)
  at GSMyAdmin.Scheduler+EventTrigger.<.ctor>b__20_0 (Object sender, EventArgs e)
  at GSMyAdmin.Scheduler+EventHandlerPusher+<>c__DisplayClass1_0`1[T].<wrap>b__0 (Object sender, T e)
  at ModuleShared.Extensions.InvokeSafe[T] (EventHandler`1[TEventArgs] handler, Object sender, T args)
  at LocalFileBackupPlugin.PluginMain.Provider_BackupActionStarting (Object sender, LocalFileBackupPlugin.BackupStatusChangeEventArgs e)
  at ModuleShared.Extensions.InvokeSafe[T] (EventHandler`1[TEventArgs] handler, Object sender, T args)
  at LocalFileBackupPlugin.BackupProvider.TakeBackup (LocalFileBackupPlugin.BackupManifest manifest)
  at LocalFileBackupPlugin.WebMethods.TakeBackup (String Title, String Description, Boolean Sticky)
  at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest)
  at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest)

Actions taken to resolve so far:

  • ampinstmgr --nocache -p

  • ampinstmgr fixperms #as root

  • shutdown -r now

  • delete browser cache

Order By: Standard | Newest | Votes
Mike posted this 19 October 2021

What's in your schedule?

BroOtti posted this 19 October 2021

Thanks :)

It seems there's a problem with the emitted value {@Reason} for the trigger "A backup has started."

If I start the trigger immediately, it emails me and pushes a message via PushBullet.

But if the backup is triggered manually or via trigger, it fails with the error.

Mike posted this 20 October 2021

Can you show me the exact schedule you're using please?

BroOtti posted this 21 October 2021

I can't insert the screenshots.

BroOtti posted this 21 October 2021

Refused to load the image '' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-eval' *.cubecoders.com *.youtube.com *.ytimg.com *.imgur.com *.gravatar.com *.googleapis.com *.bootstrapcdn.com *.paypal.com *.paypalobjects.com *.google.com *.gstatic.com *.patreonusercontent.com 'unsafe-inline'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.

Is the first error if I insert the screenshot.

POST support.cubecoders.com/post/createpost/ 500

Follows after the first error if I try to send a message. Even if I write something without an URL. I have to reload the site to send a new message.

BroOtti posted this 21 October 2021

With this schedule the backup works:

ibb.co/JQDB5gv

With this schedule the backup doesn't work:

ibb.co/bJQVFdM

BroOtti posted this 21 October 2021

Ok, without "https://" it works..

Mike posted this 22 October 2021

Try the latest release. Should be okay now.

BroOtti posted this 27 October 2021

Sorry for the late response.

I tested with AMP Release "Triton" v20211027.1, built 27/10/2021 03:00, and it works :)

Thank you!

Close