Why my plex server wont download any metadata and won't add any subtitles

I deleted all today, only this one with 3 movies.

Can’t figure out why this won’t work.

If you are starting over, that helps, but looks like some data from before is still getting through.

Delete the library again. From the Plex Web home page, next to “Libraries along the left side”, click on the … to it’s right. Then click empty trash, clean bundles, and optimize database, in that order.

Restart PMS, create the new library again. New logs. Thanks.

I have done that many many times. Still same.

Already dpkg -r plexmediaserver and removed all directories /usr/lib/plexmediaserver and /var/lib/plexmediaserver

And install all over again.

Unbelievable
After new install it still won’t work

I’m not sure what to say. I can only go by your logs which say that those files already exist in it’s database which is why it’s not updating anything.

Latest logs

Ok, thanks. Now we’re getting somewhere. I see that your scanner ran twice for some reason. The first time, it now finds 4 movies but get the 401 error when trying to match any of them. During the second scan, it repeats the “nothing changed” message from before. The second scan makes sense as nothing did change. The first scan where it gets the 401 is strange. Let me investigate this and get back to you. At least now I see a problem and have something to explore. Thanks for sticking it out with me.

Seems to be deleting all that is named “plex” from my server and reinstall helped finally!

All subs and other metadata working! Thank you for the time MovieFan.Plex :slight_smile:

I wonder if there was a permission issue with the previous install being put under the wrong user. I’m glad you got it resolved.

No, permissions was okay. Everything was running under plex user.
Mystical error, but i installed first time PMS to this server in 2013, who knows what updates can broke sometimes.

I need figure one thing also. How can i install thru repo plex pass versions.
At moment i use public ver. Debian jessie upgraded from wheezy but running with sysvinit not systemd

deb http://shell.ninthgate.se/packages/debian wheezy main

I can’t help on actual Linux stuff. You might want check in the PMS Linux section. https://forums.plex.tv/categories/linux

And here we go again, unreal. Did not change anything, only refreshed few times library because i added new stuff. Nothing works again…

Hello guys,

it has been 3 days since I have the similar problem (after the upgrade I guess). This install ran for a long time without problems.

Same problem, similar installation (i use actually the v1.2.2.2857), Linux CentOS 7 with latest packages version from official repos.

What I tried :

  • All tools from the web interface (empty trash, optimize database, clean, etc.)
  • Repairing database (Repair a Corrupt Database)
  • Downgrade Plex rpms (1.2.2.2857 —> 1.1.4.2757 —> 1.0.0.2261 and then back to 1.2.2.2857) with no positive result
  • Check the logs for errors, but got only DEBUG tag… despite HTTP 401 like this one :
Logs/Plex Media Server.4.log:1908:Oct 06, 2016 19:06:35.973 [...] DEBUG - HTTP 401 response from GET http://127.0.0.1:32400/system/agents/search?mediaType=1&id=1748&identifier=com.plexapp.agents.imdb&lang=en&name=&year&manual=1 

It is interesting to note that when I try to “Associate” the movie, it shows me an empty line in result field (with Plex Movie, TMD, Personnal Database) and if I select it, I lost the automatic thumbnail and the name.

This is the first time I call for technical help on a forum, usually I’m able to find the problem but here I’m really stuck. I can provide logs and other infos.

PS : Reinstall everything is not an option for me.

Finally i know the answer why agents get 401 error

I was using NAT masquerading for some other software.
Turns out that enabling masquerading on the zone is preventing traffic to 127.0.0.1
For test flushed all firewall rules and all agents can now connect 127.0.0.1 wtihout this HTTP 401 response from GET

@MovieFan.Plex said:
I think you might have typed something wrong. Can you post what you used? You can cover the front and end like I did in my example.

Those 401 errors are for your TV Show library. That’s probably a different issue not related to your movies.

Nop, that error created this anomaly :slight_smile: Plex could not query local agents because 127.0.0.1 was unavailable to him.

@ufo56 said:
Finally i know the answer why agents get 401 error

I was using NAT masquerading for some other software.
Turns out that enabling masquerading on the zone is preventing traffic to 127.0.0.1
For test flushed all firewall rules and all agents can now connect 127.0.0.1 wtihout this HTTP 401 response from GET

Is the other software OpenVPN ?

I use CSF firewall with these specific rules for OpenVPN :

iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT iptables -A FORWARD -j REJECT iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE iptables -t nat -A POSTROUTING -j SNAT --to-source [WAN IP ADDRESS]

could be the problem but I don’t see the impact on local loop 127.0.0.1…

No, openvpn won’t make this error. I have little bit complicated thing for routing few ports thru my machine.
One server at other location one port is forwarded to my home server and my home server routes that port to destination server. Faking one software location :slight_smile:

Remove that line
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
and it works

@ufo56 said:
No, openvpn won’t make this error. I have little bit complicated thing for routing few ports thru my machine.
One server at other location one port is forwarded to my home server and my home server routes that port to destination server. Faking one software location :slight_smile:

Remove that line
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
and it works

If I delete this line, my VPN will not work anymore (I’m using my VPN to connect to my server, so I really can’t do that xD)

This seems to be an anormal behavior, see these 2 pages :

How-do-i-masquerade-only-a-specific-subnet-with-firewalld

bugzilla.redhat.com/show_bug.cgi?id=904098

Maybe it helps if set up two zones, one internal and one external
If assign lo(loopack) to internal and other network external zone then it maybe work.

EDIT. Found this post http://superuser.com/questions/1033895/http-127-0-0-1-returning-401-unauthorized

Interesting, will give a look this evening and try to make it work. Since I’m not using firewalld I’ll have to dig into iptables rules… will get back to this thread if I find a solution.

I think it could be useful to write a little guide in PMS Linux section regarding this kind of problem (network/firewall/masquerading). What do you think @MovieFan.Plex ?

Thanks for the help !