Ubuntu 22.04 Packaging - development & preview

I guess I’ll thank management for taking care of me :crazy_face:

So if you’re using repo and want to use the plexpass release you just download and install, and it will be superceded by the next higher repo release automatically yes?

@BinaryJay

If the repo is enabled, YES, the next time a public release is a higher version, it will automatically install it.

I know it’s off topic, but I’ve always been disappointed with that policy. We paid for it, we should be able to update the beta automatically without a 3rd party app or script. But that doesn’t bother me nearly as much as the default setting for remote video quality being 720p… :face_with_symbols_over_mouth::triumph::sweat_smile:

Now back to the topic at hand and the real reason I’m commenting. When I run ‘apt update’, I get the following message:
https://downloads.plex.tv/repo/deb/dists/public/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

I found a few guides showing how to migrate the key, but it’s still working, so laziness has won out for now. :rofl: Perhaps the support article could be updated to reflect these new changes as well?

Also, once 1.27.2 is released I’m safe to resume normal updates and the installer will continue to manage the holds?

If I may clear things up,

  1. The topic here is the preview of 22.04 packaging to address hardware transcoding only. I’m always open to be pinged (asked) about anything else.

  2. I’ve asked why the beta is like it is and have been told it’s the way they want it.
    Manual download and manual install is you opting-in to that version instead of having it unwittingly installed on your system.

  3. Regarding the deprecation of apt-key as of 20.04, I am already working on implementing for the next packaging update. Yes, I forgot about it. Five days ago I put it on my schedule and now have progress to report.

  4. If you look here, You will find I have a test package for apt-keygpg migration. When I finalize my work, I will again have a full forum preview thread (In the next week or so)

@ChuckPa

How come this output still has Beignet in it, and nothing mentioning the new OpenCL stuff? This was installed on 22.04.

Release notes for this version stated:

  • Improve Intel Compute Runtime version detection in packaging on Ubuntu 22.04 and newer.

Setting up plexmediaserver (1.27.2.5929-a806c5905) …
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
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: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Processor: i5-7500T
PlexMediaServer install: Intel i915 Hardware: Found
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: OpenCL: Installed
PlexMediaServer install: Beignet: Not Installed
PlexMediaServer install:
PlexMediaServer install: WARNING: The Beignet-OpenCL library, required for hardware transcoding of HDR content, is missing.
PlexMediaServer install: Please install package: ‘beignet-opencl-icd’
PlexMediaServer install:
PlexMediaServer install: INFO: dpkg will install package ‘beignet-opencl-icd’ automatically
PlexMediaServer install: if available for your host upon successful installation of Plex Media Server.
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - Installation successful. Errors: 0, Warnings: 1

CRAP!!!

I tested that!

Show me your /tmp/plexinstaller.log please.

I will get the package myself. I wonder if they missed it.

Plex Media Server installation configuration info: Wed 29 Jun 2022 11:07:23 PM EDT

Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=“”
PlexUser=“plex”
PlexGroup=“plex”
VideoGroup=“video”
AppSuppDir=“/var/lib/plexmediaserver/Library/Application Support”
PlexTempDir=“/tmp”
LangEncoding=“en_US.UTF-8”
ExistingVersion=12701
DistroName=“ubuntu”
DistroVersion=“2204”
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
HaveIntelCeleron=0
HaveIntelPentium=0
Havei915=1
HaveNvidia=0
CPUSKU=7500
NeedOpenCL=1
NeedBeignet=1
NeedIntelCompute=0
HaveBeignet=0
HaveOpenCL=1
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
RequiredIntelGmmlib=“21.3.3”
RequiredIntelIGCCore=“1.0.9441”
RequiredIntelIGCOpenCL=“1.0.9441”
RequiredIntelOpenCL=“21.49.21786”
VersionIntelGmmlib=“Not Installed”
VersionIntelIGCCore=“Not Installed”
VersionIntelIGCOpenCL=“Not Installed”
VersionIntelOpenCL=“Not Installed”
Platform=“Standard PC (i440FX + PIIX, 1996)”
Processor=“i5-7500T”
Distro=“Ubuntu 22.04 LTS”
Kernel=“Linux binaryplex 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux”
Memory=“7944 602 2983”

YEP… As I see here when I deconstruct the package.

My changes were NOT included.

Engineering already notified.

3 Likes

@BinaryJay or anyone –

I’ve found the issue with preinstall and corrected.

Might someone be able to confirm what I have indeed detects

  1. Force ICR on Ubuntu 22.04 for 7xxx → 9xxx
  2. Continues to correctly select ICR for all CometLake (-10xxx and above) CPUs

To test:

  1. extract tar file
  2. change to executable status
  3. run script as root
  • Observe correct inventory report
  • Verify correct detection in /tmp/plexinstaller.log

