# Temp Directory during dpkg install incorrect

**URL:** <https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [March 29, 2020, 2:45am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887 "2020-03-29T02:45:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 29, 2020, 2:45am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/1 "2020-03-29T02:45:38Z")

</div>

Server Version#: 1.18.9.2571-e106a8a91  
Player Version#: N/A

Server is Ubuntu 16.04 with all the latest updates installed, no other packages other than plexmediaserver have been installed.

When I update my server with: `sudo dpkg -i plexmediaserver_1.18.9.2571-e106a8a91_amd64.deb` it outputs some things:

```auto
Preparing to unpack plexmediaserver_1.18.9.2571-e106a8a91_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.18.9.2571-e106a8a91) over (1.18.8.2527-740d4c206) ...
Setting up plexmediaserver (1.18.9.2571-e106a8a91) ...
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Process Control: Systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /var/lib/plexmediaserver/tmp_transcoding
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: HW transcoding: Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.18.9.2571-e106a8a91 - Installation successful.

```

Everything works properly… but the “Temp Directory” is wrong… it’s actually `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode`. I noticed this on all the 1.18 installations. As far as I can tell, `/var/lib/plexmediaserver/tmp_transcoding` isn’t actually used for anything.

Is this a bug? Am I misunderstanding?

---

<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:** [March 29, 2020, 3:24am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/2 "2020-03-29T03:24:02Z")

</div>

I made a change in the installer, which you will see as of PMS 1.19.0.  
PMS 1.18.9 (this release) is the last of the 1.18.x train.

In 1.19.0 , I will show the actual Preference in your Preferences instead of the service defaults.

I added this by popular request. 🙂

If there are any other items from “Preferences.xml” which would be useful, I will consider adding them.

---

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 29, 2020, 4:38am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/3 "2020-03-29T04:38:17Z")

</div>

I do actually like seeing this info, and look forward to the fix in 1.19.

That said, AFAIK `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode` is the default, so I’m confused that you seem to imply that `/var/lib/plexmediaserver/tmp_transcoding` is the default which I changed.

Appreciate your (fast) reply. Thanks!

---

<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:** [March 29, 2020, 5:16am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/4 "2020-03-29T05:16:07Z")

</div>

What I have done is to extract `TranscoderTempDir="Pathname"` from the Preferences.xml file.

If you place your Transcoder temp in `/dev/shm`, then you will see `/dev/shm` displayed.

By creating the base capability, I can extract any other `Name="value"` pairs.

---

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 29, 2020, 9:48pm UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/5 "2020-03-29T21:48:18Z")

</div>

> [@ChuckPa](#):
>
> What I have done is to extract `TranscoderTempDir="Pathname"` from the Preferences.xml file.

The key `TranscoderTempDir` does not exist in my Preferences.xml file (I’m guessing because I never changed it from the default).

---

<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:** [March 29, 2020, 10:43pm UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/6 "2020-03-29T22:43:41Z")

</div>

Correct.

> **[Advanced, Hidden Server Settings | Plex Support](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)**
>
> There are a number of advanced, hidden Plex Media Server settings, some of which are not available from the normal...

---

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 29, 2020, 10:48pm UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/7 "2020-03-29T22:48:26Z")

</div>

Just curious though, where does update script get the value:  
`/var/lib/plexmediaserver/tmp_transcoding`  
from?

---

<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:** [March 29, 2020, 11:09pm UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/8 "2020-03-29T23:09:22Z")

</div>

The value it displays is drawn from:

1. The default service definition
2. Updated by any value you have for the service (override)
3. Updated one more time from the `Preferences.xml` (beginning in 1.19.0)

---

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 30, 2020, 12:20am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/9 "2020-03-30T00:20:04Z")

</div>

I’m still a little confused about where it’s coming from. I haven’t set any service overrides, and the default is `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode`

I don’t mean to be annoying, I’m just trying to figure out where the output `/var/lib/plexmediaserver/tmp_transcoding` is coming from.

---

<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:** [March 30, 2020, 1:47am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/11 "2020-03-30T01:47:11Z")

</div>

Thank you for pointing this out.

I went through the CM source and found the departure from legacy.

The correct default value to report is `/tmp`.  
I am making the change to the packaging scripts now.

I will request these changes be included with PMS A.S.A.P.

---

<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:** [March 30, 2020, 3:09am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/12 "2020-03-30T03:09:14Z")

</div>

This is a screenshot from my packaging development environment.  
Please ignore that I’m using 1.18.7. Version doesn’t matter; the output does.

 ![Screenshot from 2020-03-29 22-21-58](https://global.discourse-cdn.com/plex/original/3X/7/f/7fe8bd062149133e9de930ef488a7daa3a866c2c.png)

---

<div class="post-metadata">

**Author:** ![adayforgotten](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@adayforgotten](https://forums.plex.tv/u/adayforgotten)\
**Post date:** [March 30, 2020, 8:10am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/13 "2020-03-30T08:10:27Z")

</div>

Really appreciate your replies and the details you’ve shared.

Still though, isn’t the default transcoding temporary storage location here?  
`/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode`

---

<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:** [June 28, 2020, 8:21am UTC](https://forums.plex.tv/t/temp-directory-during-dpkg-install-incorrect/563887/14 "2020-06-28T08:21:17Z")

</div>

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