Jump to content

Locate File on Server using it's Emby ID


Go to solution Solved by Trizzone52,

Recommended Posts

Trizzone52
Posted (edited)

Hi all!

 

So I'm trying to manually delete a file on my server because I believe it the source of the below error (I think is due to permissions issues). The only information I have is the address Emby delivers the image under:

https://www.trizzone52.com:8920/emby/Items/7e64e319657a9516ec78490da03edccb/Images/Primary

Is there any way I can figure out what file/folder location on the server the string "7e64e319657a9516ec78490da03edccb" is referring to?

 

 

 

(I can provide more complete logs if required.)

2017-06-02 08:35:44.1902 Info HttpServer: HTTP DELETE https://www.trizzone52.com:8920/emby/Items/7e64e319657a9516ec78490da03edccb/Images/Primary. UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
2017-06-02 08:35:44.1982 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.2.18.3
	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 3.16.0.4
	64-Bit OS: True
	64-Bit Process: True
	Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 22:25:43 UTC 2017)
	Processor count: 4
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.UnauthorizedAccessException: Access to the path "/home/trizzone52/Music/Folder.jpg" is denied.
	  at System.IO.File.Delete (System.String path) [0x00082] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Common.Implementations.IO.ManagedFileSystem.DeleteFile (System.String path) [0x00027] in <2d06625b6ebd41ccb7830a68382f983b>:0 
	  at MediaBrowser.Controller.Entities.BaseItem.DeleteImage (MediaBrowser.Model.Entities.ImageType type, System.Int32 index) [0x00033] in <572f0b7252444c7591dad3d56c57bb14>:0 
	  at MediaBrowser.Api.Images.ImageService.Delete (MediaBrowser.Api.Images.DeleteItemImage request) [0x00033] in <a00fed51eba4440ab8811a32c3b22f27>:0 
	  at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object)
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<CreateExecFn>c__AnonStorey2.<>m__0 (System.Object service, System.Object request) [0x00000] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x0010a] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x006c8] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	System.UnauthorizedAccessException
	  at System.IO.File.Delete (System.String path) [0x00082] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Common.Implementations.IO.ManagedFileSystem.DeleteFile (System.String path) [0x00027] in <2d06625b6ebd41ccb7830a68382f983b>:0 
	  at MediaBrowser.Controller.Entities.BaseItem.DeleteImage (MediaBrowser.Model.Entities.ImageType type, System.Int32 index) [0x00033] in <572f0b7252444c7591dad3d56c57bb14>:0 
	  at MediaBrowser.Api.Images.ImageService.Delete (MediaBrowser.Api.Images.DeleteItemImage request) [0x00033] in <a00fed51eba4440ab8811a32c3b22f27>:0 
	  at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object)
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<CreateExecFn>c__AnonStorey2.<>m__0 (System.Object service, System.Object request) [0x00000] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x0010a] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <43fb45c892a340f2ba94cab97a0f84e9>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x006c8] in <43fb45c892a340f2ba94cab97a0f84e9>:0 

Edit for readability and typos.

Edited by Trizzone52
mastrmind11
Posted

It's explicitly telling you that you don't have permission for this file:  "/home/trizzone52/Music/Folder.jpg".  

  • Like 1
Trizzone52
Posted

Thank you for pointing out my stupidity! I'm learning and scanned through that error report without finding that line multiple times, so I appreciate the help.

 

While that solved my initial issue, it doesn't quite solve my curiosity that lead to the original question. Does anyone have any advice for figuring out the location based on the image file string in the http address?

 

Thanks.

Jdiesel
Posted (edited)

You could try

find /var/lib/emby-server/data '7e64e319657a9516ec78490da03edccb'
Edited by Jdiesel
  • Like 1
  • Solution
Trizzone52
Posted (edited)

Thank you,mastrmind11 and Jdiesel!

 

Turns out the file I was hunting for was an automatically generated thumbnail, so the file was found at:

/var/lib/emby-server/metadata/library/7e/7e64e319657a9516ec78490da03edccb/poster.png

with the command:

find /var/lib/emby-server '7e64e319657a9516ec78490da03edccb' | grep 7e64e

Once again, thanks for the help! Both my problem and my curiosity solved!

 

 

(Excuse my lack of understanding how the find command works, but the grep in that command was also necessary for some reason.)

Edited by Trizzone52
  • 3 years later...
Posted

curl -X GET "http://xxx:8096/emby/Items/<emby id>/DeleteInfo?api_key=<api_key>" -H "accept: application/json"

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