Jump to content


Photo

Server Migration (Backup & Restore)

server migrate custom settings configuration premiere sync backup restore

  • Please log in to reply
36 replies to this topic

#21 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 08 July 2018 - 06:47 AM

Ok, I parsed through the log files, and these are the errors I'm seeing:

 

Backup error:  One thing I noticed is that on the old server, when I went into the plugin, it showed me all the objects I wanted to back up.  I had everything selected.  On the new install, I don't see this list of objects anywhere, not even when I initially installed it.  Furthermore, when I tried restoring the backup that the plugin created this morning on the new server, I got the same "Invalid Timestamp" message, so I think that proves the issue is not actually with the backup file timestamp.  Perhaps I should un-install this plugin and try again?

2018-07-07 17:54:39.387 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.4.1.27
	Command line: C:\Users\peter\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 28
	Program data path: C:\Users\peter\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\peter\AppData\Roaming\Emby-Server\system
	System.NullReferenceException: Object reference not set to an instance of an object.
	   at MBBackup.ServerEntryPoint.ExecuteRestore(BackupInfo settings, CancellationToken cancellationToken, IProgress`1 progress, Boolean isAuto)
	System.NullReferenceException
	   at MBBackup.ServerEntryPoint.ExecuteRestore(BackupInfo settings, CancellationToken cancellationToken, IProgress`1 progress, Boolean isAuto)

User profile: (when I got into any user profile, everything is blank and that "circle" just spins forever).  So me just copying over the user folder from the old install apparently didn't quite pull everything with it.

2018-07-07 18:12:02.769 Error UserManager: Error reading policy file: C:\Users\peter\AppData\Roaming\Emby-Server\programdata\config\users\3c37c9e021954c67837b9a6db3d4abde\policy.xml
	*** Error Report ***
	Version: 3.4.1.27
	Command line: C:\Users\peter\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 28
	Program data path: C:\Users\peter\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\peter\AppData\Roaming\Emby-Server\system
	System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.
	   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
	   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
	   at System.Xml.XmlTextReaderImpl.Read()
	   at System.Xml.XmlReader.MoveToContent()
	   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUserPolicy.Read7_UserPolicy()
	   --- End of inner exception stack trace ---
	   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
	   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
	   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
	   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
	   at Emby.Server.Implementations.Library.UserManager.GetUserPolicy(User user)
	System.InvalidOperationException
	   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
	   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
	   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
	   at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
	   at Emby.Server.Implementations.Library.UserManager.GetUserPolicy(User user)
	InnerException: System.Xml.XmlException
	System.Xml.XmlException: Root element is missing.
	   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
	   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
	   at System.Xml.XmlTextReaderImpl.Read()
	   at System.Xml.XmlReader.MoveToContent()
	   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUserPolicy.Read7_UserPolicy()
	   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
	   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
	   at System.Xml.XmlTextReaderImpl.Read()
	   at System.Xml.XmlReader.MoveToContent()
	   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderUserPolicy.Read7_UserPolicy()

Web socket: (not sure what this is related to, but I see this in every log file generated since yesterday)

2018-07-07 15:42:21.869 Error HttpServer: Error closing web socket response
	*** Error Report ***
	Version: 3.4.1.27
	Command line: C:\Users\peter\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 28
	Program data path: C:\Users\peter\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\peter\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'SocketHttpListener.Net.HttpListenerResponse'.
	   at SocketHttpListener.Net.HttpListenerResponse.CheckDisposed()
	   at SocketHttpListener.Net.HttpListenerResponse.set_StatusCode(Int32 value)
	   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)
	System.ObjectDisposedException
	   at SocketHttpListener.Net.HttpListenerResponse.CheckDisposed()
	   at SocketHttpListener.Net.HttpListenerResponse.set_StatusCode(Int32 value)
	   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)
	
2018-07-07 15:42:21.869 Error HttpServer: Error closing web socket response
	*** Error Report ***
	Version: 3.4.1.27
	Command line: C:\Users\peter\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 28
	Program data path: C:\Users\peter\AppData\Roaming\Emby-Server\programdata
	Application directory: C:\Users\peter\AppData\Roaming\Emby-Server\system
	System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'SocketHttpListener.Net.HttpListenerResponse'.
	   at SocketHttpListener.Net.HttpListenerResponse.CheckDisposed()
	   at SocketHttpListener.Net.HttpListenerResponse.set_StatusCode(Int32 value)
	   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)
	System.ObjectDisposedException
	   at SocketHttpListener.Net.HttpListenerResponse.CheckDisposed()
	   at SocketHttpListener.Net.HttpListenerResponse.set_StatusCode(Int32 value)
	   at EmbyServer.SocketSharp.WebSocketSharpListener.TryClose(HttpListenerContext ctx, Int32 statusCode)

If you want to see the log files in their entirety, let me know.  A couple of them are quite large from when I did the initial re-scan of my libraries.  This is what I got:

 

embylogfiles.JPG

 

I wonder if I botched something by manually moving folders/files over from the old install since I couldn't get the backup plugin to restore?


Edited by pclausen, 08 July 2018 - 06:50 AM.

  • Moviewatchers likes this

#22 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146596 posts
  • Local time: 02:15 AM

