# Manual Files Being Terminated

**URL:** https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652
**Category:** Bugs
**Created:** [May 19, 2020, 1:30pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652 "2020-05-19T13:30:07Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [May 19, 2020, 1:30pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/1 "2020-05-19T13:30:07Z")

</div>

**Request Type:**  
BUG / NEW FEATURE

**MCEBuddy Version and Type (64bit):**

**Operating System and Type (Windows 10 64bit):**

**Summary of the problem or suggestion:**

The error comes up randomly in the logs and is false as the directory and the filename both are well under 250 characters.

“ERROR\> 2020-05-19T23:19:28 MCEBuddy.Engine.QueueManager → Add manual files terminated.  
ERROR : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.”

The only way to fix it is to reinstall the program which works for a certain amount of days/weeks until the same error is given.

**Steps to replicate the bug:**  
Add files manually

## **Screenshots:** No needed.

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 19, 2020, 2:05pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/2 "2020-05-19T14:05:57Z")

</div>

I see what’s going on. It’s a limitation in windows that the total filename and path length cannot exceed a certain length as you can see. So Windows is killing it but MCEBuddy keeps trying again and hence you get stuck.

A quick short fix is to delete the _manualqueue_ file in the _Config_ directory where MCEBuddy is installed. This contains the list of manually added files and it gets stuck in a loop trying to process the same entry from that file.

Can you attach your MCEBuddy.log file so I can take a look where exactly this issue is taking place.

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 19, 2020, 8:09pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/3 "2020-05-19T20:09:16Z")

</div>

Fixed in today’s 2.4.5 BETA build. Check it out, it should gracefully handle this situation and remove the file from manualqueue with an appropriate message/details on the logs. Thanks for reporting this.

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [May 20, 2020, 6:10am UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/4 "2020-05-20T06:10:41Z")

</div>

Great! Thanks Goose. I will install and continue to monitor for the same error if it comes back.

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [May 30, 2020, 7:09am UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/5 "2020-05-30T07:09:39Z")

</div>

Seems to happen again. I got this message today.

ERROR\> 2020-05-29T20:40:02 MCEBuddy.Engine.QueueManager --\> Add manual files:\?\E:\DVR\Plex\TV Shows (TS).grab\5f23ad485d43a5b918784fa1e61dd9bf717461f2-d996d53a6bedd792b9bcb5ad2310f2d2a3c74eec\Better Homes And Gardens - 2020-05-29 19 00 00 - 2020 - Forrest Victoria Italian Chicken Noodle Soup Eco-Friendly And Budget-Wise Gardening Tips.ts

After changing to a different directory and manually adding it works again.

What is happening here?

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 30, 2020, 12:32pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/6 "2020-05-30T12:32:01Z")

</div>

Your fileystem or folder is corrupted. I see a random share path at the beginning of the file path `\\?` reported by windows  
`\\?\E:\DVR\Plex\TV Shows (TS)\.grab\5f23ad485d43a5b918784fa1e61dd9bf717461f2-d996d53a6bedd792b9bcb5ad2310f2d2a3c74eec\Better Homes And Gardens - 2020-05-29 19 00 00 - 2020 - Forrest Victoria Italian Chicken Noodle Soup Eco-Friendly And Budget-Wise Gardening Tips.ts` which is making your file path invalid.

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 6, 2020, 7:22am UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/7 "2020-06-06T07:22:46Z")

</div>

That can’t be right as I have no problems with the other shows from the same path.

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 7, 2020, 12:06pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/9 "2020-06-07T12:06:34Z")

</div>

After more testing it seems most shows are fine but that particular show runs into too long path error (sometimes).

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 7, 2020, 12:08pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/10 "2020-06-07T12:08:01Z")

</div>

Can this 250 character limit imposed be cancelled or ignored in the app?

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [June 7, 2020, 1:32pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/11 "2020-06-07T13:32:50Z")

</div>

That’s error is from windows itself, MCEBuddy is just reporting it. Your filepath is invalid which indicates a corrupted filesystem or the software creating the files is causing the issue. No filepath should start with `\\?`, that’s just invalid.

As a simple test move the file to a different folder / disk and rename it and try it again.

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 8, 2020, 5:25am UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/12 "2020-06-08T05:25:31Z")

</div>

The filesystem has been checked and is fine. Might be an issue with how it is automatically being passed to MCEbuddy using a script from Plex. Are you able to look at the script and see if you can notice anything wrong?

thanks

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 8, 2020, 5:26am UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/13 "2020-06-08T05:26:54Z")

</div>

Script Attached.

[MCEBuddyScriptv2.bat](https://discussion.mcebuddy2x.com/uploads/short-url/1fdmTJfciY3vOcvZWPjmGXazCBU.bat) (453 Bytes)

---

<div class="post-metadata">

### Author: ![ozonline](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/o/58956e/32.png) [@ozonline](https://discussion.mcebuddy2x.com/u/ozonline)
#### Post date: [June 14, 2020, 12:56pm UTC](https://discussion.mcebuddy2x.com/t/manual-files-being-terminated/3652/15 "2020-06-14T12:56:00Z")

</div>

@Goose @mcebuddy2x any news on this?
