Unable to change library settings "Your Changes could not be saved"

Server Version#: 1.31.2.6810
Player Version#: Chrome

Few minutesb ack i changed the library settings from Scanner: Plex Movie and Agent: Plex Movie to Scanner: Plex Movie Scanner and Agent: Personal Media and i want to set it back but it wont save the changes…

When the button to save changes is pressed this is generated in the browser console:

481-481-5f393fa408d672dda346-plex-4.100.1.29405-21e8735.js:2          PUT https://192-168-1-15.b3a7c4dfb5fa40c8b00fa7bd61d17de3.plex.direct:32400/library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy&X-Plex-Product=Plex%20Web&X-Plex-Version=4.100.1&X-Plex-Client-Identifier=d218dps8p04gddb5v4gyu5z2&X-Plex-Platform=Chrome&X-Plex-Platform-Version=111.0&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=bundled&X-Plex-Device=Windows&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=819x937%2C1920x1080&X-Plex-Token=nbvnbvmnbvmnbv&X-Plex-Language=en 400 (Bad Request)

Server debug logs ZIP please?

This type of error is usually an authentication error (bad network config somewhere in the chain is the most common)

Plex Media Server Logs_2023-03-19_20-36-53.zip (2.6 MB)

Thank you.

When you EDIT the library section. What Language is it showing?
Is it blank?

This bug

