If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

X server killed every time .deb installed

omega@omegacs.netomega@omegacs.net Posts: 6Members, Plex Pass Plex Pass

At least 5 times now (every update over the last 3+ months) I've had my entire X session (Xubuntu 16.04) shot in the head during the install of the plexmediaserver .deb. This happens whether I install it via Ubuntu Software & Updates, via dpkg in a terminal running on the same X session, or via ssh from another machine entirely. The resulting loss of work state has caused me quite a bit of lost time.

Combined with all the other problems with transcoding and Chromecast streaming that have been getting worse and worse for me, I'm losing a lot of faith in Plex...

Tagged:

Answers

  • ChuckPAChuckPA Posts: 22,272Members, Plex Pass, Plex Ninja, Plex Team Member Plex Team Member

    Please qualify further 'loss of work state' and 'entire X session shot in the head'

    Please DISABLE Verbose logging until requested

    Please search before posting

    Primary support: Linux, Synology, and QNAP

    Please remember to report back. This benefits others.

    Useful links

     Installation and Basic Setup |  Media Preparation (How to name your media files)  |  Linux Permissions 

     Handling TV Specials | Handling Movie extras  |  Nas Compatibility

     Reporting Plex Server issues | Plex Media Server FAQ | Linux Tips

     

    Other useful guides: Local Subtitles | The Plex "dance" | Synology FAQ | PMS Release Announcements

    Hosts: Fedora, QNAP, Synology, most Linux distros in VM

    No technical support via PM unless offered

    Please remember to mark the appropriate answer(s) which solved your issue.

     
  • omega@omegacs.netomega@omegacs.net Posts: 6Members, Plex Pass Plex Pass

    Exactly what it sounds like. Identical effect to 'killall -9 X'.

  • ChuckPAChuckPA Posts: 22,272Members, Plex Pass, Plex Ninja, Plex Team Member Plex Team Member

    PMS runs as the unprivileged user plex on Linux.

    As such, it does not have kernel-level authority to kill your X-server.
    Being a different username, the X-server itself will ignore any signals not generated by your UID.

    PMS only outputs a HTML page which is displayed in your browser tab. It uses Javascript and HTML5 for the aesthetics.

    You have a problem with your browser or your installation. This is not a PMS fault.

    Please DISABLE Verbose logging until requested

    Please search before posting

    Primary support: Linux, Synology, and QNAP

    Please remember to report back. This benefits others.

    Useful links

     Installation and Basic Setup |  Media Preparation (How to name your media files)  |  Linux Permissions 

     Handling TV Specials | Handling Movie extras  |  Nas Compatibility

     Reporting Plex Server issues | Plex Media Server FAQ | Linux Tips

     

    Other useful guides: Local Subtitles | The Plex "dance" | Synology FAQ | PMS Release Announcements

    Hosts: Fedora, QNAP, Synology, most Linux distros in VM

    No technical support via PM unless offered

    Please remember to mark the appropriate answer(s) which solved your issue.

     
  • omega@omegacs.netomega@omegacs.net Posts: 6Members, Plex Pass Plex Pass

    Linked is a video showing beyond doubt that the Plex installer scripts cause my X session to crash.

    The laptop is ssh'ed into the desktop, running dpkg -i plexmediaserver...deb. At the instant of installation, the X server ceases to exist.

    The claim this is not possible because Plex runs as the user 'plex' is irrelevant, because the installation occurs as the root user.

  • ChuckPAChuckPA Posts: 22,272Members, Plex Pass, Plex Ninja, Plex Team Member Plex Team Member

    The commands used in the installation script are:

    1. adduser (user plex)
    2. groupadd (group plex)
    3. usermod (add the video group to user plex if updating an existing installation and not present
    4. mkdir (for /var/lib/plexmediaserver)
    5. chown (for `/var/lib/plexmediaserver)
    6. cat
    7. grep
    8. stat
    9. groups
    10. sed (if migrating an old plexmediaserver.service configuration)
    11. udevadm (telling udev to reload the rules which enable access to the GPU for hardware transcoding
    12. touch
    13. systemctl to enable and start PMS

    I ask you, where in that list do you see anything which would impact your configuration ?

    Please DISABLE Verbose logging until requested

    Please search before posting

    Primary support: Linux, Synology, and QNAP

    Please remember to report back. This benefits others.

    Useful links

     Installation and Basic Setup |  Media Preparation (How to name your media files)  |  Linux Permissions 

     Handling TV Specials | Handling Movie extras  |  Nas Compatibility

     Reporting Plex Server issues | Plex Media Server FAQ | Linux Tips

     

    Other useful guides: Local Subtitles | The Plex "dance" | Synology FAQ | PMS Release Announcements

    Hosts: Fedora, QNAP, Synology, most Linux distros in VM

    No technical support via PM unless offered

    Please remember to mark the appropriate answer(s) which solved your issue.

     
  • omega@omegacs.netomega@omegacs.net Posts: 6Members, Plex Pass Plex Pass

    I've spent the last hour digging into exactly what's going on, and the closest I've got is that udevadm trigger causes the X server to segfault inside the Radeon driver. I've filed a bug with Ubuntu on udev about the problem, and hopefully somebody will figure out what's going on.

    However, the dismissive attitude ChuckPA has displayed here has further soured me on Plex. I've had and am still having a multitude of issues all across the board, and don't see any progress on resolve any of them. I purchased the Plex Pass and a HDHomeRun in order to use the DVR functionality for the Olympics, and it's been a disaster. Trying to figure out why a given video is being forced to transcode for streaming (so I can transcode it better) is like guessing which teeth to pull.

    I'm researching alternatives to Plex at this point. There's massive potential here, but waaaay too many rough edges.

Sign In or Register to comment.