Jump to content

Unhandled exception error when trying to access library


Go to solution Solved by Luke,

Recommended Posts

heerssimpson
Posted

Running the stable release (tried beta too, same issue). Server starts up fine. But when I try to access the home page of emby, or access the library in any way, I get the following error:

 

"Unhandled exception: Value cannot be null. Parameter name: parentId"

 

When I click OK on the error, the server closes. Tried restarting server and the machine. Same issue. Help appreciated. This is the log:

 

Value cannot be null.
Parameter name: parentId
System.ArgumentNullException
at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.<GetChildrenItems>d__23.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MediaBrowser.Controller.Entities.Folder.get_ActualChildren()
at MediaBrowser.Controller.Entities.Folder.get_Children()
at MediaBrowser.Controller.Entities.Folder.AddChildren(User user, Boolean includeLinkedChildren, Dictionary`2 result, Boolean includeHidden, Boolean recursive, Func`2 filter)
at MediaBrowser.Controller.Entities.Folder.GetChildren(User user, Boolean includeLinkedChildren, Boolean includeHidden)
at MediaBrowser.Controller.Entities.BaseItem.IsVisibleStandaloneInternal(User user, Boolean checkFolders)
at MediaBrowser.Server.Implementations.EntryPoints.LibraryChangedNotifier.TranslatePhysicalItemToUserLibrary[T](T item, User user, Boolean includeIfNotFound)
at MediaBrowser.Server.Implementations.EntryPoints.LibraryChangedNotifier.<>c__DisplayClass28.<GetLibraryUpdateInfo>b__1b(BaseItem i)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<DistinctIterator>d__81`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MediaBrowser.Server.Implementations.EntryPoints.LibraryChangedNotifier.GetLibraryUpdateInfo(IEnumerable`1 itemsAdded, IEnumerable`1 itemsUpdated, IEnumerable`1 itemsRemoved, IEnumerable`1 foldersAddedTo, IEnumerable`1 foldersRemovedFrom, Guid userId)
at MediaBrowser.Server.Implementations.EntryPoints.LibraryChangedNotifier.<SendChangeNotifications>d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

Posted

can you please provide the complete log file? thanks.

  • Solution
Posted

There are fundamental problems here. did you by any chance try out the dev version? the current dev version has breaking database changes, so attempting to roll back to beta or stable is not supported. If this is what you did then you'll either need to go back to dev and stay on dev until those database changes reach beta and stable, or you'll need to just reinstall fresh from scratch. 

  • Like 1
heerssimpson
Posted (edited)

I think I was on the dev version at some point previously. I switched back to dev, and it is now working. Any idea when the database changes will reach beta/stable? We talking weeks or months? Thanks for the help. 

Edited by heerssimpson

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