Quantcast
Channel: Linux — Plex Forums
Viewing all 7311 articles
Browse latest View live

Unclaimed after reboot ubuntu

$
0
0

I have just installed plex on a fresh install of ubuntu 16.04 lts. I plan on moving my media from another box to this one once it is working. But everytime I restart the pc plex is back to unclamied.
It remembers my login but doesn't sign in untill I manually click sign in or claim server.

Any idea how to fix this. I am also using it as a steam streaming pc.


No episodes past 46 on a series

$
0
0

Hi, for a few weeks i've noticed that for an anime series (Dragon Ball Super to be exact), that my plex media server running on a windows 8.1 system is not picking up the latest episodes.
For every season all episodes turn up great, but for season 5 it only shows up untill episode 46. It's like PMS doesn't see the new episodes. The series itself is set up exactly like it is on theTVDB. but for some reason episode 46 is the last one being detected.

On other (anime) series with a long list of episodes in a season the issue does not occur. There everything shows up correctly. The problem seems to be localized to Dragon Ball Super.

I've already attempted the so called plex dance where I remove the series from the watched folder and do the required cleanup actions but this does not seem to fix the issue. Plex has also been updated to it's latest version.

Any suggestions on how to fix this would be welcome.

Plex keeps overriding album artist

$
0
0

I'm a fan of the musical; artist Devin Townsend. He's a prolific man that has released material with a number of different distinct bands. Specifically:

  • Devin Townsend (solo work)
  • Strapping Young Lad
  • The Devin Townsend Band
  • The Devin Townsend Project

Each of these are separate collectives, and each should be it's own 'artist' with it's own discography.

However, no matter what I do, Plex always collapse all of the various groups under a singular artist as 'Devin Townsend'.

I first tried to modify the 'Artist' on one of the albums in Plex from 'Devin Townsend' to 'Strapping Young Lad'. This seemed to work, as the album disappeared from list of the 'Devin Townsend' albums. However, when I went to check, the new artist wasn't created. I looked at the Alerts logs in Plex, and it downloaded the meta data for Strapping Young Lad, updated it... and then immediately downloaded the meta data for 'Devin Townsend'. I went back to check, and the album was back under 'Devin Townsend' and the changes I had made were reversed.

At this point, I figured that this was being caused by the metadata in the files themselves, so I went and modified them all, swapping the 'Artist' and 'Album Artist' (which is what I understand Plex uses). Then I refreshed my whole music database.

Same behavior. It pretends like 3 of the 4 groups that this artist has been a member of don't exist. It downloads the metadata, but then just decides not to use it.

Can anyone who has encountered a similar behavior provide some insight into what they did to resolve it?

Thanks.
D.

[Guide] Plex Media Server with Intel NUC and Ubuntu 16.04 LTS

$
0
0

HARDWARE

  • Intel NUC (BOXNUC7I5BNK, i5-7260U 2,20 GHz, Link)
  • 2 x 8GB DDR4 RAM (CT2K8G4SFD8213, Link)
  • 250GB M.2 PCIe NVMe SSD (Samsung 960 EVO MZ-V6E250BW, Link)

This hardware setup is meant to be an allrounder. Fast enough to transcode multiple movies at the same time, almost completely silent in order to run it in the living room and power efficient in order to run it 24/7. It is able to hardware transcode three H.264 1080p movies at the same time with ~30-35% CPU load. Transcoding a single H.265 4K HDR movie has ~35-40% CPU load.
If you are looking for a single user setup this NUC might be overkill, the NUC i3 with 2 x 4GB RAM should be fine then.


Step 1: Install Ubuntu

  • Update BIOS with latest from Intel's website
  • Install Ubuntu 16.04 LTS 64bit server version
  • Use the following partition scheme (ESP size was suggested by Ubuntu, swap size is much bigger than usual because of RAM transcoding):

    #1: 536MB, ESP, bootable
    #2: 64GB, swap
    #3: 185,5GB, ext4

  • Setup user named plex


