trakt/Plex-Trakt-Scrobbler

[Nvidia Shield Pro] Sync doesn't work altough the plugin is installed correctly

Opened this issue · 16 comments

I am running Plex server on my Shield Pro. I installed the Plugin on the Shield and in the Web interface, the plugin is being recognized and I have configured it. I installed it properly because I have also installed other plugins that work flawlessly.
Whatever movie or series I watch, the progress isn't being synced with Trakt.tv. I can't even see on Trakt.tv's website that I'm currently watching XY movie/series.

That worked without issues when I was running Plex server on my PC and when I had the plugin installed there.

Any help?

You should install Kitana to manage the plugin and check the config.

Hello everybody,
I think I have a similar issue on Nvidia Shield Pro, but unfortunately I couldn't find any clue of how to resolve it on the internet.
Is anyone so kind to let me know if it is finaly possible to make Trakt working and provide a step by step how-to ?

My conf is the following:

Shield Pro (2019) with PMS on shield, media files on my Synology NAS (DS218+) and metadata on high speed USB3-microSD (128Go)
Trakt.tv and webtools plugin files are copied on "Android\data\com.plexapp.mediaserver.smb\Plex Media Server\Plug-ins" folder
Access of Trakt by the means of Kitana with the following errors:
Trakt.tv: Critical Error: Unable to import the playhouse.apsw_ext library (dlopen failed: couldn't map "/storage/0123-4567/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so" segment 0: Permission denied)
Please let me know what you think about it.
Many thanks

segment 0: Permission denied)

chown to plex and see what happens.

segment 0: Permission denied)

chown to plex and see what happens.

Thank you for your support agneevX.
Being not very familiar with Linux (or Unix) commands, I have question about how to do that.

I understand the idea is to modify the right permission of the plugin folder(s) to the correct "user".
However I have no idea how to do it.

I managed to install on my Nvidia shield Pro the application SSHelper.
SSHelper is supposed to allow me to connect my shield throuh SSH. I managed to connect but never to use chmod or chown command (maybe because I don't really understand what I do when I follow forum tips).
SSHelper also provides a terminal that I can theoretically use to type my commands directly on my shield (if I manage to connect a keyboard on it).

This is where I am.
Many thanks

Being not very familiar with Linux (or Unix) commands, I have question about how to do that.

Sorry I had no idea.

What does ls -l "/storage/0123-4567/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so" output?

Do you mean that I try to connect through SSH and then I enter this command ?
I suppose I have to adapt the path name ?

Yes. Connect via SSH, paste that command and hit enter and paste the contents here.

Please findthe result:
u0_a103@localhost:~$ ls -l "/storage/0123-4567/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so" -rwxr-x--- 1 u0_a97 everybod 3008688 Feb 16 19:16 /storage/0123-4567/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so

However I am not sure it is the right path since my metadata are located on a USB stick at this location:\SHIELD\Clé USB SanDisk\Android\data\com.plexapp.mediaserver.smb\Plex Media Server\Plug-ins\Trakttv.bundle\Contents\Libraries\Android\aarch64\ucs2

Second try : I went through all the path manually to find the Plugin folder:
Using my file manager I can access to the path "\SHIELD\Clé USB SanDisk\Android\data\com.plexapp.mediaserver.smb\Plex Media Server\Plug-ins\Trakttv.bundle\Contents\Libraries\Android\aarch64\ucs2" without trouble.

However in SSH when I get to "\SDCard\Android\data\com.plexapp.mediaserver.smb\Plex Media Server", then the ls command only returns "Metadata" and "Plug-in Support"

And I tried this command with no success:
u0_a103@localhost:/$ ls -l "/SDCard/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so" ls: /SDCard/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so: No such file or directory

Not sure why you would have metadata stored in two separate places.
What does
ls -l "/SDCard/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so" and

ls -l "/SDCard/Android/data/com.plexapp.mediaserver.smb/Plex Media Server" output?

Hello, the two commands output "No such file or directory"
But even ls -l "/SDCard/" gives the same answer. So I give you here the command "ls -l" at each stage of the path until I rech Plug-in Suport folder.

u0_a103@localhost:~$ cd SDCard u0_a103@localhost:SDCard$ ls -l total 44 drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Alarms drwxrwx--- 4 root everybod 4096 Feb 16 17:15 Android drwxrwx--- 2 root everybod 4096 Feb 16 17:15 DCIM drwxrwx--- 3 root everybod 4096 Mar 6 10:05 Download drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Movies drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Music drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Notifications drwxrwx--- 3 root everybod 4096 Feb 19 23:55 Pictures drwxrwx--- 4 root everybod 4096 Feb 16 17:15 Plex Media Server drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Podcasts drwxrwx--- 2 root everybod 4096 Feb 16 17:15 Ringtones u0_a103@localhost:SDCard$ cd A Alarms/ Android/ u0_a103@localhost:SDCard$ cd Android/ u0_a103@localhost:Android$ ls -l total 8 drwxrwx--- 6 root everybod 4096 Feb 17 18:42 data drwxrwx--- 3 root everybod 4096 Feb 17 18:42 obb u0_a103@localhost:Android$ cd data/ u0_a103@localhost:data$ ls com.android.vending com.google.android.gms com.google.android.youtube.tv com.plexapp.mediaserver.smb u0_a103@localhost:data$ cd com.plexapp.mediaserver.smb/ u0_a103@localhost:com.plexapp.mediaserver.smb$ ls -l total 8 drwxrwx--- 4 u0_a97 everybod 4096 Feb 16 18:58 Plex Media Server drwxrwx--- 6 u0_a97 everybod 4096 Apr 2 22:26 cache u0_a103@localhost:com.plexapp.mediaserver.smb$ cd Plex\ Media\ Server/ u0_a103@localhost:Plex Media Server$ ls -l total 8 drwxrwx--- 3 u0_a97 everybod 4096 Feb 16 18:58 Metadata drwxrwx--- 7 u0_a97 everybod 4096 Feb 16 18:58 Plug-in Support

oups sorry, its horrible !
I don't know how to do it better than this:

image

Not sure why you would have metadata stored in two separate places.
Normally all my metadata are on USBStick, not in internal drive of the shield. So your comment invted me to check what do I have on the metadata on the internal storage...

Actually it looks like this :
image
This means that when in SSH I go to SDCard folder, in fact I access to my internal storage and not on to the metadata on the USB stick...
Sorry for my poor level, I should have seen it before.

Then to access to my USB in SSH I stuck... ls command doesn't see it...
Thank you again.

OK I progress: after connecting in SSH, it tried several "cd .." which revealed that I was like in the folder of the SSH application "SSHelper".
Then when I go in upper folder, I try ls -l and I see that I have no permission:
image

I think this is an issue related to your non-conventional installation. Why do you store your metadata on a microSD card? It's much slower and wears it out much faster.

How do you connect your NAS to your Shield?

Well I've read that the only 16Gb of internal drive could be very limitative with large plex Media due to metadata storage and temporary space during transcoding.
Moreover I have installed a high speed sd card on a usb3 adaptator.
Finally this was the ony way I fould to access in SMB to the plugin folder with the write permission and then copy the Trakt plugin files.
In any case this doesn't work.