Jump to content

Moving Portable Emby Install breaks library reference.


dbailey1114

Recommended Posts

dbailey1114

Seems that if you move Emby (Portable) everything is fine, except this reference to the library information?

 

Everything else is detected in the correct new location, except this, and it only errors when you try to scan the library.

 
Program data path: D:\Emby\programdata
Application directory: D:\Emby\system
System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\Emby\programdata\root\default\Movies'.

Any Idea how I can fix this easily/quickly?

  • Like 1
Link to comment
Share on other sites

Hi, you can't easily do that. You may be too remove that library and then add it back.

 

For newer installations this has been corrected. Thanks.

Link to comment
Share on other sites

Napsterbater

Op, here, Was in wrong account when I posted.

 

This is a brand new install. Downloaded and installed yesterday, is there a newer version?

Edited by Napsterbater
Link to comment
Share on other sites

  • 4 weeks later...
Napsterbater

I am currently running the latest beta. And it seems the database is not updated?

 

So I'm guessing the only option I have is to delete the libraries and re add them.

 

Now my question is if I do that what happens to the watched status for the users? Will it carry over?

Link to comment
Share on other sites

Happy2Play

Library paths are set by the admin when they are added. You would have to remove and readd the library. If you were to manually update the database you would have to ensure you update library paths also (Emby-Server\programdata\root\default\each library\*.mblink). No real way to make libraries portable.

Watched status is tracked by providerid so changes will only affect items without providerids.
 

Is there a manual database query/command that can be run? Literally just changing 1 Letter. E to D in that path.

 

Not a database person but tested this and worked (ensure you backup db before editing)

UPDATE MediaItems SET Path = replace( Path, 'E:', 'D:' );

 

Edited by Happy2Play
Link to comment
Share on other sites

Napsterbater

Thanks for the Reply, but I am no talking about the Path to where the Media Files themselves are located, I am talking about where Emby Keeps the Information about a particular library and options.xml and such.

 

As you can see in the first post I moved Emby as a whole (Installed as portable) but the Library folder locations were hardcoded in the database in prev versions of Emby, the beta has changed that but it doesn't seem to be retro active.

 

So It seems either I need to delete the library in Emby and readd it, which may not be an issue as long as play status is still kept, and if it is this is the simplest/safest way.

Or I need to update the reference to that location in the database.

Link to comment
Share on other sites

You could manually edit the db. But yes as you've seen, going forward with 3.6 there should be no more problems moving things around.

  • Like 1
Link to comment
Share on other sites

Napsterbater

Is there anyway Emby can update existing entries upon updating to the new version?

 

Because that seems like it would be very useful to everyone that is going to be updating with old entries that make emby not as portable as it should be.

 

Also, I never got an answer, if I delete the library and recreate it will the watched status all be reset?

Link to comment
Share on other sites

 

 

Because that seems like it would be very useful to everyone that is going to be updating with old entries that make emby not as portable as it should be.

 

this will actually happen on it's own over time, as new records get re-saved.

 

 

 

Also, I never got an answer, if I delete the library and recreate it will the watched status all be reset?

 

It depends. For movies and tv series, we store user data based on provider id's such as tmdb/tvdb, etc. Assuming these stay intact then so should your watch data. Other things like home videos, yes you may lose some watch data unless the library has exactly the same path as before.

  • Like 1
Link to comment
Share on other sites

Happy2Play

If you have to delete the database and rebuild it you will loose all userdata.  You can export and import the tables or use the Server Configuration Backup Plugin to backup and restore userdata.

Link to comment
Share on other sites

Napsterbater

this will actually happen on it's own over time, as new records get re-saved.

 

 

 

It depends. For movies and tv series, we store user data based on provider id's such as tmdb/tvdb, etc. Assuming these stay intact then so should your watch data. Other things like home videos, yes you may lose some watch data unless the library has exactly the same path as before.

So I took the leap and deleted my movies and TV libraries and simply recreated And re added them. Seems all watched status is in place.

 

But it does still seem like this should be something that should be updated in the database on the first time after an upgrade to this version, instead of having to wait an indeterminate amount of time before you can move your supposedly portable Envy installation.

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...