Step 2: Install Plex Media Server

  • Add plex repository as source

    • echo deb https://downloads.plex.tv/repo/deb/ public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
    • curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
  • Install Plex Media Server + dependencies

    • sudo apt-get update && sudo apt-get install avahi-daemon avahi-utils plexmediaserver
    • During installation you will be asked if you want to override the plex repository source with the one from the package. Select yes.
  • Re-enable plex repository source

    • By default the plex repository source from the package is disabled (commented out), enable it in /etc/apt/sources.list.d/plexmediaserver.list


Step 3: Setup NFS and Autofs

  • Install dependencies

    • sudo apt-get install autofs nfs-common
  • Create mount directory and configure Autofs

    • sudo mkdir /data
    • sudo nano /etc/auto.master
    • Append the following line at the end of the file:
/data      /etc/auto.data
  • Create Autofs configuration file for data directory
    • sudo cp /etc/auto.misc /etc/auto.data
    • Append all your mount points at the end of the file, for example:
movies    -fstype=nfs4    <ip-of-your-nas>:/volume1/Movies
music     -fstype=nfs4    <ip-of-your-nas>:/volume1/Music
  • Restart Autofs

    • sudo systemctl restart autofs
  • All your mount points are now available at /data/...

  • Autofs will automatically unmount all mount points if there is no access within 5 minutes and remount if you try to access the mount point. You can keep ghost references to the mount points by adding --ghost in auto.master at the end of the appended line


Step 4: Configure Plex Media Server

  • Open http://<ip-of-your-server>:32400/web in your browser and configure your server


Step 5: Setup RAM transcoding

  • Create transcoding directory

    • sudo mkdir /tmp/transcoding
  • Setup the system to mount the RAM disk on every boot

    • sudo nano /etc/fstab
    • Append the following line:
tmpfs    /tmp    tmpfs    defaults,noatime,nosuid,nodev,noexec,size=64G,mode=1777    0    0
  • Grant writing permissions for the transcoding directory

    • sudo chown -R plex:plex /tmp/transcoding
  • Use /tmp/transcoding in Plex Media Server > Settings > Server > Transcoder > Temporary directory


Additional notes / tips

  • In order to update plex media server it is enough to run the system update: sudo apt-get update && sudo apt-get upgrade
  • If you setup a DDNS service for your server consider to configure the Ubuntu firewall. In that case please check out the Plex reference for which ports you need to allow

Plex HW acceleration in LXC container - anyone with success?

$
0
0

I am currently struggling to configure my lxc container for Plex as such that hw acceleration of my xeon e3-1275 v6 is recognized and used. Has anyone succeeded?

My base system is running Proxmox V5.1 with Linux kernel 4.13.13

Moving metadata to new location finally works!

$
0
0

I was having problems with plex starting after editing /etc/default/plexmediaserver file and pointing the metadata line to a new location. I created a folder within my /home partition called plexMD and copied the folder located at /var/lib/plexmediaserver to it. Now I am not sure if I am Dyslexic, but even following some how-to's ended up in frustration. So down below is a cut and paste from a tutorial I found..just edited it some and it worked! The original link to the it is at: http://www.geeklee.co.uk/migrate-plex-media-server-metadata-ubuntu/

 

I appreciate the information presented by the author of the link and wanted to give credit where it's due...that being said doing what is listed below worked for me and hopefully will work for you, if you are having problems.BTW You can create the directory elsewhere or name it whatever you want JUST make sure to follow the general structure...especially within the /etc/default/plexmediaserver config file...slashes in certain areas and no quotes make ALL the difference...trust me.

This worked on a freshly installed and updated system running: ubuntu 14.04 LTS 64-bit and Plex Media Server for Ubuntu 64-bit ver. 0.9.12.4.1192-9a47d21

 

 

Create New Directory

  1. Go into terminal and type:
    $ sudo mkdir -p /home/yourusernamehere/plexMD/plexmediaserver

 

