Jump to content

@Devs-Emby generating empty nfo files or emptying them...weird!


TechLife
Go to solution Solved by Luke,

Recommended Posts

TechLife

I moved Emby to a new computer and am now in the process of renaming all of my TV series episode files so they play nice with Sonarr.  I am going into the folder, deleting everything but the mkv file then letting Emby repopulate all of the metadata at the season level.  Much of the time it works properly but sometimes it generates an empty nfo file.  When it does this, I can delete the empty nfo files and they repopulate correctly then Kodi can import using local info only.

 

Part two of this just happened.  In a particular season, I found an empty season nfo.  I deleted the season nfo then in metadata manager, told it to refresh that season.  When I did that, it generated a new season nfo but deleted the contents of the nfo files for the 2 episodes in that season.  So I deleted those two episode nfo's and waited and they repopulated correctly on their own.

 

Very weird...

 

This is on Emby v3.1.140.0.  I was on the beta channel before on the old box, switched back to release but when I went to move it, noticed release hadn't caught up to the version of beta I was on so I downloaded the new beta to install on the new machine because I was concerned the data files from a newer version wouldn't play nice with an older release.

 

It's more of a nuisance than anything but I thought the devs may like to know.  If you want logs, I can try to duplicate and send them over.

Edited by TechLife
Link to comment
Share on other sites

Happy2Play

You will need to post your server log.  Emby could be having issues communicating with the providers.  When you do a Refresh it will always refresh everything under that level.  So at Season level it refreshes season + episodes.

 

As for update level, you may have to edit your system.xml to the level you want.  The installer is suppose to set that level at the time of install now.

Link to comment
Share on other sites

TechLife

Thanks for your reply.  I confirmed I am on release now in the system.xml.  Not that I mind being on beta but I don't really have time to play with it much right now so I decided to drop back.

 

Here's a link to all of the logs since I installed it on the new box a few days ago.  No such thing as too much information, right?   ;)  The last 3-4 are probably the most interesting...

 

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63608986802.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609052180.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609052297.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609062400.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609073200.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609101977.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609114562.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609148800.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609159602.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609181245.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609199146.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609199165.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609235200.txt

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609246004.txt

 

Update - This seems to be a pretty common occurrence:

 

2016-09-12 20:51:26.8304 Info App: Profile: Roku Thumbnails, Path: \\HDA\TV\Alias\Season 1\Alias - s01e08 - Time Will Tell.mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2016-09-12 20:51:26.8304 Info App: Profile: Roku Thumbnails, No direct play profiles found for Path: \\HDA\TV\Alias\Season 1\Alias - s01e08 - Time Will Tell.mkv
2016-09-12 20:51:26.8506 Error ProviderManager: Error in metadata saver
    *** Error Report ***
    Version: 3.1.140.0
    Command line: C:\Users\shamm\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.2.9200.0
    Processor count: 8
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\shamm\AppData\Roaming\Emby-Server
    Application Path: C:\Users\shamm\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
    Root element is missing.
    System.Xml.XmlException
     at System.Xml.XmlTextReaderImpl.Throw(Exception e)
     at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
     at System.Xml.XmlReader.MoveToContent()
     at XmlMetadata.XmlSaverHelpers.GetCustomTags(String path, List`1 xmlTagsUsed)
     at XmlMetadata.XmlSaverHelpers.Save(StringBuilder xml, String path, List`1 xmlTagsUsed, IServerConfigurationManager config, IFileSystem fileSystem)
     at XmlMetadata.EpisodeXmlProvider.Save(IHasMetadata item, CancellationToken cancellationToken)
     at MediaBrowser.Providers.Manager.ProviderManager.<SaveMetadata>d__60.MoveNext()

Edited by TechLife
Link to comment
Share on other sites

TechLife

Update 2 - This I can duplicate reliably

 

If I enter a season folder and the series.nfo is 0 in size, I delete the season.nfo and refresh/search for missing at the season level, it will populate the season.nfo but 0 all episode nfo's and also all xml's in the metadata folder.

 

The only way I can achieve the desired result is to delete ALL nfo's in the season directory and delete the metadata folder then refresh/search for missing.

 

Here's the log with that happening:

https://dl.dropboxusercontent.com/u/49364470/Server%20Logs/server-63609311960.txt

Link to comment
Share on other sites

  • Solution
2016-09-12 21:51:38.4194 Error ProviderManager: Error in metadata saver
	*** Error Report ***
	Version: 3.1.140.0
	Command line: C:\Users\shamm\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: True
	Program data path: C:\Users\shamm\AppData\Roaming\Emby-Server
	Application Path: C:\Users\shamm\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	There is not enough space on the disk.
	
	System.IO.IOException
	   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
	   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
	   at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
	   at System.IO.FileStream.Dispose(Boolean disposing)
	   at System.IO.Stream.Close()
	   at System.IO.StreamWriter.Dispose(Boolean disposing)
	   at System.IO.TextWriter.Dispose()
	   at XmlMetadata.XmlSaverHelpers.Save(StringBuilder xml, String path, List`1 xmlTagsUsed, IServerConfigurationManager config, IFileSystem fileSystem)
	   at XmlMetadata.EpisodeXmlProvider.Save(IHasMetadata item, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.ProviderManager.<SaveMetadata>d__60.MoveNext()

The most relevant part is

There is not enough space on the disk.

I think we can try to better handle this situation by making sure the original file is untouched when the save fails. But in general when the operating system is raising disk errors it can be hard to guarantee anything.

  • Like 1
Link to comment
Share on other sites

TechLife

Thanks Luke. There's 163GB free on the C drive.  What is it trying to do that there isn't enough space?

 

Or is it referring to the network path //HDA/TV/ ?

Edited by TechLife
Link to comment
Share on other sites

TechLife

Yup.  Greyhole was all backed up.  2TB+ in trash and 0 available as a result.  I need to write a script to empty that nightly.  I'll empty now, buy another 4TB tomorrow and see what happens.  Thanks for your time and sorry I didn't catch that.

Edited by TechLife
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...