Posted 08 July 2018 - 10:38 AM

Yea perhaps try without the manual copying.

#23 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 11:26 AM

Did a complete un-install and then a re-install.  Restored my Premiere key and then the Backup plugin.  This time it won't even let me set the backup location.  Just get that spinning circle when I go to the page.
 
I did not manually copy any files/folders over this time.

 

All log files from this new install are attached.  I don't see any errors.

 

EDIT:  Also attached the install log file.

Attached Files


Edited by pclausen, 09 July 2018 - 11:32 AM.

  • Moviewatchers likes this

#24 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146596 posts
  • Local time: 02:15 AM

Posted 09 July 2018 - 11:31 AM

It might be specific to the current beta build. Please try again with the next one. Thanks.



#25 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 11:33 AM

Ok, will do.



#26 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 01:18 PM

I uninstalled the latest beta and installed the 3.4.1.0 release, and everything worked and I was able to restore from backup using the plugin.  I didn't realize it also restores all my plugins.  That is a very cool feature!

 

Once it is done scanning the media library, I'll switch to the latest beta again I think, but I'm going to image the drive first with Macrium Reflect!


Edited by pclausen, 09 July 2018 - 01:19 PM.


#27 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146596 posts
  • Local time: 02:15 AM

Posted 09 July 2018 - 01:26 PM

Hopefully you installed stable clean and fresh. It is not safe to do an over the top rollback.



#28 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 01:57 PM

Yep, I completely removed all traces of the beta install before doing the clean install of the stable release.



#29 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 04:08 PM

How do I switch back to the Beta train?

 

Under Settings/Automatic Updates, I have checked both "Enable automatic server updates" and "Allow the server to restart automatically to apply updates".  I see nothing here to switch to the Beta train.



#30 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15325 posts
  • Local time: 07:15 AM
  • LocationKent, England.

Posted 09 July 2018 - 04:11 PM

How do I switch back to the Beta train?

 

Under Settings/Automatic Updates, I have checked both "Enable automatic server updates" and "Allow the server to restart automatically to apply updates".  I see nothing here to switch to the Beta train.

 

You have to shutdown Emby server, download the beta setup.exe from the website and install.


  • pclausen likes this

#31 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 09 July 2018 - 04:31 PM

Thanks. That did the trick.



#32 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 11 July 2018 - 05:50 PM

Since migrating to the new server (same hardware, just a new C: drive), none of my clients are able to log in automatically any longer.  I have Shield, Apple TV and Roku clients.  Symptoms are similar on all 3 client types and are as follows:

 

Shield - Takes a long time to start, and I'm present with the user list each time, and I then pick a user and have to enter the password.  Then I'm good for that session.  In the Emby config on the Shield, I do have it set to log in as a specific user like I always have, and set to NOT require the password be typed in.  But despite this, I have to go through the motions each time I pick the Emby app.

 

Apple TV - Shows 2 Emby server icons (both are same IP and Port).  I pick one and then a user and then password and I'm in.  If I tell it for forget one of them, I can no longer get in.  When I launch the Emby app, I just get a white screen and a reboot of the Apple TV is needed to get back, at which time I'm back to the 2 Emby server icons.  I can get in as long as I don't try to forget one of the server icons first.

 

Roku - Haven't tried it first hand, but based on what I was told, it behaves similar to the other 2 clients.

 

So the issue must be on the server side.  Under devices I see all 3 client and the user that most recently logged in from each.  If I click the little dots and choose to delete the device, it gets ignored and it is still there.

 

p.s. I don't have any of that "easy pin" stuff enabled.

 

Never had this type of issue before.  Any idea what might be going on?


Edited by pclausen, 11 July 2018 - 05:52 PM.


#33 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146596 posts
  • Local time: 02:15 AM

Posted 11 July 2018 - 06:08 PM

Try clearing their app data in case that might help.

#34 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15325 posts
  • Local time: 07:15 AM
  • LocationKent, England.

Posted 11 July 2018 - 06:48 PM

WRT to Shield, change the option to always login with this user, to always display the login screen.

Log out and in and then change the option back.

That normally fixes that issue.

#35 pclausen OFFLINE  

pclausen

    Advanced Member

  • Members
  • 373 posts
  • Local time: 03:15 AM

Posted 11 July 2018 - 07:11 PM

That did the trick on the Shield!  (Luke's suggestion)

 

I'm not seeing a similar function on the AppleTV.  I guess worse case I can uninstall Emby and reinstall it.  But I'll try something along the lines of what you suggested CB on the AppleTV and Roku's.


Edited by pclausen, 11 July 2018 - 07:13 PM.


#36 Fratopolis OFFLINE  

Fratopolis

    Advanced Member

  • Members
  • 250 posts
  • Local time: 01:15 AM

Posted 12 July 2018 - 11:33 PM

Luke, For windows can people not just backup their entire emby-server folder if using Windows? Then no need to reinvite people to reattach accounts.

#37 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146596 posts
  • Local time: 02:15 AM

Posted 13 July 2018 - 12:35 AM

As long as the new install will be replacing the old one, yes.







Also tagged with one or more of these keywords: server, migrate, custom, settings, configuration, premiere, sync, backup, restore

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users