# \[CreditsDetectionManager\] BufferingLineReader: failed to read line (error: -1)

**URL:** https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890
**Category:** Plex Media Server
**Tags:** server-synology, end-credits
**Created:** [February 15, 2023, 3:29pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890 "2023-02-15T15:29:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![MSNASMEDIA](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@MSNASMEDIA](https://forums.plex.tv/u/MSNASMEDIA)
#### Post date: [February 15, 2023, 3:29pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/1 "2023-02-15T15:29:18Z")

</div>

Server Version#: 1.31.0.6654  
Player Version#: LG Plex App, latest

Hello community!

I got at least 3 error like mentioned in the topic.  
What’s the problem?

Best regards

---

<div class="post-metadata">

### Author: ![lyskamm](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lyskamm](https://forums.plex.tv/u/lyskamm)
#### Post date: [February 15, 2023, 4:04pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/2 "2023-02-15T16:04:09Z")

</div>

Same error keeps happening on my Synology as well  
Now using the latest **1.31.1.6716** , but it was the same in the previous 1.31.0.6654 and in the alpha version.  
Tried on several shows and movies, always the same error. Intro detection works fine

```auto
Feb 15, 2023 16:46:39.238 [0x7fc388cdcb00] INFO - Plex Media Scanner v1.31.1.6716-ca0c45ff8 - Synology DS220+ x86_64 - build: linux-x86_64 - GMT 01:00
Feb 15, 2023 16:46:39.238 [0x7fc388cdcb00] INFO - Linux version: DSM 7.1.1.42962-4, language: en-US
Feb 15, 2023 16:46:39.238 [0x7fc388cdcb00] INFO - Processor: 2-core Intel(R) Celeron(R) J4025 CPU @ 2.00GHz
Feb 15, 2023 16:46:39.238 [0x7fc388cdcb00] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Scanner -C -f /volume2/Media/TV Shows/showxxx/Season 1/xxxxx.mkv --log-file-suffix Credits
Feb 15, 2023 16:47:01.796 [0x7fc388d78b40] ERROR - BufferingLineReader: failed to read line (error: -1)

```

---

<div class="post-metadata">

### Author: ![pommesmatte](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pommesmatte](https://forums.plex.tv/u/pommesmatte)
#### Post date: [February 16, 2023, 7:44pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/3 "2023-02-16T19:44:14Z")

</div>

Yep, I’m also getting loads and loads of these errors.

---

<div class="post-metadata">

### Author: ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)
#### Post date: [February 16, 2023, 7:58pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/4 "2023-02-16T19:58:29Z")

</div>

That error message is unfortunately not very useful at the moment as it will get logged even if nothing went wrong. It will get fixed in a future PMS version.

If you have a specific problem then you’ll have to be more specific on what is actually happening.

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [February 16, 2023, 8:10pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/5 "2023-02-16T20:10:32Z")

</div>

@pommesmatte

@lyskamm

@MSNASMEDIA

Turn DEBUG logging back on.  
Restart PMS  
Recreate it  
Capture fresh logs ZIP file  
Attach the ZIP file here so DrZoidberg can see them

when you turned DEBUG off, you hampered any chance of tracking down where it’s coming from

---

<div class="post-metadata">

### Author: ![pommesmatte](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pommesmatte](https://forums.plex.tv/u/pommesmatte)
#### Post date: [February 16, 2023, 8:30pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/6 "2023-02-16T20:30:31Z")

</div>

> [@drzoidberg33](#):
>
> If you have a specific problem then you’ll have to be more specific on what is actually happening.

Well yes, it doesn’t generate a credits marker.  
I enabled Debug and tried on a movie and an episode.

[Plex Media Server Logs\_2023-02-16\_21-29-14.zip](https://forums.plex.tv/uploads/short-url/9BoSZ4fZMV8BMTQL6NQPo9w8fFB.zip) (1.1 MB)

EDIT: To be clear, generelly it DOES generate credits markers on some files.

---

<div class="post-metadata">

### Author: ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)
#### Post date: [February 16, 2023, 8:35pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/7 "2023-02-16T20:35:11Z")

</div>

It may be related to the timeout issue which is resolved in the latest beta:

> [@Plex Media Server](https://forums.plex.tv/t/plex-media-server/30447/555):
>
> Plex Media Server 1.31.1.6716 is now available to Plex Pass users in the Beta update channel. NEW: (Scanner) Adds support for the Extend multi-episode format i.e. S01E01-02 (#14064) (Subtitles) Attempt to automatically detect improperly-tagged forced streams based on their titles (#14096) (TV) Provide clients with the number of non-Specials seasons for display when browsing (#14036) (Web) Updated to 4.100.1 Add Ukrainian translations. Updated translations. FIXES: (Clustering) Photos timeli…

---

<div class="post-metadata">

### Author: ![lyskamm](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lyskamm](https://forums.plex.tv/u/lyskamm)
#### Post date: [February 17, 2023, 2:13pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/8 "2023-02-17T14:13:38Z")

</div>

In my case even using the latest beta 1.31.1.6716, no credit are detected with the same error . This is going on from the original alpha release, i.e. it never worked properly.

As I already pointed out, Credits detection works fine.

I enclose the latest full logs:  
[Plex Media Server Logs\_2023-02-17\_14-58-20.zip](https://forums.plex.tv/uploads/short-url/bxvW6nkBaN9wITg7NFuc8SMc2hP.zip) (305.5 KB)

---

<div class="post-metadata">

### Author: ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)
#### Post date: [February 17, 2023, 2:44pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/9 "2023-02-17T14:44:49Z")

</div>

You’ll need to enable [Debug Logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) in order for their to be useful information in the logs.

---

<div class="post-metadata">

### Author: ![Orko](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/orko/32/82522_2.png) [@Orko](https://forums.plex.tv/u/Orko)
#### Post date: [February 17, 2023, 3:08pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/10 "2023-02-17T15:08:48Z")

</div>

Same error and no credits does not work as a whole.  
Also not exactly sure how to see if any credits got detected, but the recently added stuff has no markers

root@lxt-prod-users-plex01:~# cat Plex\ Media\ Server.log |grep Credits|grep ERROR|wc -l  
633

a bit spamy

---

<div class="post-metadata">

### Author: ![slashking826](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/slashking826/32/341193_2.png) [@slashking826](https://forums.plex.tv/u/slashking826)
#### Post date: [February 19, 2023, 3:37am UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/11 "2023-02-19T03:37:39Z")

</div>

I am running PMS beta version 1.31.1.6716 from a docker container in a server with an ARM CPU and having the same error.

[Req#2d064/CreditsDetectionManager] BufferingLineReader: failed to read line (error: -1)

[Req#2d064/CreditsDetectionManager] Job failed: Decryption failed

Image of the error: [IMG-20230218-WA0000 hosted at ImgBB — ImgBB](https://ibb.co/tCvN32T)

---

<div class="post-metadata">

### Author: ![TChilderhose](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tchilderhose/32/331015_2.png) [@TChilderhose](https://forums.plex.tv/u/TChilderhose)
#### Post date: [February 21, 2023, 2:55am UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/12 "2023-02-21T02:55:07Z")

</div>

I’m also getting the problem and I think it might be blocking intro detection. I can see a credits `Marker` being added, but the intro one is missing.

Using Winx64 `1.31.0.6654` but it also happens on ` 1.31.1.6716` as well

`Plex Media Scanner Credits.log`

```auto
Feb 20, 2023 21:48:38.584 [19828] DEBUG - [JobRunner] Jobs: Starting child process with pid 19768
Feb 20, 2023 21:49:20.875 [5904] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 19768 is 0 (success)
Feb 20, 2023 21:49:20.894 [19828] ERROR - PeekNamedPipe failed: 0x6d
Feb 20, 2023 21:49:20.894 [19828] ERROR - BufferingLineReader: failed to read line (error: -1)

```

`Plex Media Server.log`

```auto
Feb 20, 2023 21:49:39.967 [12104] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe' exit code for process 12196 is 0 (success)
Feb 20, 2023 21:49:39.970 [25424] ERROR - [Req#2ea/CreditsDetectionManager] PeekNamedPipe failed: 0x6d
Feb 20, 2023 21:49:39.970 [25424] ERROR - [Req#2ea/CreditsDetectionManager] BufferingLineReader: failed to read line (error: -1)
Feb 20, 2023 21:49:39.971 [25424] DEBUG - [Req#2ea/CreditsDetectionManager] Activity: updated activity b72475de-28f6-42b0-9cb1-ec50a56d1e6a - completed 75.0% - Detecting Credits
Feb 20, 2023 21:49:39.971 [25424] DEBUG - [Req#2ea/CreditsDetectionManager] Updating part with ID=134191 [M:\Video\TV\The Last of Us (2023) {imdb-tt3581920}\Season 01\The Last of Us (2023) - S01E06 - Kin [HMAX WEBDL-2160p][DV]-NTb.mkv]
Feb 20, 2023 21:49:39.973 [25424] DEBUG - [Req#2ea/CreditsDetectionManager] Doing expensive tags write for 'Kin' because something changed.
Feb 20, 2023 21:49:39.974 [25424] DEBUG - [Req#2ea/CreditsDetectionManager] Successfully processed item 100820
Feb 20, 2023 21:49:39.974 [25424] DEBUG - [Req#2ea/CreditsDetectionManager] Activity: Ended activity b72475de-28f6-42b0-9cb1-ec50a56d1e6a.

```

Let me know if you want me to try some things

[logs.zip](https://forums.plex.tv/uploads/short-url/zk9sJW7MSFyL3Qcz4r1tPgmiMdg.zip) (23.7 KB)

Edit: I should also mention that I have it set to `local detection only` if that makes a difference. I know that it forces it to be recalculated when `Analyze` is triggered on the video, but not sure if it has other effects.

---

<div class="post-metadata">

### Author: ![slashking826](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/slashking826/32/341193_2.png) [@slashking826](https://forums.plex.tv/u/slashking826)
#### Post date: [February 21, 2023, 6:38pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/13 "2023-02-21T18:38:32Z")

</div>

I tested with the new version 1.31.1.6733 and I still get these error logs:

```auto
Feb 21, 2023 12:29:12.161 [0xffffb147a0d0] Error — [Req#1c3/CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
Feb 21, 2023 12:29:22.161 [0xffffb147a0d0] Debug — [Req#1c3/CreditsDetectionManager] Killing job.
Feb 21, 2023 12:29:22.161 [0xffffb147a0d0] Debug — [Req#1c3/CreditsDetectionManager] Signalling job ID 1066 with 9
Feb 21, 2023 12:29:22.161 [0xffffb147a0d0] Debug — [Req#1c3/CreditsDetectionManager] Activity: updated activity d5864e7f-3048-4c02-b8eb-a2adc3e60dfb - completed 75.0% - Detecting Credits
Feb 21, 2023 12:29:22.175 [0xffffb147a0d0] Error — [Req#1c3/CreditsDetectionManager] Job failed: Scanner job failed
Feb 21, 2023 12:29:22.178 [0xffffb147a0d0] Debug — [Req#1c3/CreditsDetectionManager] Activity: Ended activity d5864e7f-3048-4c02-b8eb-a2adc3e60dfb.

```

---

<div class="post-metadata">

### Author: ![DNAblue2112](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dnablue2112/32/238960_2.png) [@DNAblue2112](https://forums.plex.tv/u/DNAblue2112)
#### Post date: [February 22, 2023, 2:10am UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/14 "2023-02-22T02:10:59Z")

</div>

Also having this issue, except it’s affecting all of my media. I have yet to have a successful credits detection. Here are the credit scanner logs with verbose and debug enabled, doesn’t appear different to others. In case it helps, all my media is H265 in MKV, this is also on the latest plex pass beta  
[Plex Media Scanner Credits.log](https://forums.plex.tv/uploads/short-url/zSmz1JwQvCWdb1iNuzF3NiZWzW6.log) (7.0 KB)

---

<div class="post-metadata">

### Author: ![lyskamm](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lyskamm](https://forums.plex.tv/u/lyskamm)
#### Post date: [February 22, 2023, 2:17pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/15 "2023-02-22T14:17:12Z")

</div>

Updated to the latest **1.31.1.6733** and no change: still credits recognition **doesn’t work** on any h265 file. Latest logs are enclosed.

In conclusion, at least in my case, Credit recognition only works for the h264 files; it doesn’t work for any HEVC (H265) files: not one of them have the Credits marker tag.

[Plex Media Server Logs\_2023-02-22\_12-37-39.zip](https://forums.plex.tv/uploads/short-url/jiIBUMAZVUVaEcfQ72M1HCNzmBh.zip) (298.8 KB)

---

<div class="post-metadata">

### Author: ![snyderxc](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@snyderxc](https://forums.plex.tv/u/snyderxc)
#### Post date: [March 14, 2023, 1:39pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/16 "2023-03-14T13:39:12Z")

</div>

I’m seeing the same issues. I only have h264, and it seems to happen with my longer movies primarily (none of my Lord of the Rings extended have completed, but almost everything else has). My logs look very similar to slashking826, where it gets to the 75% complete and then fails with `error: -2`. If it would be helpful, I can pull some logs. I’m on a Raspberry Pi 4, so I was hopeful that the timeout fix would resolve this for me, but it hasn’t.

---

<div class="post-metadata">

### Author: ![klimczak\_k\_gmail\_com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/klimczak_k_gmail_com/32/233428_2.png) [@klimczak\_k\_gmail\_com](https://forums.plex.tv/u/klimczak_k_gmail_com)
#### Post date: [March 18, 2023, 5:14pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/17 "2023-03-18T17:14:52Z")

</div>

I have that same problem with many files. Most of them are x265.mkv, but I have also problems with x265.10bit.mkv or DoVi 2160p ts files. I turned on [debug logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1), here are last 6 log files (it is possible to incresease this limit?)

[Plex Media Scanner Credits.1.log](https://forums.plex.tv/uploads/short-url/ypkq4go2HOmSz1T4uyLTA0dwEYE.log) (6.1 KB)  
[Plex Media Scanner Credits.2.log](https://forums.plex.tv/uploads/short-url/gi2IHE2ADLeR1f6wpW2L1dd4IV2.log) (7.8 KB)  
[Plex Media Scanner Credits.3.log](https://forums.plex.tv/uploads/short-url/bZbLkTb4vuDkUCwNsuykt5zbIpM.log) (5.9 KB)  
[Plex Media Scanner Credits.4.log](https://forums.plex.tv/uploads/short-url/iDQpyDPnXNgo3rUSDhznFrAYZ2Q.log) (5.3 KB)  
[Plex Media Scanner Credits.5.log](https://forums.plex.tv/uploads/short-url/aShq9XOW0cEMQqcB5SKXeqn8pW6.log) (6.1 KB)  
[Plex Media Scanner Credits.log](https://forums.plex.tv/uploads/short-url/wYJ9HmlHMHBCOFZ8SbKaD2RSyGl.log) (5.5 KB)

---

<div class="post-metadata">

### Author: ![slashking826](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/slashking826/32/341193_2.png) [@slashking826](https://forums.plex.tv/u/slashking826)
#### Post date: [May 11, 2023, 11:18pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/18 "2023-05-11T23:18:50Z")

</div>

Is there any updates with this issue? And is there anything I could do to help? The credits detection hasn’t worked for me yet because of this error ☹

---

<div class="post-metadata">

### Author: ![lyskamm](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@lyskamm](https://forums.plex.tv/u/lyskamm)
#### Post date: [May 12, 2023, 8:29pm UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/19 "2023-05-12T20:29:53Z")

</div>

I was one of the first to raise the issue (2 months ago) and since then I tried any new version but the issue hasn’t been solved yet.

It seems to be specific to Synology NAS

---

<div class="post-metadata">

### Author: ![Orko](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/orko/32/82522_2.png) [@Orko](https://forums.plex.tv/u/Orko)
#### Post date: [May 13, 2023, 6:57am UTC](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890/20 "2023-05-13T06:57:49Z")

</div>

Nothing changed.

```auto
# cat Plex\ Media\ Server.log |grep CreditsDetection|grep ERROR|wc -l
329

```

[Next page](https://forums.plex.tv/t/creditsdetectionmanager-bufferinglinereader-failed-to-read-line-error-1/830890.md?page=2)
