Plex fresh install doesnt work

help me what is wrong with it ?

journalctl -u plexmediaserver
– Logs begin at Sat 2019-01-12 12:53:20 EET, end at Sun 2019-05-19 03:10:31 EEST. –
May 19 03:01:47 eugene-lenovo systemd[1]: Starting Plex Media Server…
May 19 03:01:47 eugene-lenovo systemd[1]: Started Plex Media Server.
May 19 03:01:47 eugene-lenovo sh[6368]: terminate called after throwing an instance of ‘std::runtime_error’
May 19 03:01:47 eugene-lenovo sh[6368]: what(): locale::facet::_S_create_c_locale name not valid
May 19 03:01:49 eugene-lenovo sh[6368]: Aborted (core dumped)
May 19 03:01:49 eugene-lenovo systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=134/n/a
May 19 03:01:49 eugene-lenovo systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
May 19 03:01:54 eugene-lenovo systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
May 19 03:01:54 eugene-lenovo systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 1.
May 19 03:01:54 eugene-lenovo systemd[1]: Stopped Plex Media Server.
May 19 03:01:54 eugene-lenovo systemd[1]: Starting Plex Media Server…
May 19 03:01:54 eugene-lenovo systemd[1]: Started Plex Media Server.
May 19 03:01:54 eugene-lenovo sh[6519]: terminate called after throwing an instance of ‘std::runtime_error’
May 19 03:01:54 eugene-lenovo sh[6519]: what(): locale::facet::_S_create_c_locale name not valid
May 19 03:01:54 eugene-lenovo sh[6519]: Aborted (core dumped)
May 19 03:01:54 eugene-lenovo systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=134/n/a
May 19 03:01:54 eugene-lenovo systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
May 19 03:01:59 eugene-lenovo systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
May 19 03:01:59 eugene-lenovo systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 2.
May 19 03:01:59 eugene-lenovo systemd[1]: Stopped Plex Media Server.
May 19 03:01:59 eugene-lenovo systemd[1]: Starting Plex Media Server…
May 19 03:01:59 eugene-lenovo systemd[1]: Started Plex Media Server.
May 19 03:01:59 eugene-lenovo sh[6567]: terminate called after throwing an instance of ‘std::runtime_error’
May 19 03:01:59 eugene-lenovo sh[6567]: what(): locale::facet::_S_create_c_locale name not valid
May 19 03:01:59 eugene-lenovo sh[6567]: Aborted (core dumped)
May 19 03:01:59 eugene-lenovo systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=134/n/a
May 19 03:01:59 eugene-lenovo systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
May 19 03:02:04 eugene-lenovo systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.

Look at the bottom of what you posted.

May 19 03:01:59 eugene-lenovo sh[6567]: terminate called after throwing an instance of ‘std::runtime_error’
May 19 03:01:59 eugene-lenovo sh[6567]: what(): locale::facet::_S_create_c_locale name not valid

Your system’s locale is not set.

I will assume you are using Ubuntu / Debian.

https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu

ty for the fast answer. i have installed plex server through the docker container and it works good :slight_smile:

That’s because docker brings its own locale.

If you fix the locale, you won’t be confined to docker.

The key command you need, after setting the enviornment variables is:

sudo locale-gen

yes i know a bit about docker :slight_smile:

btw i think that my locale is set

cat /etc/default/locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_NUMERIC=uk_UA.UTF-8
LC_TIME=en_US.UTF-8
LC_MONETARY=uk_UA.UTF-8
LC_PAPER=uk_UA.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=uk_UA.UTF-8

$ locale -a
C
C.UTF-8
POSIX
en_US.utf8
ru_RU.utf8

Which is the default?

$ cat /etc/default/locale 
LANG=en_US.UTF-8

yep en_US is default

Somehow your locale files themselves must be missing.

Would you regenerate them?

sudo locale-gen en_US.UTF-8
sudo update-locale en_US.UTF-8

ty for your help but im ok with the docker way :slight_smile:

btw i noticed that plex do not want work with the simlinks to the media library ? (at least through docker-compose). it was endless scanning until i set it up with the direct path to the media library

That’s correct. It want’s real directories or mount points (bind or otherwise).
It does this because of the iNotify service not working through symlinks.
It also can’t travel backwards through a symlink as it goes up and down the directory tree

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