Plex Media Server on Minimal CentOS 8.0.1905

Server Version#: 1.17.0.1841 d42cfa161 x86_64
Player Version#: not used because server won’t start :weary:
Hello!
After update on CentOS 8.0.1905 Plex media server won’t start. In log:

Oct  3 15:52:46 srv systemd[1]: Starting Plex Media Server...
Oct  3 15:52:46 srv sh[6950]: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Oct  3 15:52:46 srv systemd[1]: Started Plex Media Server.
Oct  3 15:52:46 srv sh[6953]: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Oct  3 15:52:46 srv sh[6953]: terminate called after throwing an instance of 'std::runtime_error'
Oct  3 15:52:46 srv sh[6953]:  what():  locale::facet::_S_create_c_locale name not valid
Oct  3 15:52:46 srv systemd[1]: Started Process Core Dump (PID 6965/UID 0).
Oct  3 15:52:47 srv systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
Oct  3 15:52:47 srv systemd[1]: plexmediaserver.service: Failed with result 'core-dump'.
Oct  3 15:52:47 srv systemd-coredump[6966]: Process 6953 (Plex Media Serv) of user 994 dumped core.#012#012Stack trace of thread 6953:#012#0  0x00007f398e70f93f raise (libc.so.6)#012#1  0x00007f398e6f9c95 abort (libc.so.6)#012#2  0x00007f398eb30fd4 _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6)#012#3  0x00007f398eb2f80b n/a (libstdc++.so.6)#012#4  0x00007f398eb2f844 _ZSt9terminatev (libstdc++.so.6)#012#5  0x00007f398eb2fa06 __cxa_throw (libstdc++.so.6)#012#6  0x00007f398eb495d6 _ZSt21__throw_runtime_errorPKc (libstdc++.so.6)#012#7  0x00007f398eb44c34 _ZNSt6locale5facet18_S_create_c_localeERP15__locale_structPKcS2_ (libstdc++.so.6)#012#8  0x00007f398eb3a432 _ZNSt6locale5_ImplC2EPKcm (libstdc++.so.6)#012#9  0x00007f398eb3ada4 _ZNSt6localeC1EPKc (libstdc++.so.6)#012#10 0x00007f39905835b7 _ZN5boost10filesystem4path5imbueERKSt6locale (libboost_filesystem.so)#012#11 0x000000000123f8ce n/a (Plex Media Server)#012#12 0x000000000126a38d n/a (Plex Media Server)#012#13 0x00007f398e6fb79e __libc_start_main (libc.so.6)#012#14 0x00000000004be606 n/a (Plex Media Server)
Oct  3 15:52:52 srv systemd[1]: plexmediaserver.service: Service RestartSec=5s expired, scheduling restart.
Oct  3 15:52:52 srv systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Oct  3 15:52:52 srv systemd[1]: Stopped Plex Media Server.
Oct  3 15:52:52 srv systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Oct  3 15:52:52 srv systemd[1]: plexmediaserver.service: Failed with result 'core-dump'.
Oct  3 15:52:52 srv systemd[1]: Failed to start Plex Media Server.

On CentOS 8 default python 3.6. Any ideas how to fix and run server?
Thank you!

MODERATOR EDIT: ``` formatting applied for legibility*

Your locale isn’t set.

So, Plex Media Server only work with en_US.UTF-8? Why on CentOS 7 works on any locale?
My locale settings:

# locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

What does localectl status show?

Ref: https://www.tecmint.com/set-system-locales-in-linux/

# localectl status
   System Locale: LANG=ru_RU.UTF-8
       VC Keymap: us
      X11 Layout: us,ru
     X11 Variant: ,
     X11 Options: grp:alt_shift_toggle

So it will only work with en_US.UTF-8?

Let me setup Centos 8 and check it out.
You are the first person to report Centos 8.
I’ve not yet had opportunity to even test it.

You don’t need to configure anything especially. SeLinux enabled. I’ll wait you report. Thank you!

I installed the standard GNOME workstation, no other options or adjustments
Before installing Plex, I made certain to install all updates and reboot.

Taking this one step further and looking at the Centos distribution itself.

It seems the locale name you’ve defined (which is common sense) doesn’t exist.

What is defined in locale -a is:
Screenshot%20from%202019-10-03%2020-52-12

This does look to be like a distribution problem with the character map file missing (required for the locale)

PMS does fail when the locale is invalid (which is what you’re seeing)

You might want to report this upstream as soon as possible.

Minimal installation.

  1. Install OS
  2. def update
  3. reboot
  4. vi /etc/yum.repos.d/plex.repo
[PlexRepo]
name=PlexRepo
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1

:wq
5. dnf install plexmediaserver

Installation without GNOME workstation - server view.

Locale on installation - Language - Русский

# locale -a
C
C.utf8
POSIX
ru_RU
ru_RU.koi8r
ru_RU.utf8
ru_UA
ru_UA.utf8

Maybe I’l need to add us_US.UTF8?

# export LC_ALL="en_US.UTF-8"
-bash: предупреждение: setlocale: LC_ALL: не удаётся изменить язык (en_US.UTF-8): Нет такого файла или каталога
-bash: предупреждение: setlocale: LC_ALL: не удаётся изменить язык (en_US.UTF-8)

Need to install language en:

[root@srv ~]# dnf install glibc-langpack-en
[root@srv ~]# dnf reinstall glibc-common

After than:

[root@srv ~]# locale
LANG=ru_RU.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

And Plex Media Server work fine:

[root@srv ~]# systemctl restart plexmediaserver
[root@srv ~]# systemctl status plexmediaserver 
● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-04 08:22:15 +03; 5s ago
  Process: 23626 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
 Main PID: 23629 (Plex Media Serv)
    Tasks: 23 (limit: 26213)
   Memory: 75.6M
   CGroup: /system.slice/plexmediaserver.service
           ├─23629 /usr/lib/plexmediaserver/Plex Media Server
           └─23653 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-d42cfa161/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.17.0.1841-d42cfa161 /usr/lib/plexme>

Oct 04 08:22:15 srv.my systemd[1]: Starting Plex Media Server...
Oct 04 08:22:15 srv.my systemd[1]: Started Plex Media Server.

Thanks for you time and help!

Thank you.

I will send this off to folks to look at.

Hello Chuck,

I m currently migrating a part of my VM under centos 8 and i m planning to do the same for Plex, is this workarround can be used and officialy supported or would you recommand to wait for a new Plex release?

Is there any plan to officially fix this?

Thx

I did have a chance to review this.

The decision is that this is a Centos issue.

  • Plex requires basic locale support.
  • Centos ‘minimal’ package installation option does include enough packages to meet the minimum requirement for locale to work as it should.

Consider what is needed to resolve the problem:

  • glibc English language pack must be installed
  • After adding basic “English” support to glibc, glibc must be reconfigured (reinstalled).

No other distribution has this problem. Ubuntu “Minimal” includes glibc English support.
This is distro packaging problem where the distro went one package too lean.
They can add the extra 200 KB package space. This isn’t a “micro system”.

I equate this to Ubuntu/Debian which has no NFS support by default. My position is : “A Linux distribution without NFS support by default is like a Windows installation without SMB/CIFS”.

Summary:

  • Submit this to Centos to be fixed.
  • Not a Plex issue.

Thx Chuck :slight_smile:

Just a small feedback, i have migrated my centos 7 installation to centos 8 with the workaround.

Everything goes smooth, i was able to restore the Library directory without any issue.
I will monitor server behavior during a couple of days but so far it’s ok.

Thx and1by for this workaround and Thx Chuck for confirming.

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