l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
396 stars 70 forks source link

Error while loading shared libraries: libva.so.2 #76

Closed 3daystoday closed 5 years ago

3daystoday commented 5 years ago

So the scripts runs fine, but I get this error:

2019-02-08 11:06:51,045 - INFO - UTILS [140284330137344]: /usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory

Seems it cant trigger the scanner looks like it's all good in plex_autoscanner but the scanner is never triggerd in PLEX, this is on a existing install wich used to run fine with no changes.

Anyone experiencing the same, or got a solution?

emopinata commented 5 years ago

The library path changed in the latest PMS beta release to /usr/lib/plexmediaserver/lib, which you'll need to update in your plex_autoscan config.json.

emopinata commented 5 years ago

Just ran into it myself and took me a minute to realize they just moved all those libs into their own folder.

3daystoday commented 5 years ago

hrm, so in my current config i've got:

"PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\ Media\ Scanner",

What should that be changed to?

Migz93 commented 5 years ago

Change PLEX_LD_LIBRARY_PATH to have /lib on the end, it should look like this "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",

Make sure you restart the plex_autoscan service afterwards, no need to change the PLEX_SCANNER line.

3daystoday commented 5 years ago

Ah, running plex in a docker, so plex autoscan cant see that folder at all atm. Havet to figure that out first :)

Sorry for all the questions, but do you have any idea how?

Migz93 commented 5 years ago

I also run plex in a docker? Just change the line in your plex_autoscan config file to the above and then restart plex_autoscan service.

Did you previously have plex_autoscan working but the recent update broke it, or is this the first time you're actually setting up autoscan?

3daystoday commented 5 years ago

Sorry, it's working now, looked to quick on the log file.

The file scans in fine now, but just as before I get this error, dont know if i should bother since the file accualy scans in fine.

2019-02-08 13:39:38,320 - ERROR - PLEX [140155843659520]: Could not locate record in media_parts where file = '/mnt/unionfs/tv/HD TV/Star Trek- Discovery/Se ason 2/Star Trek- Discovery - S02E04 - An Obol for Charon WEBDL-1080p.mkv', 1/5 attempts...

x5 times

Thanks for the help :)

ghost commented 5 years ago

Bad path mappings have nothing to do with the scanner working. Fix your setup and it'll work.

Migz93 commented 5 years ago

The latest version of Plex changed the library paths which will break everyones PAS config, which was the initial problem.

The second one of "Could not locate record in media_parts" is indeed most likely related to bad path mappings.

a9s2w5 commented 5 years ago

After the recent PMS update, I too started to get the media_parts error. As far as I can tell, none of my path mappings are an issue. I just thought I'd chime in, I am looking into the issue. I will report in when/if I find a reason.

randyjc commented 5 years ago

change in your config the following: from "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver", to "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",

after that it works again.

randyjc commented 5 years ago

Oh my bad, saw that Migz already mentioned that.

a9s2w5 commented 5 years ago

I had already applied the remedy. The issue persisted after changing the location and is why I was mentioning. I believe that's what 3daystoday was saying was happening for him as well. I ended up wiping out my .db/token mostly because I had other reasons to do so and just let it start fresh.

desimaniac commented 5 years ago

Updated PLEX_LD_LIBRARY_PATH locations in config/readme.