Mar 19, 2023 20:10:15.466 [0x7f9e78a60b38] INFO - Request: [192.168.1.14:9953 (Subnet)] PUT /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy (15 live) #f1 TLS GZIP Signed-in Token (jiri.ed) (Chrome)
Mar 19, 2023 20:10:15.467 [0x7f9e78a60b38] ERROR - [Req#f1] Errors in PUT request: Bad Request

400 Bad Request

‘language’ is invalid
Mar 19, 2023 20:10:15.468 [0x7f9e7d4c6b38] INFO - Completed: [192.168.1.14:9953] 400 PUT /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy (15 live) #f1 TLS GZIP 2ms 541 bytes (pipelined: 13)
Mar 19, 2023 20:10:15.642 [0x7f9e7bcbcb38] DEBUG - Request: [192.168.1.14:9953 (Subnet)] OPTIONS /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy (15 live) #f2 TLS GZIP Signed-in Token ()
Mar 19, 2023 20:10:15.643 [0x7f9e7d4c6b38] DEBUG - Completed: [192.168.1.14:9953] 200 OPTIONS /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy (15 live) #f2 TLS GZIP 0ms 382 bytes (pipelined: 14)
Mar 19, 2023 20:10:15.651 [0x7f9e7ad51b38] INFO - Request: [192.168.1.14:9953 (Subnet)] PUT /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmnt%2Ffilmy%2FFilmy (15 live) #f3 TLS GZIP Signed-in Token (jiri.ed) (Chrome)
Mar 19, 2023 20:10:15.652 [0x7f9e7ad51b38] ERROR - [Req#f3] Errors in PUT request: Bad Request

400 Bad Request

‘language’ is invalid
Mar 19, 2023 20:10:15.653 [0x7f9e7d2c3b38] INFO - Completed: [192.168.1.14:9953] 400 PUT /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en

was fixed.

Notice the language code is in the “PUT” statement.

PUT /library/sections/1?name=Filmy&type=movie&agent=tv.plex.agents.movie&scanner=Plex%20Movie&language=en

If need be, I’d like you to go into your account settings ( Settings - Account) in the upper left corner of Plex/web and re-assert the language… Change it to something , SAVE, then immediately put back to English.

Then restart PMS.

Does not work.

I tried your solutions but they do not work…
image

May I see your DEBUG server logs ZIP file ?

I noticed the problem appaers when switching the Agents and Scanners…
I tried randomlz swithching them and i eventualy got it back to my settings but its werid.

Plex Media Server Logs_2023-03-26_18-49-29.zip (4.0 MB)

Have you found something?
Even after update it still happends

@DEPSTRCZ

The only thing I’ve found, which will work its way out eventually (if you don’t touch it until it’s done) is get all the analysis and matching done.

(I tested this on a similar Passmark machine and it finished a day or two ago; sorry I didnt’ post back to you yet. Thanks for pinging me)

This tells me your machine can’t keep up.

Mar 26, 2023 18:34:15.334 [0x7f07a5fadb38] DEBUG - [Req#7ddce] Setting container serialization range to [0, 211] (total=-1)
Mar 26, 2023 18:34:15.386 [0x7f07a6aa8b38] DEBUG - Killing job.
Mar 26, 2023 18:34:15.386 [0x7f07a6aa8b38] DEBUG - Signalling job ID 105837 with 9
Mar 26, 2023 18:34:15.392 [0x7f07adbf8b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Media Scanner' exit code for process 105837 is 0 (success)
Mar 26, 2023 18:34:15.392 [0x7f07a6aa8b38] WARN - SLOW QUERY: It took 320.000000 ms to retrieve 0 items.

Your CPU is 2008 vintage and a dual core. It’s NOT up to the tasks you’re asking of it.

Before we had intro and credit detection, you could get by , letting it complete all scanning and metadata retrieval before attempting to play.

Dual core CPUs can do 1 thing at a time. Scan/Match or Play; but not both.

Now, with Intro and Credit detection, that takes a lot longer.
You need to be a lot more patient and not try to play / do anything until all scanning is done -OR- get a newer machine.

Really sorry but this repurposed old machine should be retired.
The current NAS boxes have more passmarks of performance than this.

So this is happening bc my mechine is old?

unfortunately yes.

Here is where you see “service unavailable” as a timeout (it didn’t respond fast enough)

2023-03-26 16:25:24,351 (7f5e3dbf4b38) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/servers'
2023-03-26 16:25:24,354 (7f5e3dbf4b38) :  ERROR (networking:196) - Error opening URL 'http://127.0.0.1:32400/servers'
2023-03-26 16:25:24,364 (7f5e3d4ebb38) :  DEBUG (runtime:814) - Found route matching /system/agents
2023-03-26 16:25:24,367 (7f5e3dbf4b38) :  CRITICAL (runtime:1128) - Exception in thread named 'refresh_servers' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1126, in _start_thread
    f(*args, **kwargs)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/System.bundle/Contents/Code/peerservice.py", line 169, in refresh_servers
    servers_el = self.get_servers_el()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/System.bundle/Contents/Code/peerservice.py", line 165, in get_servers_el
    return XML.ElementFromURL('http://127.0.0.1:32400/servers', cacheTime = 0)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 344, in ElementFromURL
    method=method,
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/networkkit.py", line 67, in _http_request
    req = self._core.networking.http_request(url, *args, **kwargs)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 346, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 118, in __init__
    self.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-a607d384f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 503: Service Unavailable

2023-03-26 16:25:24,380 (7f5e3dc3ab38) :  DEBUG (runtime:1117) - Created a thread named 'ensure_agent_info_exists_inner'
2023-03-26 16:25:24,388 (7f5e3dc3ab38) :  DEBUG (runtime:1117) - Created a thread named 'ensure_agent_info_exists_inner'
2023-03-26 16:25:24,402 (7f5e3dc3ab38) :  DEBUG (runtime:1117) - Created a thread named 'ensure_agent_info_exists_inner'

Just get something newer and this whole situation will improve.

For example.

Current low-end NAS systems commonly use low end I3 or ARMv8 CPUs; all of which are quad core.

I used to own a C2D. it was OK in a laptop in 2009 (14 years ago). No way does it “cut it” as a media server.

Thats sad, i never had a problem with that it slow… Yeah the library took few secs to load (2sec avg)
Movies were loading for 5seconds there was no problem with it i even disabled not needed thing and it ran good… So there nothing i can do other than different mechine?

A bit weird. The CPU usage when nothing is playing is idle no spikes… The CPU even runs under its clock (Power Saveing) its not under load and the ram isnt also full. It isnt even thermal throtle. I dont see why it cant handle it

If you want to make 100% certain,

We can do it this way:

  1. Stop PMS
  2. Go into “/var/lib/plex/mediaserver”
  3. Rename Library to Library.KEEP
  4. Now start a new server instance… HOWEVER, Give it a new name “TEST” or something to keep it unique.

I might be misreading it and there might be something deep down in the DB which is damaged.

If there is, this will prove it either way.

If it turns out the previous installation was bad, we can pull your watch history without issue.

I am having trouble understanding the 4 step can you explain further more?

Did everything you said. Named it TEST and i created a new library let it load finish all taks waited for the mechine to get idle. And same issue.

Anything else ishould try?

Even tried reinstalling, also tried setuping new LIB that is not mounted ( is on the drive) but again. Same issue.

@DEPSTRCZ

Sorry. Did not get notified until today.

Restart PMS.
Attempt to create a section
let it fail
Stop PMS

Manually grab a ZIP file of the “Logs” directory (or a tar.gz)

attach and I’ll look