Jump to content

Removed file (movie) does not disappear from the library


dma_k

Recommended Posts

Dear all,

I am sorry for a newbie question, but I am puzzled.

I have removed from command line some video files from a directory which is assigned to a library. Then I have clicked on "Scan Library Files" for the given library. When checking logs I see that there is a number of "not found" exceptions triggered for these files (which is okay), but they didn't disappear from the library.

Did I miss anything?

P.S. I am running Emby server v4.7.6.0 on Linux x64.

Link to comment
Share on other sites

I hope below information will be enough to bring a light on what was happening.

  • My library is bound to directory /mnt/Video
  • I had initially a directory /mnt/Video/Barbie with the following content:
    .:
    total 12
    drwxr-xr-x 1 root root 0 Oct 15  2020 .
    drwxr-xr-x 1 root root 0 Sep 11 14:31 ..
    drwxr-xr-x 1 root root 0 Oct 15  2020 VIDEO_TS
    
    ./VIDEO_TS:
    total 816940
    drwxr-xr-x 1 root root         0 Oct 15  2020 .
    drwxr-xr-x 1 root root         0 Oct 15  2020 ..
    -rw-r--r-- 1 root root    131072 Jan 13  2008 VTS_01_0.IFO
    -rw-r--r-- 1 root root 836413440 Jan 13  2008 VTS_01_1.VOB
  • After initial indexing of the library I have removed that directory and launched a library refresh:
    rm -R /mnt/Video/Barbie
  • After 1 day I can still find Barbie in the library:image.png.2d26b072805fc7fe9f2d31644c4a682c.png

Probably the following extract from logs will put a light on what is happening:

