Jump to content

Backup & Restore - Cannot Restore Userdata


James W
Go to solution Solved by Luke,

Recommended Posts

I seem to be experiencing a bug with the Backup & Restore plugin. Every time I try to restore an older backup nothing happens. I have narrowed it down to the "User Playstate, Favorites, Resume, etc. - Select original user and user to import data into" section. If I select any user to restore and press the restore button nothing happens at all. No warning or message. I actually found this out when trying to restore a backup on a test environment for the .NET Core version but can also reproduce it on the Mono version.

 

After I found the issue when attempting to upgrade to .NET I reloaded my VM snapshot and tested on the Mono version with the same results. It also seems if I attempt to restore plugins it will appear to work with a warning pop up and then the server restarts but the plugins were never restored. 

 

My usernames are in the format of user@mydomain.com if that makes any difference. 

 

Emby Backup
Version 1.1.7.0

 

Server log attached. 

 

** Update ** 

 

It seems the @ in the username is causing the issues. I renamed a user to remove the @mydomain.com then created a new backup and tried to restore just that one user without @ and the warning message popped up. I did not restore but I suspect it would work as with @mydomain.com you never even get a pop up. 

 

I would prefer not to rename all my users as that would cause confusion to people logging. I try to keep everything the same and all other services I have use an email style login because they are all connected to my domain via LDAP or Radius authentication. 

EmbyLog.txt

Edited by James W
Link to comment
Share on other sites

@@Luke

 

it did not seem to solve the issue in the Mono version. I tried to restore an older backup and even created a new one then tried to restore that. Same issue any username with @ and nothing happens. Now it seems there is not much output in the log when trying to restore. 

 

Should I have to delete the plugin first then install this test one? I just renamed the old plugin and then manually installed this one and tested. 

 

 

EmbyLog2.txt

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
shocker

Hello,

  I'm using Emby server v3.3.1.1 beta with Emby backup 1.1.9.0 and if I'm trying to restore the watched status for a user that have his email address as a user, the restore button is not working.

  For example if you only select a user like admin@ and hit restore button, nothing happens. For normal users like "Bart" everything is ok.

 

Thanks.

Link to comment
Share on other sites

shocker

Server log?

When I hit the restore button after I'm selecting only the users with email addresses as usernames, nothing is written in the server log.

I think there is a UI bug as I don't have the pop-up warning window to confirm when I hit the restore button.

Edited by shocker
Link to comment
Share on other sites

I've pushed an update to the plugin. Can you guys please try again? Thanks.

Link to comment
Share on other sites

shocker

Same issue for me, the restore button is not triggering any action while selecting a user with email format to restore.

 

Emby server 3.3.1.2 beta and plugin version 1.2.0.0.

Edited by shocker
Link to comment
Share on other sites

  • 2 weeks later...
James W

@@Luke

 

Unfortunately still not working for any usernames that have @

 

Seems to affect the User Playstate, Favorites, Resume, etc.section

 

On a plus side it appears that the new update has started producing log output again. 

 

Backup Version 1.2.0.0

2018-03-18 00:44:33.062 Info HttpServer: HTTP GET http://emby.example.com:8096/web/configurationpage?v=3.3.1.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
2018-03-18 00:44:33.065 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.3.1.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.4.0.116
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.0.160 (tarball Wed Mar  7 15:30:00 UTC 2018)
	Processor count: 4
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	MediaBrowser.Common.Extensions.ResourceNotFoundException: Exception of type 'MediaBrowser.Common.Extensions.ResourceNotFoundException' was thrown.
	  at MediaBrowser.WebDashboard.Api.DashboardService.Get (MediaBrowser.WebDashboard.Api.GetDashboardConfigurationPage request) [0x001eb] in <bade9f7482c54bf392fd30cf594f0cc5>:0 
	  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object,object)
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x000e4] in <07306ae2f140476099e69d171d6871b3>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <f56c876907e742b0aa586f051fcce845>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <07306ae2f140476099e69d171d6871b3>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <f56c876907e742b0aa586f051fcce845>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00770] in <07306ae2f140476099e69d171d6871b3>:0 
	MediaBrowser.Common.Extensions.ResourceNotFoundException
	  at MediaBrowser.WebDashboard.Api.DashboardService.Get (MediaBrowser.WebDashboard.Api.GetDashboardConfigurationPage request) [0x001eb] in <bade9f7482c54bf392fd30cf594f0cc5>:0 
	  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object,object)
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x000e4] in <07306ae2f140476099e69d171d6871b3>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <f56c876907e742b0aa586f051fcce845>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <07306ae2f140476099e69d171d6871b3>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f56c876907e742b0aa586f051fcce845>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <f56c876907e742b0aa586f051fcce845>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00770] in <07306ae2f140476099e69d171d6871b3>:0  

20180318-EmbyLog.txt

Edited by James W
Link to comment
Share on other sites

I tested the following scenario which worked:

 

backup containing user without @ -> restoring into a user with @ in the username. This worked fine.

 

Is this what you're seeing? I'll test the opposite direction.

Link to comment
Share on other sites

shocker

I tested the following scenario which worked:

 

backup containing user without @ -> restoring into a user with @ in the username. This worked fine.

 

Is this what you're seeing? I'll test the opposite direction.

 

No, actually if you want to restore user test@ under the same user test@.

The problem is if a user test@ is selected for restoration the GUI js is not triggering the warning popup (even if you have 10 users without @ and only one selected with @ is not working. If you select all the users except the one with @, it's ok).

Nothing happens if you click the restore button while a user like test@ is selected in GUI.

Link to comment
Share on other sites

James W

@@Luke

 

After updating to 1.2.1.0 initial testing is showing that restoring users with @ is now working.

 

I deleted a user testuser@domain.com then imported the user and playstates and everything appears to have returned. I did notice this morning that my scheduled task for backup was marked as failed. Performing a manual backup ended in success. I will check again tomorrow to see if the automated one failed again.

 

Finally I can move my server over to .NetCore and delete Mono :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...