Migration

  1. Stop the plexmediaserver service:
    $ sudo service plexmediaserver stop

  2. Rename /var/lib/plexmediaserver to /var/lib/plexmediaserver_old
    $ sudo mv /var/lib/plexmediaserver /var/lib/plexmediaserver_old

  3. Copy (recursively) /var/lib/plexmediaserver_old to your new location (or other disk area)
    $ sudo cp -R /var/lib/plexmediaserver_old/* /home/yourusernamehere/plexMD/plexmediaserver

  4. [OPTIONAL] You can double check everything has been copied by checking the contents and size of the directory:
    $ ls -al /home/yourusernamehere/plexMD/plexmediaserver
    There should be a Library folder in the above directory)
    $ du -sh /var/lib/plexmediaserver_old && du -sh /home/yourusernamehere/plexMD/plexmediaserver/
    This will report the size of the original and new directory.

  5. Change ownership of new area (recursively) for the user plex:plex
    $ sudo chown -R plex:plex /home/yourusernamehere/plexMD

  1. Edit /etc/defaults/plexmediaserver, look for line beginning PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR.
    $ sudo gedit /etc/default/plexmediaserver

  2. Update the line to your new area BUT keeping the trailing “Library/Application\ Support” e.g.
    PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/yourusernamehere/plexMD/plexmediaserver/Library/Application\ Support

     

  3. Start the plexmediaserver service:
    $ sudo service plexmediaserver start

  4. Confirm you get a start/running and a Process ID.  You can also check the service is running:
    $ sudo service plexmediaserver status

  5. Browse the Plex Web Client and confirm everything is OK and as you left it (it should be)

Back Out

If the worst happens, back out is straight forward:

  1. Stop the plexmediaserver service:
    $ sudo service plexmediaserver stop

  2. Rename /var/lib/plexmediaserver_old to /var/lib/plexmediaserver
    $ sudo mv /var/lib/plexmediaserver_old /var/lib/plexmediaserver

  3. Edit /etc/defaults/plexmediaserver, look for line beginning PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR.
    $ sudo gedit /etc/default/plexmediaserver

  4. Comment out this line with a e.g.
    # PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/yourusernamehere/plexMD/plexmediaserver/Library/Application\ Support

  5. Start the plexmediaserver service:
    $ sudo service plexmediaserver start

  6. Confirm you get a start/running and a Process ID.  You can also check the service is running:
    $ sudo service plexmediaserver status

  7. Browse the Plex Web Client and confirm everything is back to normal.

Error which trying to build Plex media server from scratch

$
0
0

Hi,

I am trying to download and build the plex media server package from scratch on Ubuntu 16.0.4.

Following instructions in

https://github.com/plexinc/plex-media-player/blob/master/README.md

I have installed conan. When I give "pip list" I see conan included:

sdr@denali-sdr:~$ pip list | grep conan
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
conan (1.0.4)
sdr@denali-sdr:~$

I also added plex to conan:

sdr@denali-sdr:~$
sdr@denali-sdr:~$
sdr@denali-sdr:~$ conan remote add plex https://conan.plex.tv
sdr@denali-sdr:~$
sdr@denali-sdr:~$
sdr@denali-sdr:~$ cat ~/.conan/registry.txt
conan-center https://conan.bintray.com True
conan-transit https://conan-transit.bintray.com True
plex https://conan.plex.tv True

OpenSSL/1.0.2l@conan/stable conan-center
Poco/1.8.0.1@pocoproject/stable conan-center
zlib/1.2.11@conan/stable conan-centersdr@denali-sdr:~$

But when I go to test it, I get a 502 error:

sdr@denali-sdr:~$
sdr@denali-sdr:~$
sdr@denali-sdr:~$ conan search -r plex /public
ERROR:
502 Bad Gateway

502 Bad Gateway


nginx/1.10.1



. [Remote: plex]
sdr@denali-sdr:~$

And when I put this URL in my web browser I get the same 502 error message, although I can get to www.plex.tv without a problem.

Is conan.plex.tv down?

Thanks in advance.

Plex server web interface constantly hanging with tuner configured

$
0
0

I recently bought an hdhomerun for my plex server and it seemed to work great for about 24hrs. After that the server keeps crashing. If you check the service it still says its running but you cannot load the web interface.

I have removed the Tuner to see if it will re stabilize


Bind to specific interface only?

$
0
0
Is there a way to have PMS bind to only a specific interface and not 0.0.0.0? I've been digging a bit and can't find a configuration to allow this.

Trailer missing for some movies

$
0
0

Hello,
i have a question.
I have a plex pass.
I have enabled option to Find trailers and extras automatically (Plex Pass required)
For some movies a have trailer, but for others not.
For example i don't have trailer for Valérian et la Cité des mille planètes (italian Version) that is very famous, and i have trailer for movie Happy Family (italian movie) that it is not so famous.
Why?
Am i doing somthing wrong?

plex media server on android tv box?

$
0
0

Hi All,

First off apologies if this is the wrong place to post. i figured linux and android were similar enough and there wasnt an android section for the media server
I just bought an android tv box off ebay. Nice one, 2.4ghz and 2gb ram
my intention was to use it to run all my media apps, kodi, plex, netflix, etc

Now the other part of it is i need a new machine to run my plex media centre, was looking for something low power that i can leave on most of the time (if not 24/7) so that i (and my friends/family) can access my plex remotely whenever needed, i figured this box would be perfect. did a little googling and found there was a media server app for andoitd

ive got the box, im in the app store but i cant seem to find the plex media server app. im assuming its not compatible with my box for whatever reason
just curious what the minimum specs are for the android version of the server?
are there any other, similar, apps that can act as a media server and that can be picked up by plex's media player?

[Arch Linux] Photo library rescan rendering pms unusable after migrating from other computer

$
0
0

Hello!

I've recently moved my pms from a RPi 3 to a proper x86 machine via this guide:
https://support.plex.tv/articles/201370363-move-an-install-to-another-system/

Everything is fine so far, I managed to reconfigure my libraries to the new data locations as instructed. Just for the photo library, the rescan is reproducibly so slow that it apparently prevents pms to serve any other request. I can see that the server process is still alive, but the web UI or mobile app cant't get any data across.

In Plex Media Server.log, I see this pattern, consecutively for many files in the photo folders it is supposed to rescan:

[...]
Feb 01, 2018 21:28:03.079 [0x7f6ad83ff700] INFO - Part rename detected [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050190.jpg] was renamed [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050190.jpg]
Feb 01, 2018 21:28:04.116 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:06.376 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:08.628 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:10.889 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:13.149 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:15.406 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:17.655 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:19.910 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:22.170 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:24.430 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:26.692 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:28.953 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:31.216 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:33.481 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:35.745 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:38.002 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:40.264 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:42.523 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:44.784 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:47.041 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
Feb 01, 2018 21:28:48.260 [0x7f6ad83ff700] ERROR - Exception assimilating media item in 2009/10-07_11 New York City: sqlite3_statement_backend::loadOne: database is locked
Feb 01, 2018 21:28:48.260 [0x7f6ad83ff700] DEBUG -       * Scanning p1050193
Feb 01, 2018 21:28:48.261 [0x7f6ad83ff700] DEBUG - Looking for path match for [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg]
Feb 01, 2018 21:28:48.333 [0x7f6ad83ff700] DEBUG - Checking by hash to see if we can find a match with a789ef1a6aac7ef5cab881c62c8d15bfe4492ced (display offset: 0, not part -1)
Feb 01, 2018 21:28:48.333 [0x7f6ad83ff700] DEBUG - We found a hash match for [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg] which was [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050193.jpg].
Feb 01, 2018 21:28:48.334 [0x7f6ad83ff700] INFO - Part rename detected [/home/pi/hangar/photo/jpg/2009/10-07_11 New York City/p1050193.jpg] was renamed [/mnt/dungeon/photo/jpg/2009/10-07_11 New York City/p1050193.jpg]
Feb 01, 2018 21:28:49.367 [0x7f6ad83ff700] WARN - Waited one whole second for a busy database.
[...]

The scanner log shows nothing interesting (complete file - the one Elfman fail likely showed up when I deleted that artist via the Plex app), but I'll include it for the version details:

Jan 31, 2018 21:20:24.752 [0x7f87f9a64700] INFO - Plex Media Scanner v1.11.1.4730-6967ec0b1 - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 - GMT 01:00
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - Linux version: 4.14.15-1-ARCH (#1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018), language: en-AU
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - Processor Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz
Jan 31, 2018 21:20:24.755 [0x7f87f9a64700] INFO - /opt/plexmediaserver/Plex Media Scanner --scan --refresh --section 1 --directory /mnt/dungeon/music/Danny Elfman/Wanted Soundtrack
Jan 31, 2018 21:20:25.736 [0x7f8805259840] ERROR - Failed to create parent iterator to /mnt/dungeon/music/Danny Elfman: No such file or directory

I didn't complete the "clean bundles" and "optimize database" steps from the migration guide yet, fearing I might destroy something. However just rescanning all the photos would just be an annoyance, there's nothing important in Plex about them.

So, does this look worth debugging? :)

Unable to save settings during first setup

$
0
0

Hello,
I'm trying to install plexmediaserver for the first time on a debian stable box using plex 1.3.0.3059-6277334.
As this is a remote box, I'm aware of the fact, that I need to tunnel my connection to the servers webinterface until I did the first setup.
.. and that is actually where I'm failing. I managed to access the webinterface however, I'm able to fill in a name for the server, but whenever I press next it keeps telling me, that there is an error saving the settings.

I checked the logfiles in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs but couldn't find anything helpful at all.
Of course I ensured, that the user plex as r/w permissions on its home folder (/var/lib/plexmediaserver/).
Anyway, I'm really out of ideas, I hope somebody could give me a helping hand.

Oh and BTW:
I don't want to complain about plex, but who the f$#% had this idea to create directories with spaces within linux? /sigh

Regards,
Steffen

Plex Showing The Same File Twice

$
0
0

Recently my Plex Server has started to show two versions of the same TV episodes recently downloaded. When I look at the web interface and go to properties, both versions show the exact same file path and name. I recently updated to version 1.4.x and now running 1.5.3.3580. Can anyone tell me why this is happening?
I use Sonarr and nzbget. nzbget is downloading to one folder then Sonarr picks it up, renames and moves it to the folder Plex is monitoring and then sends a notification to Plex to update the library.

Can support be added for Jetson TX1/TX2

$
0
0

Since plex works on the nvidia shield, can support be added for the jetson TX1 and TX2. These are powerful devices and in my opinion far better for a plex server compared to even the shield. Since you seem to have done the hard work porting to the shield, can support be provided for the Jetsons?


Moving Viewing Statistics

$
0
0

I had to rebuild my Plex server. I shutdown the old server and crated a backup of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/ but restoring that did not work (more on that later if I can not get a new install working as I want it). I still have the backup but I recreated all my settings and started a rescan of my entire library for giggles.

Is there any way for me to restore just the users viewing history? It was keeping track of where I was for a bunch of stuff and I would rather not lose that.

Plex library won't auto update

$
0
0

Ubuntu 16.04 with latest Plex Pass PMS

Everything was working a few days ago. New media downloaded to my plex folders would trigger the "Run a partial scan when changes are detected " option and auto update my library. Since I added another zfs pool, i cannot for the life of me figure out why nothing updates automatically anymore. I do notice the timer update does work and when I manually scan the sections, it notices the new files and adds them to the library.

ZFS Pool 1 is mounted at /plex01
ZFS Pool 2 is mounted at /plex01/xxx/plex02

I have already made sure folder/file permissions are correct by running:

sudo chown -R plex:plex /plex01
sudo chmod -R 755 /plex01

The "plex" user is in the "plex" group. I have checked the permissions over and over with "ls -al". I checked to make sure all the correct things are check marked on the "Library" tab of PMS. What the heck am I doing wrong that this won't auto update when new files are added. I'm going nuts. Someone please put me out of my misery.

Problem with buffering on Raspberry Pi2

$
0
0

I have Plex web server version 1.10.1.4602 running on a Raspberry Pi2 with Raspbian Lite. The Pi is connected directly to my router by an ethernet cable and the library is on a USB hard drive attached to the Pi. For the last few weeks it has been almost impossible to stream videos on my Samsung TV due to very frequent buffering. This happens when using the Plex app on my Roku 3 and also if I use the DLNA player on my TV. Playing music is fine.

I also have Plex running on a PC which has a wireless connection to the router and the same TV & Roku can stream videos without any problem.

I would be grateful for any suggestions.

ubuntu repo broken again?

Linux FAQ

$
0
0

The Linux FAQ has largely become Linux Tips as "How To" examples.

Please bookmark this new location: https://forums.plex.tv/categories/linux-tips

Below you will find specific, surgical FAQ-style, questions and answers.

This list will continue to grow as needed.

Please let me know if something should be added
Thanks,
C

Viewing all 7311 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>