James W 7 Posted January 22, 2018 Share Posted January 22, 2018 (edited) 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 January 22, 2018 by James W Link to comment Share on other sites More sharing options...
Luke 37192 Posted January 23, 2018 Share Posted January 23, 2018 @@James W, thanks, i've been looking this. Attached is a possible fix for the plugin. Would you mind trying it? And @@Happy2Play if you have time. Thanks ! MBBackup.zip Link to comment Share on other sites More sharing options...
James W 7 Posted January 24, 2018 Author Share Posted January 24, 2018 @@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 More sharing options...
James W 7 Posted February 20, 2018 Author Share Posted February 20, 2018 @@Luke Any updates on this issue? I am slightly concerned as all of my current backups are useless if my server was to crash. Link to comment Share on other sites More sharing options...
Luke 37192 Posted February 20, 2018 Share Posted February 20, 2018 We're still looking into it, thanks. Link to comment Share on other sites More sharing options...
shocker 113 Posted March 5, 2018 Share Posted March 5, 2018 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 More sharing options...
Luke 37192 Posted March 5, 2018 Share Posted March 5, 2018 Server log? Link to comment Share on other sites More sharing options...
shocker 113 Posted March 5, 2018 Share Posted March 5, 2018 (edited) 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 March 5, 2018 by shocker Link to comment Share on other sites More sharing options...
shocker 113 Posted March 6, 2018 Share Posted March 6, 2018 @@Luke can you reproduce this bug? Link to comment Share on other sites More sharing options...
Happy2Play 8340 Posted March 6, 2018 Share Posted March 6, 2018 What browser? Link to comment Share on other sites More sharing options...
shocker 113 Posted March 6, 2018 Share Posted March 6, 2018 Google Chrome latest version on latest Mac OSX Link to comment Share on other sites More sharing options...
James W 7 Posted March 7, 2018 Author Share Posted March 7, 2018 I am having the same issue. I started a thread a while ago, last update Luke was still looking into it. There used to be log output when it failed but after the last plugin update nothing happens at all, no log output and no error messages. https://emby.media/community/index.php?/topic/55205-backup-restore-cannot-restore-userdata/ Link to comment Share on other sites More sharing options...
Luke 37192 Posted March 7, 2018 Share Posted March 7, 2018 @@shocker i've merged your thread into there. Link to comment Share on other sites More sharing options...
Luke 37192 Posted March 8, 2018 Share Posted March 8, 2018 I've pushed an update to the plugin. Can you guys please try again? Thanks. Link to comment Share on other sites More sharing options...
shocker 113 Posted March 8, 2018 Share Posted March 8, 2018 (edited) 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 March 8, 2018 by shocker Link to comment Share on other sites More sharing options...
Luke 37192 Posted March 8, 2018 Share Posted March 8, 2018 And @@James W? Link to comment Share on other sites More sharing options...
shocker 113 Posted March 17, 2018 Share Posted March 17, 2018 Can anyone else reproduce this bug? Link to comment Share on other sites More sharing options...
James W 7 Posted March 18, 2018 Author Share Posted March 18, 2018 (edited) @@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 March 18, 2018 by James W Link to comment Share on other sites More sharing options...
Luke 37192 Posted March 26, 2018 Share Posted March 26, 2018 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 More sharing options...
shocker 113 Posted March 26, 2018 Share Posted March 26, 2018 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 More sharing options...
Solution Luke 37192 Posted March 26, 2018 Solution Share Posted March 26, 2018 Ok I just pushed an update. Please try it out. Thanks. 1 Link to comment Share on other sites More sharing options...
James W 7 Posted March 26, 2018 Author Share Posted March 26, 2018 @@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 More sharing options...
Luke 37192 Posted March 26, 2018 Share Posted March 26, 2018 Thanks for the feedback ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now