Jump to content

Emby Server on Oneplus 5t


rogerlebon

Recommended Posts

rogerlebon

Hi, 

 

I have in mind to re-use my broken-screen oneplus 5t as an Emby Server.

I downloaded and installed the APK, did firsts setups, but I can't add any folder as media library folder.

 

Whenever I try, i get a "Couldn't add folder, verify path or permission" kind of message. 

 

Logs say : 

2019-08-01 15:54:54.209 Info HttpServer: HTTP Response 200 to 192.168.43.246. Time: 21ms. http://192.168.27.65:8096/emby/Libraries/AvailableOptions?LibraryContentType=movies&IsNewLibrary=true
2019-08-01 15:54:57.728 Info HttpServer: HTTP POST http://192.168.27.65:8096/emby/Library/VirtualFolders?collectionType=movies&refreshLibrary=true&name=Films. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
2019-08-01 15:54:57.772 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.2.0.40
    Command line: /data/app/com.emby.embyserver-s7wak2OHDoqkWC_5iPJ3GQ==/base.apk
    Operating system: Unix 4.4.78.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: False
    Runtime: file:///mscorlib.dll
    Processor count: 8
    Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files
    Application directory: /data/user/0/com.emby.embyserver
    Mono: 5.14.0 (explicit/62031dcabf4)
    Android Version: 8.1.0-REL - SDK: 27 'OMr1'
    Patch Level: 1808081457 (2018-08-01)
    Fingerprint: OnePlus/OnePlus5T/OnePlus5T:8.1.0/OPM1.171019.011/1808081457:user/release-keys
    Model: ONEPLUS A5010 - OnePlus/OnePlus
    Hardware: OnePlus5T/OnePlus5T/qcom/msm8998
    SupportedAbis: arm64-v8a, armeabi-v7a, armeabi
    SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed
    SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
     at SQLitePCL.pretty.SQLiteException.CheckOk (SQLitePCL.sqlite3 db, System.Int32 rc) [0x00017] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at SQLitePCL.pretty.SQLiteException.CheckOk (SQLitePCL.sqlite3_stmt stmt, System.Int32 rc) [0x00006] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at SQLitePCL.pretty.StatementImpl.MoveNext () [0x0004a] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.UpdateAncestors (System.Int64 itemId, System.Collections.Generic.List`1[T] ancestorIds, SQLitePCL.pretty.IDatabaseConnection db, SQLitePCL.pretty.IStatement deleteAncestorsStatement) [0x000ce] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation (SQLitePCL.pretty.IDatabaseConnection db, System.Collections.Generic.List`1[T] tuples) [0x00108] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems (System.Collections.Generic.List`1[T] items, System.Threading.CancellationToken cancellationToken) [0x000de] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.UpdateItems (System.Collections.Generic.List`1[T] items, MediaBrowser.Controller.Entities.BaseItem parent, MediaBrowser.Controller.Library.ItemUpdateType updateReason, System.Threading.CancellationToken cancellationToken) [0x00057] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.UpdateItem (MediaBrowser.Controller.Entities.BaseItem item, MediaBrowser.Controller.Entities.BaseItem parent, MediaBrowser.Controller.Library.ItemUpdateType updateReason) [0x00014] in <c665735294904a13ae518fa16c5f279d>:0
     at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepository (MediaBrowser.Controller.Library.ItemUpdateType updateReason) [0x0000c] in <47fb962000cd4df8adea68d535a0fb9c>:0
     at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder () [0x00190] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder () [0x00025] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager+<ValidateTopLibraryFolders>d__93.MoveNext () [0x00028] in <c665735294904a13ae518fa16c5f279d>:0
    --- End of stack trace from previous location where exception was thrown ---
     at Emby.Server.Implementations.Library.LibraryManager+<AddVirtualFolder>d__191.MoveNext () [0x00205] in <c665735294904a13ae518fa16c5f279d>:0
    --- End of stack trace from previous location where exception was thrown ---
     at Emby.Server.Implementations.Services.ServiceController+<GetTaskResult>d__12.MoveNext () [0x000ef] in <c665735294904a13ae518fa16c5f279d>:0
    --- End of stack trace from previous location where exception was thrown ---
     at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__4.MoveNext () [0x001da] in <c665735294904a13ae518fa16c5f279d>:0
    --- End of stack trace from previous location where exception was thrown ---
     at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__51.MoveNext () [0x00bd3] in <c665735294904a13ae518fa16c5f279d>:0
    Source: mscorlib
    TargetSite: Void Throw()

 

 

I haven't tested samba folders yet as I'm still looking for a way to mount it with tools available on my phone.

 

Am I missing something ?

 

Thanks

  • Like 1
Link to comment
Share on other sites

rogerlebon

Hi, thanks for the quick answer.

 

However, it did not fix anything.

 

I stopped the server, re-installed the apk, started the server again. Logs say the same when I try to add a new folder.

Though, I can see the added libraries (even though it got me an error on first add, and visible after refreshing the webpage), but trying to refresh them for content sends an error too.