embyserver-63798382756.txt:2022-09-10 01:44:12.658 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /opt/emby-server/bin/ffprobe -i file:"/mnt/Video/Barbie/VIDEO_TS/VTS_01_1.VOB" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
embyserver-63798382756.txt-2022-09-10 01:44:12.779 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
embyserver-63798382756.txt:2022-09-10 01:44:12.780 Info HttpClient: GET https://api4.thetvdb.com/v4/search?type=movie&q=Barbie
embyserver-63798382756.txt:2022-09-10 01:44:13.222 Info App: MovieDbProvider: Finding id for item: Barbie
embyserver-63798382756.txt:2022-09-10 01:44:13.523 Info HttpClient: GET https://api.themoviedb.org/3/search/movie?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&query=Barbie&language=en
embyserver-63798382756.txt:2022-09-10 01:44:13.632 Info HttpClient: GET https://private.omdbapi.com?apikey=‌fe53f97e‌&plot=full&r=json&t=Barbie&type=movie
embyserver-63798382756.txt:2022-09-10 01:44:14.135 Info App: ProcessRun 'quick-extract-image' Execute: /opt/emby-server/bin/ffmpeg -skip_list 10 -threads 1 -copyts -i file:"/mnt/Video/Barbie/VIDEO_TS/VTS_01_1.VOB" -an -sn -update 1 -vf "scale=trunc(min(max(iw\,ih*dar)\,min(600\,0*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(600/dar\,0))/2)*2,thumbnail=24" -vsync 0 -f image2 "/var/lib/emby/cache/temp/4df0381e-9e09-469b-b1ec-eba628905c58.jpg"
embyserver-63798382756.txt-2022-09-10 01:44:14.205 Info App: ProcessRun 'quick-extract-image' Process exited with code 0 - Succeeded
--
embyserver-63798537599.txt:2022-09-11 15:48:49.517 Info LibraryMonitor: Barbie (/mnt/Video/Barbie) will be refreshed.
embyserver-63798537599.txt:2022-09-11 15:50:11.672 Info LibraryMonitor: Video (/mnt/Video) will be refreshed.
--
embyserver-63798537599.txt:2022-09-11 16:56:13.380 Error BaseItem: Error refreshing owned items for /mnt/Video/Barbie
embyserver-63798537599.txt-	*** Error Report ***
embyserver-63798537599.txt-	Version: 4.7.6.0
embyserver-63798537599.txt-	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
embyserver-63798537599.txt-	Framework: .NET 6.0.2
embyserver-63798537599.txt-	OS/Process: x64/x64
embyserver-63798537599.txt-	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
embyserver-63798537599.txt-	Processor count: 8
embyserver-63798537599.txt-	Data path: /var/lib/emby
embyserver-63798537599.txt-	Application path: /opt/emby-server/system
embyserver-63798537599.txt:	System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/Video/Barbie'.
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
embyserver-63798537599.txt-	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
embyserver-63798537599.txt-	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path, Boolean clearCache)
embyserver-63798537599.txt-	   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
embyserver-63798537599.txt-	Source: System.Private.CoreLib
embyserver-63798537599.txt-	TargetSite: IntPtr CreateDirectoryHandle(System.String, Boolean)
--
embyserver-63798537599.txt-	*** Error Report ***
embyserver-63798537599.txt-	Version: 4.7.6.0
embyserver-63798537599.txt-	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
embyserver-63798537599.txt-	Framework: .NET 6.0.2
embyserver-63798537599.txt-	OS/Process: x64/x64
embyserver-63798537599.txt-	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
embyserver-63798537599.txt-	Processor count: 8
embyserver-63798537599.txt-	Data path: /var/lib/emby
embyserver-63798537599.txt-	Application path: /opt/emby-server/system
embyserver-63798537599.txt:	System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/Video/Barbie'.
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
embyserver-63798537599.txt-	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
embyserver-63798537599.txt-	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path, Boolean clearCache)
embyserver-63798537599.txt-	   at Emby.Providers.MediaInfo.SubtitleResolver.GetExternalSubtitleStreams(BaseItem item, Int32 startIndex, IDirectoryService directoryService, Boolean clearCache)
embyserver-63798537599.txt-	   at Emby.Providers.MediaInfo.SubtitleResolver.GetExternalSubtitleFiles(BaseItem item, IDirectoryService directoryService, Boolean clearCache)
embyserver-63798537599.txt-	   at Emby.Providers.MediaInfo.FFProbeProvider.HasChanged(BaseItem item, LibraryOptions libraryOptions, IDirectoryService directoryService)
--
embyserver-63798537599.txt:2022-09-11 17:28:23.837 Error BaseItem: Error refreshing owned items for /mnt/Video/Barbie
embyserver-63798537599.txt-	*** Error Report ***
embyserver-63798537599.txt-	Version: 4.7.6.0
embyserver-63798537599.txt-	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
embyserver-63798537599.txt-	Framework: .NET 6.0.2
embyserver-63798537599.txt-	OS/Process: x64/x64
embyserver-63798537599.txt-	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
embyserver-63798537599.txt-	Processor count: 8
embyserver-63798537599.txt-	Data path: /var/lib/emby
embyserver-63798537599.txt-	Application path: /opt/emby-server/system
embyserver-63798537599.txt:	System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/Video/Barbie'.
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
embyserver-63798537599.txt-	   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
embyserver-63798537599.txt-	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive)
embyserver-63798537599.txt-	   at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path, Boolean clearCache)
embyserver-63798537599.txt-	   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
embyserver-63798537599.txt-	Source: System.Private.CoreLib
embyserver-63798537599.txt-	TargetSite: IntPtr CreateDirectoryHandle(System.String, Boolean)

It complains that the directory is missing (expected), but does not invalidate the content inside it.

Link to comment
Share on other sites

Forgot to mention that libraries do not intersect i.e. there are no "sublibraries". Needless to say that libraries are in read-only mode for Emby server – maybe that confuses the server.

When I have invoked "Scan Library Files" from the library submenu then nothing happens. I see the request comes to the server, and that's it:

2022-09-15 19:07:12.632 Info Server: http/1.1 Response 204 to 192.168.x.x. Time: 20ms. http://localhost:8096/emby/Items/f137a2dd21bbc1b99aa5c0f6bf02a805/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&...

When I pressed "Scan Library Files" globally, then scan job is executed and the following is reported:

2022-09-15 19:12:29.118 Info Server: http/1.1 POST http://‌‍localhost‌:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f?X-Emby-Client=Emby Web&X-Emby-Device-Name=...
2022-09-15 19:12:29.125 Info Server: http/1.1 Response 204 to ‌‍192.168.x.x‌. Time: 7ms. http://‌‍localhost‌:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f?X-Emby-Client=Emby Web&X-Emby-Device-Name=...
2022-09-15 19:12:29.129 Info LibraryMonitor: Stopping directory watching for path /mnt/Video
2022-09-15 19:12:29.129 Info LibraryMonitor: Stopping directory watching for path /mnt/Photos
...
2022-09-15 19:12:53.859 Error BaseItem: Error refreshing owned items for /mnt/Video/Barbie
        *** Error Report ***
        Version: 4.7.6.0
        Framework: .NET 6.0.2
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 8
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/Video/Barbie'.
           at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
           at System.IO.Enumeration.FileSystemEnumerator`1.Init()
           at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
           at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
           at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOption
...
2022-09-15 19:13:04.674 Info LibraryMonitor: Watching directory /mnt/Video
2022-09-15 19:13:04.676 Info LibraryMonitor: Watching directory /mnt/Photos

I have also the same trouble when I have reorganized serials in subfolders as suggested here, which also involved directory renaming/reshuffling: the series eposides are still shown in the library as independent movies and their metadata points to old (wrong) location. There are a number of System.IO.DirectoryNotFoundException in logs and few other not dominating types of errors:

$ grep 'Application path:' -A1 logs/embyserver.txt | cut -c2-90 | sort | uniq -c | sort -nr
  14362 Application path: /opt/emby-server/system
  14099 System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not fin
    219 System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the pat
     39 System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not find file '/m

 

Edited by dma_k
Link to comment
Share on other sites

Happy2Play
1 hour ago, dma_k said:
UnauthorizedAccessException

So you have permissions issues?  But devs will like need to see the entire server log.

Link to comment
Share on other sites

Yes, here and there in the library I have to fix the permissions, but do you agree they should not ruin the scan process? I believe the file that cannot be read should be interpreted as deleted. Or it could be kept, nevermind. The key point is that once I restart the scan process (I believe) Emby server ends up with the same set of exceptions and it seems not to react properly on that.

I can send you the complete log privately (I don't find it safe to post it on public forum), but you could believe me that there is just a bulk of exceptions same as I've posted above between moments the scan is started and ended.

Edited by dma_k
Link to comment
Share on other sites

3 hours ago, dma_k said:

Forgot to mention that libraries do not intersect i.e. there are no "sublibraries". Needless to say that libraries are in read-only mode for Emby server – maybe that confuses the server.

When I have invoked "Scan Library Files" from the library submenu then nothing happens. I see the request comes to the server, and that's it:

2022-09-15 19:07:12.632 Info Server: http/1.1 Response 204 to 192.168.x.x. Time: 20ms. http://localhost:8096/emby/Items/f137a2dd21bbc1b99aa5c0f6bf02a805/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&ReplaceAllMetadata=false&...

When I pressed "Scan Library Files" globally, then scan job is executed and the following is reported:

2022-09-15 19:12:29.118 Info Server: http/1.1 POST http://‌‍localhost‌:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f?X-Emby-Client=Emby Web&X-Emby-Device-Name=...
2022-09-15 19:12:29.125 Info Server: http/1.1 Response 204 to ‌‍192.168.x.x‌. Time: 7ms. http://‌‍localhost‌:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f?X-Emby-Client=Emby Web&X-Emby-Device-Name=...
2022-09-15 19:12:29.129 Info LibraryMonitor: Stopping directory watching for path /mnt/Video
2022-09-15 19:12:29.129 Info LibraryMonitor: Stopping directory watching for path /mnt/Photos
...
2022-09-15 19:12:53.859 Error BaseItem: Error refreshing owned items for /mnt/Video/Barbie
        *** Error Report ***
        Version: 4.7.6.0
        Framework: .NET 6.0.2
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 8
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/Video/Barbie'.
           at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
           at System.IO.Enumeration.FileSystemEnumerator`1.Init()
           at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
           at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
           at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOption
