# Can't add Library

**URL:** <https://forums.plex.tv/t/cant-add-library/831969>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [February 22, 2023, 7:55pm UTC](https://forums.plex.tv/t/cant-add-library/831969 "2023-02-22T19:55:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kianwalters05](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kianwalters05](https://forums.plex.tv/u/kianwalters05)\
**Post date:** [February 22, 2023, 7:55pm UTC](https://forums.plex.tv/t/cant-add-library/831969/1 "2023-02-22T19:55:32Z")

</div>

Server Version#: Latest  
Player Version#: Latest

Hey!  
I recently installed Plex & went to add a library (is using CIFS on Ubuntu to mount it), yet when I attempt to I am unable. After checking console I get the following error (image attached). Does anyone know how to fix this?

 ![image](https://global.discourse-cdn.com/plex/original/4X/9/f/3/9f396cb88bb0500dac6e0b75b5bac5f1a0c89747.png)

Thanks!  
Kian

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [February 22, 2023, 8:33pm UTC](https://forums.plex.tv/t/cant-add-library/831969/2 "2023-02-22T20:33:52Z")

</div>

what scanner/agent/language options have you selected when attempting to create that library?

---

<div class="post-metadata">

**Author:** ![envyUK](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@envyUK](https://forums.plex.tv/u/envyUK)\
**Post date:** [February 22, 2023, 9:40pm UTC](https://forums.plex.tv/t/cant-add-library/831969/3 "2023-02-22T21:40:44Z")

</div>

Commenting here because I’m getting the same error when attempting to upgrade a library.

Server Version: 1.31.0.6654  
Player Version: 4.101.1

Library Details:  
Current Scanner: Plex Music Scanner  
Current Agent: Last.fm  
Current Language: English

Target Scanner: Plex Music  
Target agent: Plex Music  
Target Language: English

Clicking “Upgrade Library” returns the error “There was a problem upgrading the library”. Looking at the network data, I’m getting a 400 Bad Request respond with the description: “‘agent’ is missing or invalid new scanner needs to be paired with new agent”.

The URL parameters list the agent as “tv.plex.agents.music” and the scanner as “Plex Music” in the sent request.

::EDIT  
Getting the same error when attempting to create a new library, again using the scanner and agent “Plex Music”, with the error happening with multiple language choices. Log entry from the console:

```plaintext
[Req#19bc97] Library: Couldn't create section: 'agent' is missing or invalid
[Req#19bc97] Library: Couldn't create section: 'language' is invalid
[Req#19bc97] Library: Couldn't create section: new scanner needs to be paired with new agent

```

Here is the console output when I attempt to upgrade an existing Music library:

```plaintext
Request: [10.7.7.3:31202 (Subnet)] PUT /library/sections/6?agent=tv.plex.agents.music&scanner=Plex%20Music (12 live) #19c2c4 TLS GZIP Signed-in Token (envyUK) (Firefox) / Accept => text/plain, */*; q=0.01 / Accept-Encoding => gzip, deflate, br / Accept-Language => en / Connection => keep-alive / Content-Length => 0 / DNT => 1 / Host => 10-7-7-71.e849b49a6b384a3389f52e9e3b60d448.plex.direct:32400 / Origin => https://app.plex.tv / Referer => https://app.plex.tv/ / Sec-Fetch-Dest => empty / Sec-Fetch-Mode => cors / Sec-Fetch-Site => cross-site / User-Agent => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0 / X-Plex-Client-Identifier => xjgo59icdf5k4zmocher9a1j / X-Plex-Device => Windows / X-Plex-Device-Name => Firefox / X-Plex-Device-Screen-Resolution => 2560x1315,2560x1440 / X-Plex-Features => external-media,indirect-media,hub-style-list / X-Plex-Language => en / X-Plex-Model => hosted / X-Plex-Platform => Firefox / X-Plex-Platform-Version => 110.0 / X-Plex-Product => Plex Web / X-Plex-Token => xxxxxxxxxxxxxxxxxxxx / X-Plex-Version => 4.101.1
[Req#19c2c4] Errors in PUT request: <html><head><title>Bad Request</title></head><body><h1>400 Bad Request</h1></body></html>'agent' is missing or invalid new scanner needs to be paired with new agent 
Completed: [10.7.7.3:31202] 400 PUT /library/sections/6?agent=tv.plex.agents.music&scanner=Plex%20Music (12 live) TLS GZIP 0ms 572 bytes (pipelined: 12)

```

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [February 23, 2023, 11:26am UTC](https://forums.plex.tv/t/cant-add-library/831969/4 "2023-02-23T11:26:55Z")

</div>

If this is similar to the issues on the latest Windows server versions, try this:

1. stop Plex server
2. restart Plex server
3. try again

---

<div class="post-metadata">

**Author:** ![kianwalters05](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kianwalters05](https://forums.plex.tv/u/kianwalters05)\
**Post date:** [February 23, 2023, 11:47am UTC](https://forums.plex.tv/t/cant-add-library/831969/5 "2023-02-23T11:47:03Z")

</div>

Hey!  
Already tried this. Didnt work ☹

---

<div class="post-metadata">

**Author:** ![envyUK](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@envyUK](https://forums.plex.tv/u/envyUK)\
**Post date:** [February 23, 2023, 5:04pm UTC](https://forums.plex.tv/t/cant-add-library/831969/6 "2023-02-23T17:04:46Z")

</div>

A restart fixed it on my end.

---

<div class="post-metadata">

**Author:** ![thepalmer](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@thepalmer](https://forums.plex.tv/u/thepalmer)\
**Post date:** [February 24, 2023, 4:05am UTC](https://forums.plex.tv/t/cant-add-library/831969/7 "2023-02-24T04:05:40Z")

</div>

I got the same issue (hopefully the screenshot shows)

 ![Plex-Error](https://global.discourse-cdn.com/plex/original/4X/7/f/7/7f7e759173f6883623ccc21315833a8e1f85b6b8.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [May 25, 2023, 4:06am UTC](https://forums.plex.tv/t/cant-add-library/831969/8 "2023-05-25T04:06:02Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
