# Plex Temp Folder Path deleted

**URL:** <https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [December 8, 2022, 3:10am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856 "2022-12-08T03:10:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 3:10am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/1 "2022-12-08T03:10:26Z")

</div>

Server Version#: 1.57.1.3358-5fd2a504  
Player Version#: 1.57.1.3358-5fd2a504  
  
Hi  
I have the following problem I have to give the Plex server a different path under settings transcoder temp folder where it should cache the files because I don’t have enough GB free on the main drive.

I do that and it works like this for up to 24 hours and then plex deletes this path and no playback is possible what can I do to ensure that the path remains permanent.

I installed the Plex server on a storage server with Debian 11. I have an LVM with 40TB where the media and the Temp folder are located.

the hard disks are installed in the server, no SAN or NAS, the LVM is also permanently attached to /ect/fstab and is permanently available.

---

<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:** [December 8, 2022, 3:26am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/2 "2022-12-08T03:26:31Z")

</div>

There is no Linux version (where you posted) 1.57.13358

Are you speaking about a Windows player version perhaps?

Can you make a tar.gz of the logs directory (or just download the logs from PMS itself) and attach them here please?

As for customizing PMS and moving the transcoder temporary directory,

1. You can set the location in PMS
2. PMS won’t delete the directory.

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 4:13am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/3 "2022-12-08T04:13:03Z")

</div>

Linux Version Debian GNU/Linux 11 (bullseye)  
Release: 11  
Codename: bullseye

[Plex Media Server Logs\_2022-12-08\_05-09-04.zip](https://forums.plex.tv/uploads/short-url/je4YB4xco5gkOyzHn5CFpSQc0Bx.zip) (1.7 MB)

So I have to set the temp folder path under transcoder settings several times because it always disappears after 24 hours, so the field is empty.

i use on macOS the following Version of Plex Server Version 1.29.2.6364

MacOS Versoin from Plex Version 1.57.1.3358-5fd2a504

---

<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:** [December 8, 2022, 4:55am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/4 "2022-12-08T04:55:54Z")

</div>

Let’s get a few things sorted to reduce confusion.

1. I have NO reference to 1.57.1 server anywhere.
2. I do have reference for PMS 1.58.1 (current version) of the Plex Player app. This makes sense now.

```auto
1.58.1.3380-ea159c52

November 23, 2022 

```

Your server version, from the [server logs,](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) is actually,

```auto
Dec 08, 2022 02:18:47.511 [0x7f5e0f2c9b38] INFO - Plex Media Server v1.29.2.6364-6d72b0cf6 - Debian GNU/Linux PC x86_64 - build: linux-x86_64 debian - GMT 01:00
Dec 08, 2022 02:18:47.511 [0x7f5e0f2c9b38] INFO - Linux version: 11 (bullseye), language: en-US
Dec 08, 2022 02:18:47.511 [0x7f5e0f2c9b38] INFO - Processor: 32-core Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz

```

You can find this information at the top of every ‘Plex Media Server\*.log’ file.

Your logs are showing me, as you relayed, the disk is full.

```auto
Dec 08, 2022 02:24:00.459 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) #58 GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.459 [0x7f5e0ec64b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) GZIP 0ms 195 bytes (pipelined: 35)
Dec 08, 2022 02:24:00.479 [0x7f5e0d363b38] ERROR - SQLITE3:0x80000001, 13, statement aborts at 7: [INSERT INTO vacuum_db.'blobs' SELECT*FROM"main".'blobs'] database or disk is full
Dec 08, 2022 02:24:00.493 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=3&metadataItemID=8150&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (3 live) #59 GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.494 [0x7f5e0ee67b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /:/metadata/notify/changeItemState?librarySectionID=3&metadataItemID=8150&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (3 live) GZIP 0ms 195 bytes (pipelined: 36)
Dec 08, 2022 02:24:00.494 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=3&metadataItemID=8150&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (3 live) #5a GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.495 [0x7f5e0ec64b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /:/metadata/notify/changeItemState?librarySectionID=3&metadataItemID=8150&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (3 live) GZIP 0ms 195 bytes (pipelined: 37)
Dec 08, 2022 02:24:00.496 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /library/changestamp (3 live) #5b GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.497 [0x7f5e0ee67b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /library/changestamp (3 live) GZIP 0ms 497 bytes (pipelined: 38)
Dec 08, 2022 02:24:00.499 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) #5c GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.500 [0x7f5e0ec64b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) GZIP 0ms 195 bytes (pipelined: 39)
Dec 08, 2022 02:24:00.503 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /library/changestamp (3 live) #5d GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.504 [0x7f5e0ee67b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /library/changestamp (3 live) GZIP 0ms 497 bytes (pipelined: 40)
Dec 08, 2022 02:24:00.506 [0x7f5e0b67cb38] DEBUG - Request: [127.0.0.1:33410 (Loopback)] GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) #5e GZIP Signed-in Token (fabian3357) (storage1.nl.euroservers.de)
Dec 08, 2022 02:24:00.507 [0x7f5e0ec64b38] DEBUG - Completed: [127.0.0.1:33410] 200 GET /:/metadata/flushMetadataCounterCache?metadataItemID=8142 (3 live) GZIP 0ms 195 bytes (pipelined: 41)
Dec 08, 2022 02:24:00.513 [0x7f5e0d363b38] ERROR - SQLITE3:0x80000001, 13, statement aborts at 1: [vacuum] database or disk is full
Dec 08, 2022 02:24:00.517 [0x7f5e0d363b38] ERROR - Butler: Uncaught exception starting generator GarbageCollectBlobs: sqlite3_statement_backend::loadOne: database or disk is full
Dec 08, 2022 02:24:00.517 [0x7f5e0d363b38] DEBUG - Activity: registered new sub-activity 0f07ba11-81f6-400d-bfba-805a458d084c - "OptimizeDatabase" parent: 8680246c-3fdc-40c1-bb8f-0562465bbe31 overall progress: 0.0% (0/1)
Dec 08, 2022 02:24:00.517 [0x7f5e0d363b38] DEBUG - Activity: ended sub-activity 0f07ba11-81f6-400d-bfba-805a458d084c parent: 8680246c-3fdc-40c1-bb8f-0562465bbe31 overall progress: 100.0% (1/1)

```

Trying to tell PMS to use a different temp directory, when the disk is full, will never get saved to the database – so the problem perpetuates.

We can easily customize your server configuration both outside and inside PMS.

If you’d like, I’ll show you how to customize where the temp directory goes (Linux variable TMP or TMPDIR)

After that’s done , and there is room on the disk ,  
-OR- if you want to move the entire metadata directory,

I can help you with that now. It’s very easy.

Do you have an idea where you want (which directory) PMS to use for Temp or where you might want to move all of PMS ? (you have both options)

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:10am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/5 "2022-12-08T05:10:38Z")