...
2022-09-15 19:13:04.674 Info LibraryMonitor: Watching directory /mnt/Video
2022-09-15 19:13:04.676 Info LibraryMonitor: Watching directory /mnt/Photos

I have also the same trouble when I have reorganized serials in subfolders as suggested here, which also involved directory renaming/reshuffling: the series eposides are still shown in the library as independent movies and their metadata points to old (wrong) location. There are a number of System.IO.DirectoryNotFoundException in logs and few other not dominating types of errors:

$ grep 'Application path:' -A1 logs/embyserver.txt | cut -c2-90 | sort | uniq -c | sort -nr
  14362 Application path: /opt/emby-server/system
  14099 System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not fin
    219 System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the pat
     39 System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not find file '/m

 

Hi, can you please attach the complete emby server log? Thanks.

Link to comment
Share on other sites

Happy2Play
32 minutes ago, dma_k said:

I can send you the complete log privately

Yes PM the server log to Mod and they will attach the Dev.

Link to comment
Share on other sites

Looking at the log you sent earlier, I believe it's due to the entire /mnt/Video mount being offline. The server can't query the contents of any of the folders underneath there. If it could then it would have realized that the video was gone and removed it from the database.

Link to comment
Share on other sites

13 hours ago, Luke said:

Looking at the log you sent earlier, I believe it's due to the entire /mnt/Video mount being offline.

Thanks for looking into the logs. It cannot be that entire /mnt/Video went offline, just because there are many more subfolders which are present and from which videos are played just fine. If you wish, I can press "Scan Library Files" again, and the play one video from the library right afterwards so that these events follow each other.

13 hours ago, Luke said:

The server can't query the contents of any of the folders underneath there. If it could then it would have realized that the video was gone and removed it from the database.

I think that is exactly the issue. If the folder is gone, Emby keeps trying to read from that folder and if it is not present, Emby just skips it. I think that is wrong, at least I would assume that if I remove all files and folders from the filesystem, my library should become empty after scan, right?

If you fear that case is the same as unmounting /mnt/Video and that is dangerous to remove all media, then I would agree with that and probably it should be a configurable option (like "Force subfolder removal").

Anyway, what is the way out? I can implement a script that walks the log and re-creates the missing directories, and after the script finises, safely remove these directories.

P.S. Have you noticed from logs that "Scan Library Files" laucnhed from a submenu (⋮) does not trigger anything?

Edited by dma_k
Link to comment
Share on other sites

Quote

If you fear that case is the same as unmounting /mnt/Video and that is dangerous to remove all media, then I would agree with that and probably it should be a configurable option (like "Force subfolder removal").

Hi, yes this is exactly what we're trying to protect against, so that if you take a library offline temporarily it doesn't get wiped out in Emby Server and then you have to scan it fresh all over again.

Link to comment
Share on other sites

But if the library was online, and only the /mount/video/barbie folder was gone, then it would get deleted from the server database and behave as you would expect.

Link to comment
Share on other sites

56 minutes ago, Luke said:

and only the /mount/video/barbie folder was gone, then it would get deleted from the server database and behave as you would expect.

This expected behavior is not happening in my case, unfortunately. Any further idea how to track / debug this case?

For example, scan procedure could report to log how many files have been removed / added / skipped. Then the question about temporary unavailability would resolve itself.

I just thought that maybe there is a logic that checks how many media files are scheduled for removal and the actual removal happens if their amount is lower the given threshold? E.g. if more that 80% of medias are removed (= library unavailable) then do nothing...

Edited by dma_k
Link to comment
Share on other sites

Let me know how do you come to the conclusion that mount is unreachable? One way would be to log the statistics about how many files/directories are processed and how many are skipped/missing at the end of scan (which is not implemented, I believe).

Link to comment
Share on other sites

On some reason I cannot completely recover, however to workaround the issue I have run the following script

#!/usr/bin/perl

use File::Path qw(make_path);

my %dirs = ();