chuckpa-preinst.tar (40 KB)

This is the segment (line 616) which was missing from the main

      # Beignet? - (KabyLake, GeminiLake, and CoffeeLake)
      if [ $BeignetAvailable -eq 1 ]; then
        [ $HaveIntelCore -gt 0 ] && [ $CPUSKU -ge 7000 ] && [ $CPUSKU -lt 10000 ] && NeedBeignet=1 && NeedOpenCL=1
      else
        [ $HaveIntelCore -gt 0 ] && [ $CPUSKU -ge 7000 ] && NeedIntelCompute=1
      fi

@ChuckPa

Plex Media Server installation configuration info: Thu 30 Jun 2022 08:54:44 PM EDT

Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=“”
PlexUser=“plex”
PlexGroup=“plex”
VideoGroup=“video”
AppSuppDir=“/var/lib/plexmediaserver/Library/Application Support”
PlexTempDir=“/tmp”
LangEncoding=“en_US.UTF-8”
ExistingVersion=12702
DistroName=“ubuntu”
DistroVersion=“2204”
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
HaveIntelCeleron=0
HaveIntelPentium=0
Havei915=1
HaveNvidia=0
CPUSKU=7500
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=1
HaveBeignet=0
HaveOpenCL=1
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
RequiredIntelGmmlib=“21.3.3”
RequiredIntelIGCCore=“1.0.9441”
RequiredIntelIGCOpenCL=“1.0.9441”
RequiredIntelOpenCL=“21.49.21786”
VersionIntelGmmlib=“Not Installed”
VersionIntelIGCCore=“Not Installed”
VersionIntelIGCOpenCL=“Not Installed”
VersionIntelOpenCL=“Not Installed”
Platform=“Standard PC (i440FX + PIIX, 1996)”
Processor=“i5-7500T”
Distro=“Ubuntu 22.04 LTS”
Kernel=“Linux binaryplex 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux”
Memory=“7944 762 1940”

@BinaryJay

Thank you. Do you see it now?

  1. Need Beignet/OpenCL = 0
  2. Need Intel Compute = 1 (because it’s 22.04)

Yup! So, how long will it be until there’s a new beta that has this in it for real? :slight_smile:

:crossed_fingers:

It will be quicky-quick.

My team mate will action the next part with Engineering.
(I’m kinda in the :dog: :house: ) lol

I will post here when I know it’s been updated.

1 Like

Looks good on Comet Lake.


PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.

plexinstaller.log:

Summary
# Plex Media Server installation configuration info:  Thu Jun 30 08:39:50 PM CDT 2022
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/dev/shm"
LangEncoding="en_US.UTF-8"
ExistingVersion=12701
DistroName="ubuntu"
DistroVersion="2204"
HaveHardware=1
HaveTranscoderPref=1
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
HaveIntelCeleron=0
HaveIntelPentium=0
Havei915=1
HaveNvidia=0
CPUSKU=10500
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=1
HaveBeignet=0
HaveOpenCL=1
HaveIntelGmmlib=1
HaveIntelIGCCore=1
HaveIntelIGCOpenCL=1
HaveIntelOpenCL=1
HaveIntelCompute=1
RequiredIntelGmmlib="21.3.3"
RequiredIntelIGCCore="1.0.9441"
RequiredIntelIGCOpenCL="1.0.9441"
RequiredIntelOpenCL="21.49.21786"
VersionIntelGmmlib="21.3.3"
VersionIntelIGCCore="1.0.9441"
VersionIntelIGCOpenCL="1.0.9441"
VersionIntelOpenCL="21.49.21786"
Platform="11DGS1NS00"
Processor="i5-10500T"
Distro="Ubuntu 22.04 LTS"
Kernel="Linux osage 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
Memory="31649 963 1259"

Thank you FordGuy!

Does this affect Coffee Lake too?

PlexMediaServer install: OpenCL: Installed
PlexMediaServer install: Beignet: Not Installed
PlexMediaServer install:
PlexMediaServer install: WARNING: The Beignet-OpenCL library, required for hardware transcoding of HDR content, is missing.
PlexMediaServer install: Please install package: ‘beignet-opencl-icd’
PlexMediaServer install:
PlexMediaServer install: INFO: dpkg will install package ‘beignet-opencl-icd’ automatically
PlexMediaServer install: if available for your host upon successful installation of Plex Media Server.
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.

plexinstaller.log (1.3 KB)

@rGardel

It is an erroneous warning. You can ignore it.

1 Like

Okay finally got some time to test more.

Here is me installing the dev/beta Plex install on Ubuntu 22.04 direct on the OS and not in docker:

Unpacking plexmediaserver (1.27.0.5878-8f821a871) ...
Setting up plexmediaserver (1.27.0.5878-8f821a871) ...
PlexMediaServer install: PlexMediaServer-1.27.0.5878-8f821a871 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /tmp
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Processor:           Intel(R)
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
/var/lib/dpkg/info/plexmediaserver.postinst: 311: [: Illegal number: ()
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: INFO: Please be advised, Intel Compute Runtime packages for version 21.49.21786 have been marked with 'hold' status.
PlexMediaServer install:       This will preserve PMS operation by preventing normal 'apt' updates from overwriting them.
PlexMediaServer install:       PMS will automatically manage (un)hold status for you.   To manage manually,  see 'man apt-mark'.
PlexMediaServer install: PlexMediaServer-1.27.0.5878-8f821a871 - Installation successful.  Errors: 0, Warnings: 0

Here are the install logs:

# Plex Media Server installation configuration info:  Sat Jul  2 02:03:46 PM PDT 2022
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=0
DistroName="ubuntu"
DistroVersion="2204"
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
HaveIntelCeleron=0
HaveIntelPentium=0
Havei915=1
HaveNvidia=0
CPUSKU=()
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=0
HaveBeignet=0
HaveOpenCL=1
HaveIntelGmmlib=1
HaveIntelIGCCore=1
HaveIntelIGCOpenCL=1
HaveIntelOpenCL=1
HaveIntelCompute=1
RequiredIntelGmmlib="21.3.3"
RequiredIntelIGCCore="1.0.9441"
RequiredIntelIGCOpenCL="1.0.9441"
RequiredIntelOpenCL="21.49.21786"
VersionIntelGmmlib="21.3.3"
VersionIntelIGCCore="1.0.9441"
VersionIntelIGCOpenCL="1.0.9441"
VersionIntelOpenCL="21.49.21786"
Platform="MS-7D25"
Processor="Intel(R)"
Distro="Ubuntu 22.04 LTS"
Kernel="Linux ubuntu 5.18.6-051806-generic #202206221336 SMP PREEMPT_DYNAMIC Wed Jun 22 13:42:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
Memory="31889 4212 15731"

I pointed this new Plex install at a single 4K/HDR video, started transcoding/skipping around in the timeline and I still get the GUC error:

[791682.638803] br-cee74064e184: port 19(vethd0880aa) entered disabled state
[791996.807760] i915 0000:00:02.0: [drm] Resetting vcs1 for preemption time out
[791996.811622] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in Plex Transcoder [3459843]
[792005.101246] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in Plex Transcoder [3459843]
[792005.102271] i915 0000:00:02.0: [drm] Resetting vcs1 for stopped heartbeat on vcs1
[792005.102959] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on vcs1
[792005.205635] [drm:__uc_sanitize [i915]] *ERROR* Failed to reset GuC, ret = -110
[792005.296010] i915 0000:00:02.0: [drm] *ERROR* Failed to reset chip
[792005.296057] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_reset+0x2fc/0x340 [i915]
[792005.398945] [drm:__uc_sanitize [i915]] *ERROR* Failed to reset GuC, ret = -110
[792005.400857] i915 0000:00:02.0: [drm] Plex Transcoder[3459843 context reset due to GPU hang

I do see " /var/lib/dpkg/info/plexmediaserver.postinst: 311: [: Illegal number: () " in the install log what is that?

Also attached is my plex log if that helps.
Plex Media Server.log (618.5 KB)

Edit: and I should mention there was no Plex crash log of course, so nothing to pull there.

Thanks for any help!

@Cody_Plex

What is the CPU? CPUSKU=() is not parsed properly
I do handle the N processors in the installation preinstall script.

This:

[791996.807760] i915 0000:00:02.0: [drm] Resetting vcs1 for preemption time out
[791996.811622] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in Plex Transcoder [3459843]
[792005.101246] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in Plex Transcoder [3459843]
[792005.102271] i915 0000:00:02.0: [drm] Resetting vcs1 for stopped heartbeat on vcs1
[792005.102959] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on vcs1
[792005.205635] [drm:__uc_sanitize [i915]] *ERROR* Failed to reset GuC, ret = -110
[792005.296010] i915 0000:00:02.0: [drm] *ERROR* Failed to reset chip
[792005.296057] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_reset+0x2fc/0x340 [i915]
[792005.398945] [drm:__uc_sanitize [i915]] *ERROR* Failed to reset GuC, ret = -110
[792005.400857] i915 0000:00:02.0: [drm] Plex Transcoder[3459843 context reset due to GPU hang

is one of those CPUs for which the kernel support isn’t there. GUC helps in some of those cases but the fault still resides in the i915 driver in the kernel.