PMS on Ubuntu 20.04 won't start apparently after locale change

Server Version#:1.19.5.3112-b23ab3896
Ubuntu#:20.04
PMS was running ok, I think it stopped starting after locale change: “localectl set-locale LC_TIME=en_GB.UTF-8”. I rolled back the change, the locale looks ok I think as below. But PMS still won’t start.

root@NUC:~# systemctl status plexmediaserver.service
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Tue 2020-08-11 04:56:32 JST; 4min 45s ago
Process: 1004 ExecStartPre=/bin/sh -c /usr/bin/test -d “{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "{PLEX_MEDIA_>
Process: 1010 ExecStart=/bin/sh -c export PLEX_MEDIA_SERVER_INFO_VENDOR=”$(grep ^NAME= /etc/os-release | awk -F= “{print $2}” | tr >
Main PID: 1010 (code=dumped, signal=ABRT)

Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: Failed to start Plex Media Server.
root@NUC:~#

root@NUC:~# localectl
System Locale: LANG=en_US.UTF-8
LC_CTYPE=en_US
VC Keymap: n/a
X11 Layout: us
X11 Model: pc105
root@NUC:~#

root@NUC:~# locale
LANG=en_US.UTF-8
LANGUAGE=
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
root@NUC:~#

root@NUC:~# locale -a
C
C.UTF-8
en_US.utf8
POSIX
root@NUC:~#

root@NUC:~# cat /etc/default/locale
LANG=en_US.UTF-8
LC_CTYPE=en_US
LC_ALL=en_US.UTF-8
root@NUC:~#

Thank you for that but that’s not enough.

May I have the log files please?

Please manually create a tar.gz of the entire “Logs” directory and attach it with your next post.

If PMS is complaining about the locale, it will be in the logs.

In most cases where locale is the root cause, regenerating the locale files resolves it.

logs.tar.gz (4.4 MB)

Many thanks for your reply. Please see attached.

Thanks for the logs.

Does this coincide with when it last ran?

Aug 10, 2020 21:50:45.692 [0x7f83a7fff700] DEBUG - Shutting down with signal 15 (Terminated)
Aug 10, 2020 21:50:45.692 [0x7f83a7fff700] DEBUG - Ordered to stop server.
Aug 10, 2020 21:50:45.692 [0x7f83a7fff700] WARN - Timed out waiting for server to finish.
Aug 10, 2020 21:50:45.693 [0x7f83ad821180] DEBUG - Stopping server...
Aug 10, 2020 21:50:45.693 [0x7f83ad821180] DEBUG - HttpServer: Stopping server.
Aug 10, 2020 21:50:45.693 [0x7f8327fff700] DEBUG - TranscodeJobManager: [Running] onServerShutdown
Aug 10, 2020 21:50:45.693 [0x7f8327fff700] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
Aug 10, 2020 21:50:45.693 [0x7f8327fff700] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - Server stopped.
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - NetworkService: Stopping advertisement.
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - Killing plug-ins.
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - [com.plexapp.system] Killing.
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - [com.plexapp.plugins.WebTools] Killing.
Aug 10, 2020 21:50:45.694 [0x7f83ad821180] DEBUG - Waiting for Plex Tuner Service to exit.
Aug 10, 2020 21:50:45.722 [0x7f83a7fff700] WARN - JobManager: Could not find job for handle 1023
Aug 10, 2020 21:50:45.722 [0x7f83a7fff700] WARN - JobManager: Could not find job for handle 832
Aug 10, 2020 21:50:45.740 [0x7f83a7fff700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Tuner Service' exit code for process 990 is 0 (success)
Aug 10, 2020 21:50:45.740 [0x7f832ffff700] DEBUG - Plex Tuner Service exited.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Database: Shutting down.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 0.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 1.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 2.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 3.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 4.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 5.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 6.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 7.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 8.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 9.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 10.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 11.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 12.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 13.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 14.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 15.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 16.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 17.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 18.
Aug 10, 2020 21:50:45.741 [0x7f83ad821180] DEBUG - Captured session 19.
Aug 10, 2020 21:50:45.755 [0x7f83ad821180] DEBUG - Database: Shutting down.
Aug 10, 2020 21:50:45.755 [0x7f83ad821180] DEBUG - Captured session 0.
Aug 10, 2020 21:50:45.755 [0x7f83ad821180] DEBUG - Captured session 1.

What else, other than locale changed?
Did you start to specify an override or alter the service file?

If I’m not mistaken, it stopped running a bit earlier. I only changed the locale, nothing else.

I do see this in the oldest log available (Did you purge the previous logs?)

Aug 09, 2020 21:21:36.713 [0x7f75667fc700] DEBUG - Plugin: not setting user token for plugin
Aug 09, 2020 21:21:36.714 [0x7f75667fc700] DEBUG - Spawned plug-in com.plexapp.system with PID 4126
Aug 09, 2020 21:21:36.715 [0x7f75667fc700] DEBUG - [com.plexapp.system] Sending command: GET /:/prefixes
Aug 09, 2020 21:21:37.042 [0x7f756d639700] DEBUG - HTTP 401 response from GET https://plex.tv/media/providers?X-Plex-Token=
Aug 09, 2020 21:21:38.555 [0x7f75677fe700] DEBUG - Job running: '/usr/lib/plexmediaserver/CrashUploader' '--directory=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.19.5.3112-b23ab3896' '--version=1.19.5.3112-b23ab3896' '--platform=Linux' '--platformVersion=20.04 LTS (Focal Fossa)' '--serverUuid=2b04d445d3c74348b1fa061034982859218f6720' '--userId=NOUSERID' '--sentryUrl=https://sentry.io/api/1233455/minidump' '--sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' '--vendor=Ubuntu' '--model=x86_64' '--device=PC'
Aug 09, 2020 21:21:38.556 [0x7f75677fe700] DEBUG - Jobs: Starting child process with pid 4139
Aug 09, 2020 21:21:38.563 [0x7f756de3a700] DEBUG - Jobs: '/usr/lib/plexmediaserver/CrashUploader' exit code for process 4139 is 0 (success)
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - Reading 486 bytes in the body, code is 200
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - [com.plexapp.system] Plug-in running on port 39373.
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG -  * Plug-in handles prefix: /system
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG -  * Plug-in handles prefix: /player
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - Read configuration for [com.plexapp.system], had 2 prefixes
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - Done with 1 synchronous plug-in starts, starting the rest in parallel.
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - PluginRepository::setStartState: 2, startingPlugins
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - Updating the list of agents known by the system.
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/agents
Aug 09, 2020 21:21:39.670 [0x7f756ee79180] DEBUG - Image transcode cache directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/PhotoTranscoder"
Aug 09, 2020 21:21:39.670 [0x7f75667fc700] DEBUG - HTTP requesting GET http://127.0.0.1:39373/system/agents
Aug 09, 2020 21:21:39.670 [0x7f756ee79180] DEBUG - Transcoder: Cleaning old transcode directories.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - MyPlex: stop public ip check and mapping - current mapped state: 'Unknown'.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - NetworkInterface: Starting watch thread.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - Network change.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - NetworkInterface: Notified of network changed (force=0)
Aug 09, 2020 21:21:39.671 [0x7f7564ff9700] DEBUG - NetworkInterface: Watching for changes on the interfaces.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - Detected primary interface: 10.0.1.2
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - Network interfaces:
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG -  * 1 lo (127.0.0.1) (loopback: 1)
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG -  * 2 ens160 (10.0.1.2) (loopback: 0)
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG -  * 1 lo (::1) (loopback: 1)
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG -  * 2 ens160 (fe80::20c:29ff:fe6a:e68%ens160) (loopback: 0)
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - Creating NetworkServices singleton.
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - NetworkServices: Initializing...
Aug 09, 2020 21:21:39.671 [0x7f756ee79180] DEBUG - NetworkService: Creating new service.

This is where the Plex Media Server.3.log would have crashed (the “.2” shows us it’s uploading the crash report.

I need to step away for a moment.

Here is a quick reference with How-To for setting the locale as you wish.

I routinely do a sudo locale-gen after setting the locale to ensure all files are in place.

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

Sorry, yes, I’ve checked my yesterday Internet browsing history for the error and it seems it coincides with the log stamps.

Yesterday, I reinstalled PMS, then copied the backup of PMS data over. Everything looked fine, all libraries reinstated. And then I think locale change broke something.

Back .

Locale is a system-level configuration.

Since you had been coping things around, and the crash may not be at all related to the locale, let’s verify permissions.

sudo bash
cd /var/lib/plexmediaserver
chown -R plex:plex .
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

This will reset everything in /var/lib/plexmediaserver regardless what it was.
Depending on size of the libraries, it may take some time to execute.
Please be patient with it.

After it completes:

sudo systemctl reset-failed
sudo systemctl start plexmediaserver

If plex fails to start

journalctl -xe | grep -i plex
1 Like

Thank you, it didn’t take that long. Still not starting, the journal does show locale messages. “locale::facet::_S_create_c_locale name not valid”

root@NUC:/var/lib/plexmediaserver# journalctl -xe | grep -i plex
Aug 11 04:56:08 NUC.ioan.loc systemd-udevd[493]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 11 04:56:08 NUC.ioan.loc systemd-udevd[487]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 11 04:56:08 NUC.ioan.loc systemd-udevd[482]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 11 04:56:14 NUC.ioan.loc kernel: e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounting /PLEX1…
– Subject: A start job for unit PLEX1.mount has begun execution
– A start job for unit PLEX1.mount has begun execution.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounting /PLEX2…
– Subject: A start job for unit PLEX2.mount has begun execution
– A start job for unit PLEX2.mount has begun execution.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounting /PLEX3…
– Subject: A start job for unit PLEX3.mount has begun execution
– A start job for unit PLEX3.mount has begun execution.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounting /PLEX4…
– Subject: A start job for unit PLEX4.mount has begun execution
– A start job for unit PLEX4.mount has begun execution.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounted /PLEX3.
– Subject: A start job for unit PLEX3.mount has finished successfully
– A start job for unit PLEX3.mount has finished successfully.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounted /PLEX1.
– Subject: A start job for unit PLEX1.mount has finished successfully
– A start job for unit PLEX1.mount has finished successfully.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounted /PLEX4.
– Subject: A start job for unit PLEX4.mount has finished successfully
– A start job for unit PLEX4.mount has finished successfully.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: Mounted /PLEX2.
– Subject: A start job for unit PLEX2.mount has finished successfully
– A start job for unit PLEX2.mount has finished successfully.
Aug 11 04:56:16 NUC.ioan.loc Plex Media Server[743]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 04:56:16 NUC.ioan.loc Plex Media Server[743]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=killed, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 04:56:16 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘signal’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘signal’.
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 1.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 04:56:22 NUC.ioan.loc Plex Media Server[974]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 04:56:22 NUC.ioan.loc Plex Media Server[974]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 04:56:22 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 2.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 04:56:27 NUC.ioan.loc Plex Media Server[1010]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 04:56:27 NUC.ioan.loc Plex Media Server[1010]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 04:56:27 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 04:56:32 NUC.ioan.loc systemd[1]: Failed to start Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has failed
– A start job for unit plexmediaserver.service has finished with a failure.
Aug 11 06:50:38 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 06:50:38 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 06:50:38 NUC.ioan.loc Plex Media Server[569707]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 06:50:38 NUC.ioan.loc Plex Media Server[569707]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 06:50:38 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 06:50:38 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 06:50:43 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 1.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 06:50:43 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 06:50:43 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 06:50:43 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 06:50:43 NUC.ioan.loc Plex Media Server[569727]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 06:50:43 NUC.ioan.loc Plex Media Server[569727]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 06:50:44 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 06:50:44 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 2.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: Starting Plex Media Server…
– Subject: A start job for unit plexmediaserver.service has begun execution
– A start job for unit plexmediaserver.service has begun execution.
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: Started Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has finished successfully
– A start job for unit plexmediaserver.service has finished successfully.
Aug 11 06:50:49 NUC.ioan.loc Plex Media Server[569758]: terminate called after throwing an instance of ‘std::runtime_error’
Aug 11 06:50:49 NUC.ioan.loc Plex Media Server[569758]: what(): locale::facet::_S_create_c_locale name not valid
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: plexmediaserver.service: Main process exited, code=dumped, status=6/ABRT
– An ExecStart= process belonging to unit plexmediaserver.service has exited.
Aug 11 06:50:49 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 06:50:54 NUC.ioan.loc systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
– Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
Aug 11 06:50:54 NUC.ioan.loc systemd[1]: Stopped Plex Media Server.
– Subject: A stop job for unit plexmediaserver.service has finished
– A stop job for unit plexmediaserver.service has finished.
Aug 11 06:50:54 NUC.ioan.loc systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 11 06:50:54 NUC.ioan.loc systemd[1]: plexmediaserver.service: Failed with result ‘core-dump’.
– The unit plexmediaserver.service has entered the ‘failed’ state with result ‘core-dump’.
Aug 11 06:50:54 NUC.ioan.loc systemd[1]: Failed to start Plex Media Server.
– Subject: A start job for unit plexmediaserver.service has failed
– A start job for unit plexmediaserver.service has finished with a failure.
root@NUC:/var/lib/plexmediaserver#

That’s what I expected.

You changed the locale but didn’t complete the task.
PMS tried to use the new language but the supporting files needed weren’t there.

The “c” locale info was missing.

 “locale::facet::_S_create_c_locale name not valid”
  1. edit and set the default locale (make certain to set case correctly)
[chuck@lizum ~/Downloads.62]$ cat /etc/default/locale
#  File generated by update-locale
LANG="en_GB.UTF-8"
[chuck@lizum ~/Downloads.63]$ 
  1. Rerun sudo locacle-gen to update everything needed (support files)

  2. Check the locale regenerated as you wish with locale
    (mine is still set for en_US.UTF-8)

[chuck@lizum ~/Downloads.64]$ locale
LANG=en_US.UTF-8
LANGUAGE=
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=
[chuck@lizum ~/Downloads.65]$ 

Many thanks, after running the commands, my plex is back now.
Really appreciated,
ioan

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