Jump to content

Unable to delete collections ( or add items to it 0


Depechie

Recommended Posts

Depechie

Server version 3.0.5445.6 - trying through the web interface

 

I just added a collection for the first time, but was unable to add items. I'm getting Unable to cast object of type 'MediaBrowser.Controller.Entities.Movies.Movie' to type 'MediaBrowser.Controller.Entities.Folder'. Maybe I'm doing something wrong?

 

But now I just wanted to delete the collection but I'm unable to do so, always getting the exception No collection exists with the supplied Id

 

Any thoughts on how I can delete this empty collection?

 

Added the log file for reference...

mb3log.txt

Link to comment
Share on other sites

Beardyname

Not an expert, but looks like it does not have permissions to remove the file:

2014-12-02 23:33:56.3284 Debug - HttpServer: HTTP DELETE http://snipforprivacy/mediabrowser/Items/450b21b9d76cc205f134ae52fdba3b20
	Ip: 192.168.1.28:2213. Headers: Authorization=MediaBrowser Client="Dashboard", Device="Internet Explorer 11.0", DeviceId="6692233077a8eb981196a73684c451550ae65ebd", Version="3.0.5445.6", UserId="ab29e5e622c73db5d971a106f8c1a1f5",Accept=*/*,X-MediaBrowser-Token=da987306337944d3a2495aace2df4347,Accept-Language=nl-BE,nl;q=0.8,en-US;q=0.5,en;q=0.3,Accept-Encoding=gzip, deflate,User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko,Host=192.168.1.2:8096,Content-Length=0,DNT=1,Connection=Keep-Alive,Cache-Control=no-cache
2014-12-02 23:33:56.3284 Error - DtoUtils: ServiceBase<TRequest>::Service Exception
	Attempted to perform an unauthorized operation.
	System.UnauthorizedAccessException
	   at MediaBrowser.Api.Library.LibraryService.Delete(DeleteItem request)
	   at lambda_method(Closure , Object , Object )
	   at ServiceStack.Host.ServiceExec`1.<>c__DisplayClass6.<CreateExecFn>b__5(Object service, Object request)
	   at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
	
2014-12-02 23:33:56.3284 Error - HttpServer: Error processing request for /mediabrowser/Items/450b21b9d76cc205f134ae52fdba3b20
	Attempted to perform an unauthorized operation.
	ServiceStack.HttpError
	No Stack Trace Available
	

So either your user is not allowed to remove collections (I'm betting you are admin though ;) )

That leaves me guessing that it's not allowed to remove the xml file.

 

 

*Edit* did you restart the server after trying to remove an collection?

Edited by Beardyname
Link to comment
Share on other sites

Depechie

Yeah thought about the fact I could not delete but I'm seeing the delete button and I'm admin ;)

Will try to restart te server later ( not at the pc now so can't check )

Link to comment
Share on other sites

Did you also try to delete something else? I see 3 "UnauthorizedAccessException" exceptions..

All fot the same ID...

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