</div>

gladly thank you

I would like to have the temp folder on the following path /mp1/share/temp this is on the internal LVM there is enough space

It is best to have all the database transcoders there, etc.

---

<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:** [December 8, 2022, 5:15am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/6 "2022-12-08T05:15:53Z")

</div>

Quick question:

Given this is local to the host, would you like to put all of PMS there as well ?

example: /mp1/share/plexmediaserver

(would result in ‘/mp1/share/plexmediaserver/Plex Media Server/’ )

We can get both of these done at the same time if you wish.

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:17am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/7 "2022-12-08T05:17:37Z")

</div>

yes great

---

<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:** [December 8, 2022, 5:26am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/8 "2022-12-08T05:26:26Z")

</div>

Using this how-to from “Linux Tips”

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/6):
>
> Moving Plex’s metadata (Library) directory on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. If your system returns init, please see the next post in this thread. While you may change /lib/systemd/system/plexmediaserver.service, it is under the control of the package manager and subject to replacement without warning at any time during an update. To provide stability, systemd allows creation of an override.conf file to customiz…

we’re going to: ( I’ll write this out as copy/paste possible as I can for you )

1. Stop PMS
2. open bash terminal window and work from root:

```auto
$ sudo bash
# mkdir /mp1/share/plexmediaserver
# chown plex:plex /mp1/share/plexmediaserver
# cd "/var/lib/plexmediaserver/Library/Application Support"
# tar cf - . | (cd /mp1/share/plexmediaserver ; tar xf -)
# mkdir /etc/systemd/system/plexmediaserver.service.d
# cat > /etc/systemd/system/plexmediaserver.service.d/override.conf <<EOF
[Service]

Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mp1/share/plexmediaserver"

EOF
# cat /etc/systemd/system/plexmediaserver.service.d/override.conf
#
# NOTE: Confirm the contents of override.conf matches how shown in the Linux Tips
#

```

I’m stopping here so you can ask anything about what we’re doing.

1. Stop Plex
2. Use tar to copy the existing PMS installation (mirror copy) to /mp1/share/plexmediaserver/Plex Media Server
3. Create an ‘override.conf’ file to tell systemd the new environment variable for Plex.  
This variable tells PMS where the metadata (Plex Media Server) directory is.

