Invalid 'X-Plex-Device' header value in Plex Media Server.log

Server Version#: 1.41.3.9314
Player Version#: 4.145.0

PMS is being setup on an Armbian Odroid C2.

cat /etc/os-release

PRETTY_NAME="Armbian 24.11.3 bookworm"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian 24.11.3 bookworm"

After building a new server for a friend, I noticed a lot of invalid '-Plex-Device' header value in the Plex Media Server.log file. I first thought it was because the server was configured incorrectly, specifically a device name mismatch. However maybe this is an issue with how aarch64 systems add a hex 00 (null) to the end of “device”?

Here is what I am seeing in the Plex Media Server.log.

First lets look at the output of Plex Media Server.log using xxd:

00000050: 342d 6130 6266 6238 3337 3020 2d20 4465  4-a0bfb8370 - De
00000060: 6269 616e 2047 4e55 2f4c 696e 7578 2048  bian GNU/Linux H
00000070: 6172 646b 6572 6e65 6c20 4f44 524f 4944  ardkernel ODROID
00000080: 2d43 3200 2061 6172 6368 3634 202d 2062  -C2. aarch64 - b.

forth character of the last line is hex 00.

Next using VI there is a “^@” (hex 00) in a couple of lines. See the following:

Feb 08, 2025 16:45:02.455 [281473128534240] INFO - Plex Media Server v1.41.3.9314-a0bfb8370 - Debian GNU/Linux Hardkernel ODROID-C2^@ aarch64 - build: linux-aarch64 debian - GMT -06:00

Feb 08, 2025 16:45:03.044 [281473124315360] ERROR - [MediaProviderManager] [HttpHeader] invalid '-Plex-Device' header value (Hardkernel ODROID-C2^@)

Feb 08, 2025 16:45:04.452 [281473089233120] DEBUG - [JobRunner] Job running: /usr/lib/plexmediaserver/CrashUploader "--directory=/mnt/hdd/plex/Plex Media Server/Crash Reports/1.41.3.9314-a0bfb8370" --version=1.41.3.9314-a0bfb8370 --platform=Linux "--platformVersion=12 (bookworm)" --serverUuid=7213d1cee25d96ec20c4e99adae04b0eb0c7a49e --userId=kylef557@gmail.com --sentryUrl=https://o17675.ingest.sentry.io/api/1233455/ --sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "--vendor=Debian GNU/Linux" --model=aarch64 '--device=Hardkernel ODROID-C2^@'

I have attached Plex Media Server.log file for ODROID-C2 here:
Plex Media Server.log (133.5 KB)

I am not sure how this all gets into PMS, but I feel like this issue might originate as follows.

xxd /sys/firmware/devicetree/base/model

00000000: 4861 7264 6b65 726e 656c 204f 4452 4f49  Hardkernel ODROI
00000010: 442d 4332 00                             D-C2.

Last character is hex 00. It feels like this extra “00” value is being read in by PMS and cause device setting issues.

On an x86_64 machine the otput is different as product_name has hex 0a which is line feed, I guess.

xxd /sys/devices/virtual/dmi/id/product_name
00000000: 4f44 524f 4944 2d48 340a                 ODROID-H4.

PMS on ODROID-H4 doesn’t seem to have any issue with ‘X-Plex-Device’. Repeating the steps above and using VI to output the first line of Plex Media Server.log, notice that it doesn’t contain a “^@” character

Feb 08, 2025 17:05:08.781 [140195255012152] INFO - Plex Media Server v1.41.3.9314-a0bfb8370 - Debian GNU/Linux HARDKERNEL ODROID-H4 x86_64 - build: linux-x86_64 debian - GMT -06:00

Here is the full log for ODROID-H4:
ODROID-H4 Plex Media Server.log (120.5 KB)

What is the problem you’re trying to solve? Have you experienced any real issues?

Streaming buffering, server crashing, anything like that? Or are you just trying to rationalize error/warning messages from the logging?

@pshanew, here are my thoughts to your prior post.

1.) What is the problem?

My server is not experiencing any problems and I am just trying to rationalize error/warning messages from the logging. I am experiencing an ERROR that seems fixable.

2.) Should I be concerned with this error?

It sounds like I should just ignore this error?

3.) Can device be overridden?

Is there any way to fix / override the “device” value? Maybe something I could change in the override.conf file?

/etc/systemd/system/plexmediaserver.service.d/override.conf

I get the same problem with a new Raspberry Pi install
/etc/os-release

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

And the PMS version info

SpeedyPi
1.41.4.9463-630c9f557
Plex Media Server
Linux 12 (bookworm)

The errors in the log contain [HttpHeader] invalid 'X-Plex-Device' header value (Raspberry Pi 4 Model B Rev 1.5)

The server fails to scan a newly added library throwing these errors.

Does anyone know how X-PLEX-DEVICE is set?

I tried setting Device="Rpi4" inPreferences.xml but that didn’t work.

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