trakt / Plex-Trakt-Scrobbler

Add what you are watching on Plex to trakt.tv
1.45k stars 166 forks source link

Critical Error: Unable to import the playhouse.apsw_ext library (Failed to map segment from shared object: operation not permitted) #428

Open kavejo opened 7 years ago

kavejo commented 7 years ago

On a new installation fo Trackt on an existing Plex Media Server I keep getting this error:

Critical Error: Unable to import the playhouse.apsw_ext library (Failed to map segment from shared object: operation not permitted)

This was installed via the "Unsupported App Store V2" plugin. I have also made sure all the folders were owned by the plex user and group and that the correct permissions were in place.

Uninstalling an reinstalling the plugin did not make any difference. I also checked all the "Plex Media Server" subfolders for anything to do with Trackt and removed any file (i.e. the logs were not getting cleaned) before re-installing the plugin however this made no difference.

Here the log file if it can be of any use. trakt.txt

Thanks, Tommy

joseph84arturo commented 7 years ago

I faced the same issue mate, rough steps I followed to resolve it. I installed trakt with the "Unsupported App Store V2" so that it shows up in Plex.

Then I changed the directory owner and permissions, something like (more specific command are in the install guide): sudo chown -R youruser:youruser on the Plug-ins folder sudo chown -R youruser:youruser on the Plug-in Support folder sudo chmod -R 770 on the Plug-ins folder sudo chmod -R 770 on the Plug-in Support folder

!IMPORTANT: Then I noticed it still didn't work, someone pointed out that the drive/mount where plex is running from might be mounted with "noexec" flag which prevents execution.

So I opened /etc/fstab file with nano and removed the noexec flag on the corresponding drive/mount lines. I rebooted and then it worked. I hope this resolves your issue.

fuzeman commented 7 years ago

See this page for workarounds to this issue that doesn't require /etc/fstab changes.

joseph84arturo commented 7 years ago

@fuzeman

I forgot to mention that JUST those solutions didn't work for me. Then I came across someone mentioning that IF all the workarounds on that page don't work to check /etc/fstab for the noexec flags. Right after I changed it the plugin worked.

kavejo commented 7 years ago

@joseph84arturo Thanks for the hints.

@fuzeman You were spot on. Surely enough when I removed the noexec from the drive in /etc/fstab I was able to run the plugin. Not sure how I missed that article, however thank you very much for sharing.

joseph84arturo commented 7 years ago

@kavejo Glad to help ^_^

TonioBDS commented 4 years ago

@joseph84arturo Thanks for the hints.

@fuzeman You were spot on. Surely enough when I removed the noexec from the drive in /etc/fstab I was able to run the plugin. Not sure how I missed that article, however thank you very much for sharing.

Hello every one, It seems that the "removing of noexec flags" is the only way to make the Trakt plugin work on Shield. Unfortunately couldn't find any clue of how to to it on the internet. Is anyone so kind to provide a step by step how-to.

My conf is the following:

Many thanks for all the help you can provide.

K-RAD commented 3 years ago

@joseph84arturo Thanks for the hints. @fuzeman You were spot on. Surely enough when I removed the noexec from the drive in /etc/fstab I was able to run the plugin. Not sure how I missed that article, however thank you very much for sharing.

Hello every one, It seems that the "removing of noexec flags" is the only way to make the Trakt plugin work on Shield. Unfortunately couldn't find any clue of how to to it on the internet. Is anyone so kind to 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 and Webtool 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)
    • WebTools: two links are shown but non are working: http://127.0.0.1:33400, https://127.0.0.1:33443.
  • I managed to install SSHelper on my shield but I am far from knowing how to use it to get what I want.

Many thanks for all the help you can provide.

Did you find any solution? I have the exact same error message for trakt (installed via webtools)