Jump to content

Nvidia Shield server not installing


qazwsx10

Recommended Posts

qazwsx10

Hi everyone!

 

I figure this is a simple mistake on my end, but whenever I try to install the Android Emby Server (https://emby.media/server-android.html, specifically the com.emby.embyserver_4.1.1.0.apk), it doesn't actually install an app there. I sideloaded it using FX File Explorer, but the app does not appear in the app drawer.

 

Let me know what I'm doing wrong!

James

Link to comment
Share on other sites

qazwsx10

In other words did you launch the apk install process on your Shield?

So I tried again this morning installing 4.2.0.40 on the Nvidia Shield (I put the APK on an external) and I got the following (attached). It looks like it installed fine, but when I go the link in the browser I get errors. I tried opening the URL directly on my Nvidia Shield and also on my computer.

 

I'm not sure if this is important or not, but I do have an Emby server installed on a separate PC, but I made sure to shut it down before installing this one.

post-491035-0-03818400-1564158943_thumb.jpg

post-491035-0-89271900-1564158955_thumb.jpg

post-491035-0-67641900-1564158969_thumb.jpg

Edited by qazwsx10
Link to comment
Share on other sites

qazwsx10

In other words did you launch the apk install process on your Shield? 

I'm not sure if the additional information would help or not, but to access my original server (the non-Nvidia Shield one), I would go through: http://192.168.86.26:8096.

 

Since the Nvidia Shield points me to http://192.168.86.63:8096, it looks like they are go through the same port number. Is that what's causing the issue? Any suggestions would be appreciated!

Link to comment
Share on other sites

Can you please attach the emby server log? if you can't get to the web interface to get it, then it would be here:

/storage/emulated/0/Android/data/com.emby.embyserver/files/logs

thanks.

Link to comment
Share on other sites

qazwsx10

Can you please attach the emby server log? if you can't get to the web interface to get it, then it would be here:

/storage/emulated/0/Android/data/com.emby.embyserver/files/logs

thanks.

 

I feel extremely dumb, but I think the issue was the laptop I was trying to connect to it was connected to my GUEST wifi instead of my primary wifi! Sorry for the confusion! I'm in the process of setting my folders now and watch history. I'll keep you updated!

Link to comment
Share on other sites

qazwsx10

Can you please attach the emby server log? if you can't get to the web interface to get it, then it would be here:

/storage/emulated/0/Android/data/com.emby.embyserver/files/logs

thanks.

 

This may also be a dumb question, so forgive me in advance! But when I try to point the emby server to my external hard drives that are connected directly to the shield, what is the naming convention? When I check the storage directly on the shield I had named them "Disk 1" and "Disk 2", but when I tried: "/Disk 1/Movies" it didn't work. When I use FX to see the folder and files, they are both named "Media Card".

 

Separately, I have read that user installed apps cannot write onto external storage except for the NVIDIA_SHIELD folder. Since the metadata is stored with the media files, should I move all of my media to the NVIDIA_SHIELD folder?

 

Thank you!

Link to comment
Share on other sites

Have you tried the prepopulated options in the directory picker?

 

And yes if that's important to you, you may want to consider that.

Link to comment
Share on other sites

qazwsx10

Have you tried the prepopulated options in the directory picker?

 

And yes if that's important to you, you may want to consider that.

Fantastic suggestion! Since the external storage came up as weird names in the pre-populated options, I didn't even consider it, but they were there! So close to finishing, but ran into one more issue. I tried to run a scan of my libraries (movies and tv shows) and I got the following error:

 

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

 

I did try two things: I shut down my old Emby Server and restarted the one on the Nvidia Shield, but still came up with the error.

 

I looked off what you suggested here (https://emby.media/community/index.php?/topic/66373-refresh-guide-failed/) and got the following error as well:

 

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

Edited by qazwsx10
Link to comment
Share on other sites

Can you install the apk again from the website, on top of your existing version? I think that error will be gone. Thanks.

Link to comment
Share on other sites

qazwsx10

Can you install the apk again from the website, on top of your existing version? I think that error will be gone. Thanks.

That was like magic! It worked! It's doing a library scan now (taking a while, but I'm in no rush). I wanted to import in the user watched data form the previous server, I could use the backup plugin, but I was hoping I could learn a little SQL during this process :)

 

When I tried to import in the userdatas table from the old library database to the new library database, I get an error because the old one has 13 columns, but the new one has 12 columns. The column that isn't in the new userdatas table is: key

 

Any ideas?

 

Thank you again for all of the help Luke!

Edited by qazwsx10
Link to comment
Share on other sites

Yea it's going to be harder to do that now due to the table change. The userdatakey first has to go into the userdatakeys2 table.

Link to comment
Share on other sites

qazwsx10

Yea it's going to be harder to do that now due to the table change. The userdatakey first has to go into the userdatakeys2 table.

Sorry I had made a mistake! The table's variables were in a different order, so the actual variable that was missing was key. Any possible clues?

Link to comment
Share on other sites

qazwsx10

We're going to need to document this process as it's not a quick and easy answer.

No worries! I believe my Shield is struggling (constant disconnecting and slow response) with the Emby server even though I'm only directly streaming from it, so I might delete it and put it back on my computer.

 

I might try installing Kodi on the Shield and use the buffer plugin alongside the Emby client for Android.

 

Thank you so much for all of the help, very insightful!

Edited by qazwsx10
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...