So far so good ?

To share what’s coming next, we’re going to add another environment variable  
for you in the ‘override.conf’ file to expressly NOT use /tmp or /var.

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:34am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/9 "2022-12-08T05:34:38Z")

</div>

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/6):
>
> Library) directory on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. If your system returns init, please see the next post in this thread. While you may change /lib/systemd/system/plexmediaserver.service, it is under the control of the package manager and subject to replacement without warning at any time during an update. To provide stability, systemd allows creation of an override.conf file to customiz…

 ![Bildschirm­foto 2022-12-08 um 06.33.41](https://global.discourse-cdn.com/plex/original/4X/1/5/a/15a997173ce82c186b77dd87069c65ab0474d256.png)  
Is it correct that way ? see the screenshot

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:36am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/10 "2022-12-08T05:36:09Z")

</div>

> [@ChuckPa](#):
>
> `/etc/systemd/system/plexmediaserver.service.d/override.conf`

 ![Bildschirm­foto 2022-12-08 um 06.35.42](https://global.discourse-cdn.com/plex/original/4X/f/c/e/fcec6c3b0cfcd2b201f441a42d52c7dce5e1ee36.png)

---

<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:** [December 8, 2022, 5:36am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/11 "2022-12-08T05:36:53Z")

</div>

Not quite:

I think you copied me too literally. my fault.

The contents of the override.conf should be exactly:

```auto
[Service]

Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mp1/share/plexmediaserver"

```

EDIT: OK… Nano shows better.

Stay in nano… we have more to do:

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:37am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/12 "2022-12-08T05:37:57Z")

</div>

ok nano is open

---

<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:** [December 8, 2022, 5:39am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/13 "2022-12-08T05:39:08Z")

</div>

While in nano, we’re going to add the new variable to tell PMS which directory to use for TEMP

In override.conf, add

```auto
Environment="TMP=/mp1/share/plexmediaserver/tmp"

```

Save

Now

```auto
mkdir /mp1/share/plexmediaserver/tmp
chown plex:plex /mp1/share/plexmediaserver/tmp

```

---

<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:** [December 8, 2022, 5:41am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/14 "2022-12-08T05:41:14Z")

</div>

_Education value only_

PMS allows you to use the variables:

1. TMP
2. TMPDIR
3. TEMP

If none are specified, PMS uses `/tmp`

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:43am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/15 "2022-12-08T05:43:14Z")

</div>

root@storage1:/var/lib/plexmediaserver/Library/Application Support# chown plex:plex /tmp1/share/plexmediaserver/tmp  
chown: Cannot access ‘/tmp1/share/plexmediaserver/tmp’: File or directory not found  
root@storage1:/var/lib/plexmediaserver/Library/Application Support#

i get the following error.

---

<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:** [December 8, 2022, 5:43am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/16 "2022-12-08T05:43:47Z")

</div>

> [@asia613](#):
>
> /tmp1/share/plexmediaserver/tmp’

/mp1/share/plexmediaserver/tmp

🙂

typo

Sorry

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:45am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/17 "2022-12-08T05:45:58Z")

</div>

> [@ChuckPa](#):
>
> `/etc/systemd/system/plexmediaserver.service.d/override.conf`

 ![Bildschirm­foto 2022-12-08 um 06.45.23](https://global.discourse-cdn.com/plex/original/4X/7/5/a/75a1cd29657164800babadde2572ca4ded9e7130.png)

---

<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:** [December 8, 2022, 5:46am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/18 "2022-12-08T05:46:47Z")

</div>

How much free space exists in `/` (where /var is) ?

I would like to start Plex and confirm everything works Before we remove /var/lib/plexmediaserver/Library

Before we start plex

```auto
systemctl daemon-reload

```

This tells systemd that a configuration file has been added.

We can confirm this with

```auto
systemctl status plexmediaserver

```

It will show us “override.conf” is loaded.

---

<div class="post-metadata">

**Author:** ![asia613](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@asia613](https://forums.plex.tv/u/asia613)\
**Post date:** [December 8, 2022, 5:49am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/19 "2022-12-08T05:49:44Z")

</div>

one moment server is down i must check why

---

<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:** [December 8, 2022, 5:50am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/20 "2022-12-08T05:50:57Z")

</div>

If you need to make space for ROOT partition:

```auto
rm "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs"/*

```

[Next page](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856.md?page=2)