while (<>) {
        next unless /Could not find a part of the path '(.*?)'/;
        $_ = $1;
        next if /\.(avi|mkv|mp4)$/i;
        $dirs{$_} = 1;
}

foreach (sort keys %dirs) {
       make_path($_, 0, 0755);
}

print scalar(%dirs) . " directories created.\n";

that restores the missing directories. After they have been created, I have re-run the refresh, the following record (among others) has appeared in logs:

2022-09-23 11:10:01.255 Info LibraryMonitor: Barbie (/mnt/Video/Barbie) will be refreshed.

and the missing movies have been removed from the library. Good!

However after removing the newly created directories, Emby does not remove them from the database and complains about missing directories. Unfortunately, Emby refuses to forget them.

Link to comment
Share on other sites

Happy2Play
4 hours ago, dma_k said:

Sure, I can try/test the beta. What is the download link for Linux x64? I tried v4.8.9.0 , but the link is broken.

Well there is no version 4.8.9.0 it is 4.8.0.9.

https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.0.9/emby-server-deb_4.8.0.9_amd64.deb

Link to comment
Share on other sites

6 hours ago, dma_k said:

Sure, I can try/test the beta. What is the download link for Linux x64? I tried v4.8.9.0 , but the link is broken.

Where did you get that link from?

Link to comment
Share on other sites

10 hours ago, Luke said:

Where did you get that link from?

I have typed it manually trying to guess the version, so I have entered the wrong one 🤕 It was not copied from anywhere. If there is a better way to learn the latest beta version, please let me know.

I have updated to v4.8.0.9 (let me know if that is indeed the latest) and I see no substantial progress. I have removed the movie from the library's root, started the library scanner, noticed the exception in logs, but the media is not removed from the library and when I click on that media, Emby displays an error that it cannot be played.

2022-09-27 14:14:04.255 Error Server: Error processing request
        *** Error Report ***
        Version: 4.8.0.9
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt
/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Framework: .NET 6.0.8
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 8
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Error starting ffm
peg
        14:14:04.209 ffmpeg version 5.1-emby_2022_09_13 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
        14:14:04.209   built with gcc 10.3.0 (crosstool-NG 1.25.0)
        14:14:04.209 Execution Date: 2022-09-27 14:14:04
        14:14:04.210 /mnt/Video/Red Hat.avi: No such file or directory
        14:14:04.210
           at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationToken cancellationToken, Boolean acquireResources)
           at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String manifestAbsoluteUri, String playlistId, String segmentId, Int32 subtitleStreamIndex, AuthorizationInfo authorizationInfo)
           at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
           at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
           at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
        Source: Emby.Server.MediaEncoding
        TargetSite: Void MoveNext()

 

Edited by dma_k
Link to comment
Share on other sites

2 hours ago, dma_k said:

I have typed it manually trying to guess the version, so I have entered the wrong one 🤕 It was not copied from anywhere. If there is a better way to learn the latest beta version, please let me know.

I have updated to v4.8.0.9 (let me know if that is indeed the latest) and I see no substantial progress. I have removed the movie from the library's root, started the library scanner, noticed the exception in logs, but the media is not removed from the library and when I click on that media, Emby displays an error that it cannot be played.

2022-09-27 14:14:04.255 Error Server: Error processing request
        *** Error Report ***
        Version: 4.8.0.9
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt
/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Framework: .NET 6.0.8
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 8
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Error starting ffm
peg
        14:14:04.209 ffmpeg version 5.1-emby_2022_09_13 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
        14:14:04.209   built with gcc 10.3.0 (crosstool-NG 1.25.0)
        14:14:04.209 Execution Date: 2022-09-27 14:14:04
        14:14:04.210 /mnt/Video/Red Hat.avi: No such file or directory
        14:14:04.210
           at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationToken cancellationToken, Boolean acquireResources)
           at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String manifestAbsoluteUri, String playlistId, String segmentId, Int32 subtitleStreamIndex, AuthorizationInfo authorizationInfo)
           at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
           at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
           at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
        Source: Emby.Server.MediaEncoding
        TargetSite: Void MoveNext()

 

Can you please attach the complete server log file? Thanks.

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