Linux Server wont upgrade v 1.19

Thanks. The logs are clean but, as expected, end as of April 21

I did a bit of hackery yesterday with another user which worked out well in solving a problem.

I’d like to use that technique here to diagnose your system.

  1. Copy /usr/lib/plexmediaserver/lib/plexmediaserver.init to /tmp
  2. Open in an editor.
  3. Scroll down to the launch line (su -blah blah-exec)
  4. At the end of the line, find and remove the redirection to /dev/null as well as the background launch.
  5. Save
  6. As root, execute it with /tmp/plexmediaserver.init start

It will launch in foreground mode. Anything coming from PMS’ stdour or stderr will be printed in your terminal window.

Can you be more detailed about step 4 ?

change
su -m $PLEX_MEDIA_SERVER_USER -s /bin/sh -c "exec ${PLEX_MEDIA_SERVER_HOME}/Plex\ Media\ Server &" >/dev/null 2>&1

to

su -m $PLEX_MEDIA_SERVER_USER -s /bin/sh -c "exec ${PLEX_MEDIA_SERVER_HOME}/Plex\ Media\ Server"

is that right ? and how do I shutdown the background launch?

That’s right but someone is seriously wrong.

That’s not the code which should be there.

Please give me a few minutes to resolve this.

Thanks.

You’re ok to proceed.

What’s happened on my end, which surprised me, is I wasn’t seeing other changes which had been approved two weeks ago and should already be in the code.

I’ve messaged the team, pointing out the discrepancy , and asking them to help me resolve where it went. It’s probably a simple error to correct. (but that’s why i test a lot before releasing into production)

Per your questions:

  1. Any normal linux will show you the jobs the shell has in the background
  2. Just kill %x (where x is the job number) will stop that background task.
  3. This is the same as Ctrl-C when in foreground

@ChuckPa

so am I best starting with a fresh install and copy Plex across?

@ChuckPa
Is that what you need ?

root@aria2-server:/tmp# /tmp/plexmediaserver.init start
Starting Plex Media Server. 
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)

I think I might have intermixed two different issues by accident.
If you’d both please confirm for me?

@wopag

Your issue is isolated to preinstallation ?

@kingzleshe_sina_com

You can install but cannot run ?

@ChuckPa
can not run indeed

@kingzleshe_sina_com

Your system isn’t configured properly.
This isn’t a plex problem but easily fixed.

https://www.ubuntugeek.com/how-to-select-and-generate-locales-on-ubuntu.html

Once the localization files have been defined, PMS will be able to start

@ChuckPa
wow It worked
If I may ask how did you know that is a localization files issue?

_S_create_c_locale name not valid “locale” is your machine’s localization.

@wopag

I use 19.10 here, a fresh installation, without issue.
If you upgraded from 15 -> 19 this is why.

Can you start over with a fresh installation of 19 (no more upstart) ?

I have to agree with @ChuckPa on this one, the general rule of thumb with Debian (and Ubuntu) upgrades is, your allowed one dist-upgrade and then its better to lay down a fresh OS for your next upgrade.

I’ll take the opportunity to move servers, update from an i5 to an i7.

fresh headless install of Linux too. consider my thread closed

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