Logs when adding is similar than the last one, log when "refresh all" is clicked says :

 

 

2019-08-02 09:52:49.657 Info HttpServer: HTTP Response 200 to 192.168.43.246. Time: 13ms. http://192.168.43.1:8096/emby/ScheduledTasks?IsEnabled=true
2019-08-02 09:52:49.663 Info HttpServer: HTTP Response 200 to 192.168.43.246. Time: 27ms. http://192.168.43.1:8096/emby/Library/VirtualFolders
2019-08-02 09:58:45.255 Info HttpServer: HTTP POST http://192.168.43.1:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
2019-08-02 09:58:45.261 Info TaskManager: Executing Scan media library
2019-08-02 09:58:45.261 Info HttpServer: HTTP Response 204 to 192.168.43.246. Time: 6ms. http://192.168.43.1:8096/emby/ScheduledTasks/Running/6330ee8fb4a957f33981f89aa78b030f
2019-08-02 09:58:45.263 Info App: Validating media library
2019-08-02 09:58:45.280 Error TaskManager: Error
    *** Error Report ***
    Version: 4.2.0.40
    Command line: /data/app/com.emby.embyserver-QoW0Zn1BQwFhnxwNvkwZOg==/base.apk
    Operating system: Unix 4.4.78.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: False
    Runtime: file:///mscorlib.dll
    Processor count: 8
    Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files
    Application directory: /data/user/0/com.emby.embyserver
    Mono: 5.14.0 (explicit/62031dcabf4)
    Android Version: 8.1.0-REL - SDK: 27 'OMr1'
    Patch Level: 1808081457 (2018-08-01)
    Fingerprint: OnePlus/OnePlus5T/OnePlus5T:8.1.0/OPM1.171019.011/1808081457:user/release-keys
    Model: ONEPLUS A5010 - OnePlus/OnePlus
    Hardware: OnePlus5T/OnePlus5T/qcom/msm8998
    SupportedAbis: arm64-v8a, armeabi-v7a, armeabi
    SQLitePCL.pretty.SQLiteException: Constraint: FOREIGN KEY constraint failed
    SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
     at SQLitePCL.pretty.SQLiteException.CheckOk (SQLitePCL.sqlite3 db, System.Int32 rc) [0x00017] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at SQLitePCL.pretty.SQLiteException.CheckOk (SQLitePCL.sqlite3_stmt stmt, System.Int32 rc) [0x00006] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at SQLitePCL.pretty.StatementImpl.MoveNext () [0x0004a] in <9f7ad5443a8044e18b25416104d5fa45>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.UpdateAncestors (System.Int64 itemId, System.Collections.Generic.List`1[T] ancestorIds, SQLitePCL.pretty.IDatabaseConnection db, SQLitePCL.pretty.IStatement deleteAncestorsStatement) [0x000ce] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation (SQLitePCL.pretty.IDatabaseConnection db, System.Collections.Generic.List`1[T] tuples) [0x00108] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems (System.Collections.Generic.List`1[T] items, System.Threading.CancellationToken cancellationToken) [0x000de] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.UpdateItems (System.Collections.Generic.List`1[T] items, MediaBrowser.Controller.Entities.BaseItem parent, MediaBrowser.Controller.Library.ItemUpdateType updateReason, System.Threading.CancellationToken cancellationToken) [0x00057] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.UpdateItem (MediaBrowser.Controller.Entities.BaseItem item, MediaBrowser.Controller.Entities.BaseItem parent, MediaBrowser.Controller.Library.ItemUpdateType updateReason) [0x00014] in <c665735294904a13ae518fa16c5f279d>:0
     at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepository (MediaBrowser.Controller.Library.ItemUpdateType updateReason) [0x0000c] in <47fb962000cd4df8adea68d535a0fb9c>:0
     at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder () [0x00190] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder () [0x00025] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.IO.LibraryMonitor.Start () [0x0003a] in <c665735294904a13ae518fa16c5f279d>:0
     at Emby.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>d__92.MoveNext () [0x000aa] in <c665735294904a13ae518fa16c5f279d>:0
    --- End of stack trace from previous location where exception was thrown ---
     at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__69.MoveNext () [0x00188] in <c665735294904a13ae518fa16c5f279d>:0
    Source: mscorlib
    TargetSite: Void Throw()
    
2019-08-02 09:58:45.281 Info TaskManager: Scan media library Failed after 0 minute(s) and 0 seconds
2019-08-02 09:58:45.287 Info TaskManager: ExecuteQueuedTasks

    

 

I am trying to add a folder in "/storage/emulated/0/", but also tried in "/mnt/sdcard" and doesn't work either.

 

Thanks

 

Edit : wrong log

Edited by rogerlebon
Link to comment
Share on other sites

Can you try shutting down the server and then deleting this file:

/storage/emulated/0/Android/data/com.emby.embyserver/files/data/library.db

Then start the server back up. And make sure you re-installed the apk by downloading from the website again, rather than from a previously saved download. 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...