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

Plex server on a different subnet

$
0
0

Hi everyone,

I have quite an issue here I wasn't able to resolve with these existing threads :
https://forums.plex.tv/discussion/75810/tv-and-plex-server-on-different-subnets
https://ubuntuforums.org/showthread.php?t=2213943
https://www.techpowerup.com/forums/threads/2-routers-and-plex-media-server.209620/
https://forums.plex.tv/discussion/comment/421460#Comment_421460

The situation is fairly the same as in the other threads : I have a home server that is on a separated subnet from all others devices. I put it there for security reasons, as it is accessible from the Internet (DMZ). And i can't access it from the main subnet.

The setup is the following : My main modem/router has the IP 192.168.1.1 with a mask of 255.255.255.0 and any device is automatically assigned an address 192.168.1.X when connected to the network (Wifi or ethernet). I have another router that has a static IP which is 192.168.1.200. This router creates a network, with no WLAN, with the IP 192.168.0.X/255.255.255.248 and has, in this subnet, an IP of 192.168.0.1. The home server is assigned a static IP of 192.168.0.2.

The main router is configured to route any incoming connection from the public IP to 192.168.1.200, which then are filtered by the second router with only some specific ports redirected to the server (eg SSH). One of them is port 32400, the one that Plex uses to allow access from the Internet.

From there, I can access without any problem Plex on my server from the Internet, but the problem comes when I am at home and try to use Plex on another device. The server is not found when I am in the subnet 192.168.1.X. I can only access it if I connect my computer to the network 192.168.0.X. But as I said, I want only the server to be in this subnet for security reasons. How can I connect to my Plex server being in the main network (192.168.1.X) ?

I've been able to connect to it using a VPN, but it's not a solution i'm satisfied with. I don't exactly know how the Plex server works to notify it's presence in the subnet, I suppose it's with the broadcast address or another IP that achieves the same goal.

I've thought of redirecting this "discovery" address to the broadcast address of the main network, but I'm pretty sure the routers wouldn't allow me to do that. Other solutions would consist in using a Raspberry Pi as a router to route the connections or modifying the firmware of the router to allow those kind of routing, but it's to long, I believe there is a simpler way.

Thank you for reading.

Note : Just to be clear, the problem is not accessing the server from the main network (using SSH, FTP, etc), but watching movies from the Plex App (https://app.plex.tv/web/app) : the server is not found.


Linux Server loads and displays .AVI files, But can't stream them.

$
0
0

So my system is an Ubuntu 14.04 machine with decent specs, and I am able to load both my Movies folder and my TV shows folder, and mind you this all worked perfectly on my old (windows system) And it displays them and shows there meta data, and is able to find them on my disk, but neither of my roku 2's can play anything that is an AVI file, and I have a mix of mp4's mkv's and AVI's.
I have the newest version of Plex media server, where as I did not on my old system. Would plex really take away the capability to play my files?....just doesn't make sense, but I've scoured the forums and I have found people talk about similar problems but I have yet to find a solution.
Can anyone help?

Browsing Dashboard or any Item in a library takes a long time, CPU at 100%

$
0
0

I recently got a new linux server running ubuntu. Its got 64Gigs of ram, Raid1 SSD array for the OS and Plex files.
It's got 2xIntel Xeon E5640's So plenty of cpu power, ram and disk access. Library Media files on different disks.

Whenever I browse the Home/Dashboard from the web browser, it takes several seconds to sit there and load, like 10 seconds, the whole time Plex is using 100% CPU or more. Its the same thing when I click on a movie or tv show in my library, It used to be snappy on my old windows based plex server. I'm using the latest version 1.0.2.
I'm not sure what is going on here.
I've attached the relevant portion of the log. Based on the log there is like a 6 second gap between items, and that is where the slowness occurs. This is when I browse the Dashboard.

PMS on CENTOS 7 Service starts but no Streaming

$
0
0

PMS on CENTOS 7 Service starts but no Streaming for anything post 0.9.16.6.1993

I understand there is a change in the codec directory on some linux distro's, is that valid for CentOS as well?

As soon as I pull it back to 0.9.16.6.1993 everything just works again, take is past this version, apple tv 4 does not work, Android does not work, IOS does not work, Safari Web does not work

Has anyone else seen this behaviour?

From Journaled OSX to Raspbian Jessie

$
0
0

Hi everyone. So I've been a happy Plex user for many years, Chromecast, PlexConnect and my browser. I run it from my Macbook and I have all my data on 4TB WD drive, and I'm sick of always needing to plug it in to watch something. But now I have a Raspberry Pi and I followed this link about installing PMS to Raspbian. And I'm a little stuck at two steps... I'm a total Linux n00b, so talk slow please

Firstly, can I move the metadata cache from the my OSX install and copy it to the Pi to use, so that I dont have to re-index the entire library?
Secondly, the drive all my content is on is a HFS drive. Not being sure if HFS drives can be read manually, I have tried to install stuff and I can read the disk. When I run dmesg, at the bottom it says "write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only." Do I need anything more than Write access? Can I auto mount this so that copied library data from above points to the right place?

Or is all this going too far and I should just reformat the drive and put up with re-indexing all the metadata? I've been able to pick up the server address on my macbook, of course the libraries at empty...

Plex not playing AC3 encoded movie files

$
0
0

Plex doesn't seem to play my movie files that have AC3 encoding on the audio.
If I reencode the same video (same h264 settings in handbrake) with AAC, then the video plays.
The error I get is: There is a problem playing this item.
When looking at the info screen for these files, it only displays the file name and the file size.
On the screen just before you play the movie, it has Audio: none.
Same files will play fine in VLC, Media Player and any other video player I have it plays fine.
When running the plex web app, the iOS app, attempting to run through ChromeCast or the Amazon Firestick, all have the same message.
An examply is Star Trek Into Darkness, though this is occuring for me on multiple files.

The Media Server log file displays
DEBUG - HTTP success requesting GET http://127.0.0.1:32400/library/metadata/590?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx&checkFiles=1
DEBUG - MDE: analyzing media item 608
ERROR - MDE: video has no video stream
ERROR - Cannot make decision because either the file is unplayable or bad data provided.
DEBUG - Completed: [192.168.5.39:50409] 400 GET /video/:/transcode/universal/start?path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F590&mediaIndex=0&partIndex=0&protocol=http&offset=0&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=150&session=jj28t0qh2a2avecwmkrb8d7vi&subtitles=burn&copyts=1&Accept-Language=en (8 live) TLS 588ms 257 bytes

The Analize log file displays:
DEBUG - Analyzing media parts for item 590 (Star Trek Into Darkness): 608
DEBUG - [ID 608] Media part analysis: /media/server/Other Movies/Star Trek Into Darkness (2013).m4v
DEBUG - [MI] Opening input file: /media/server/Other Movies/Star Trek Into Darkness (2013).m4v
DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto'
DEBUG - [FFMPEG] - Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
DEBUG - [FFMPEG] - ISO: File Type Major Brand: mp42
DEBUG - [FFMPEG] - ISO: File Type Major Brand: mp42
ERROR - [FFMPEG] - moov atom not found
DEBUG - [FFMPEG] - Statistics: 65536 bytes read, 3 seeks
ERROR - Exception analyzing media file '/media/server/Other Movies/Star Trek Into Darkness (2013).m4v' (Could not parse /media/server/Other Movies/Star Trek Into Darkness (2013).m4v (error=-1094995529): Invalid data found when processing input)

Media server details are:
Version 1.0.0.2261 (have also tried on the latest version with the same error)
OS: Ubuntu Linux 16.04
RAM: 8GB
CPU: Intel Core i5 6400

Note sure what other info may be needed, please let me know.

Failure to run PMS as another user (Ubuntu 14.04.4 LTS)

$
0
0

Hi guys,

Following the directions in https://forums.plex.tv/discussion/216845 I stopped the PMS service and set a different user in the following locations :

  • /etc/default/plexmediaserver
    export PLEX_MEDIA_SERVER_USER=user

  • /etc/systemd/system/plexmediaserver.service
    User=user
    Group=user

Then I rebooted the server as mentioned—app still won't load. What am I missing?

Not marking episode watched with latest Plex Server

$
0
0

I'm running latest Plex Server (1.0.0.2261-a17e99e release) on Ubuntu 14.04. After watching an episode, the item doesn't get marked "watched". I reverted back to the 0.9.16.6.1993-5089475 version and now episodes get marked "watched" properly. Has any one else experienced this?

The client I'm using are Amazon FireTV, Rasplex and Plex on Samsung Smart TV

root@server:~# dpkg -l | awk '/plexmed/ {print $2,$3}'
plexmediaserver 0.9.16.6.1993-5089475

root@server:~# ls /raid10/misc_files/ | grep plexmedia
plexmediaserver_0.9.15.3.1674-f46e7e6_amd64.deb
plexmediaserver_0.9.15.6.1714-7be11e1_amd64.deb
plexmediaserver_0.9.16.2.1827-df572f6_amd64.deb
plexmediaserver_0.9.16.3.1840-cece46d_amd64.deb
plexmediaserver_0.9.16.4.1911-ee6e505_amd64.deb
plexmediaserver_0.9.16.6.1993-5089475_amd64.deb
plexmediaserver_1.0.0.2261-a17e99e_amd64.deb


A problem with Plex and Linux Mint 18

$
0
0

I've just upgraded from LM17 to LM18. When I try and launch Plex, I get an error message

"This version requires PMS 09.16.0 - please go to the link below to open an available server"

There are no links.

I have installed the latest Plex - 1.0.2.2413

I'm stuck (due to ignorance). Can anyone help - simply?

Thanks

plex web insists I have to upgrade, but running current version already

$
0
0

hey folks
My long-running server stopped responding to a few clients (web worked, iOS clients weren't connecting).
So I took the opportunity to do some maintenance. One of the first things I did was upgrade from 0.9.15.2.1663-7efd046 to 1.0.2.2413-7caf41d.

From there, everything broke. The web interface says:

Update your Plex Media Server
This version of the web app requires Plex Media Server 0.9.16.0 or higher. Use one of the links below to open an available server directly.

Here's what I've tried so far:

  1. Uninstall 1.0.2
  2. Reinstall 0.9.15
  3. Uninstall (dpkg --remove ) 0.9
  4. install 1.0.2
  5. do-release-upgrade (currently on 16.04)
  6. dpkg - i 1.0.2
  7. dpkg --purge 1.0.2
  8. multiple iterations of trying 0.9 and 1.0.2
  9. removed the plex user from the system, purged, resinstalled 1.0.2

At this point, it should basically be a new setup, right? It still insists have I have to upgrade?

I'd be grateful for some troubleshooting tips or ideas. Thanks everyone!

I have PMS running on Raspberry PI 2!

$
0
0

There is a Synology release which works on rPI2 without a chroot.  However it's seems to becapable of playing media that the drobo/chroot version was unable to.  If you want to try it:

See the guides here: https://forums.plex.tv/topic/145717-i-have-pms-running-on-raspberry-pi-2/?p=887965

and here: http://www.htpcguides.com/install-plex-media-server-on-raspberry-pi-2/

 

There's also a conversion guide for moving from the chroot version to the native version here:

https://forums.plex.tv/topic/145717-i-have-pms-running-on-raspberry-pi-2/page-17#entry886641

 

UPDATED Image using the ARMv7 install: http://www.mediafire.com/download/dred4bd078wwe9n/MiniBianPlexArmv7.zip


 

And it was surprisingly easy!

 

I followed the bitbucket guide for installing the drobo PMS into a debootstrap chroot on raspbian.

As described here: 

https://bitbucket.org/inkubux/cubox-i/wiki/Plex%20Wheezy

 

As with the Mycloud install, I had to change LC_ALL=C in the chroot plexmediaserver script and install libexpat1 (apt-get install libexpat1) in the chroot.

 

I'm using a WD MyBook to store my media. So once I had PMS running I created media folders in the chroot and then mounted the mybook folders in the main host. So my main host /etc/fstab looks like this:

 

# Chroot bind mounts
/home            /chroots/wheezy-armel/home            none bind 0 0
/mnt             /chroots/wheezy-armel/mnt             none bind 0 0
/tmp             /chroots/wheezy-armel/tmp             none bind 0 0
/proc            /chroots/wheezy-armel/proc            proc defaults 0 0
/dev             /chroots/wheezy-armel/dev             none bind 0 0
/dev/pts         /chroots/wheezy-armel/dev/pts          none bind 0 0
/mnt/USB_HD/Video/Films /chroots/wheezy-armel/media/films       none bind 0 0
/mnt/USB_HD/Video/3D_Film       /chroots/wheezy-armel/media/3dfilms     none bin d 0 0
/mnt/USB_HD/Video/TVShows       /chroots/wheezy-armel/media/tv  none bind 0 0

Then I just add the chroot version (e.g. /media/tv) from the Plex GUI.

 
Last thing to do was to add samba so I can add/remove files from a windows host.
 

 

Plex Sync Error - "Waiting to be uploaded"

$
0
0

Hi all,

 

Every time I try to upload a file from my server, I get a "Waiting to be uploaded" message on it that stays there constantly, has anybody else come across this, or knows how to fix it?

 

I've forwarded the port on my server, and I'm not sure what else to do?

 

Thanks,

 

Gary

Can't start plexmediaserver after 'yum localupdate plex.rpm'

$
0
0

Hi, after I today upgrade to 1.0.1 on my CentOS machine, I can no longer start plexmediaserver. I get this:


[root@plexserver plex]# service plexmediaserver start
Starting plexmediaserver (via systemctl): Job for plexmediaserver.service failed because the control process exited with error code. See "systemctl status plexmediaserver.service" and "journalctl -xe" for details.
[MISSLYCKADES]


MISSLYCKADES is swedish and mean 'FAILED' :)

I try the one they suggest above:


[root@plexserver plex]# systemctl status plexmediaserver.service
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─overide.conf
Active: failed (Result: start-limit) since fre 2016-07-15 15:36:10 CEST; 2min 44s ago
Process: 16059 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=1/FAILURE)

jul 15 15:36:05 plexserver systemd[1]: Failed to start Plex Media Server for Linux.
jul 15 15:36:05 plexserver systemd[1]: Unit plexmediaserver.service entered failed state.
jul 15 15:36:05 plexserver systemd[1]: plexmediaserver.service failed.
jul 15 15:36:10 plexserver systemd[1]: plexmediaserver.service holdoff time over, scheduling restart.
jul 15 15:36:10 plexserver systemd[1]: start request repeated too quickly for plexmediaserver.service
jul 15 15:36:10 plexserver systemd[1]: Failed to start Plex Media Server for Linux.
jul 15 15:36:10 plexserver systemd[1]: Unit plexmediaserver.service entered failed state.
jul 15 15:36:10 plexserver systemd[1]: plexmediaserver.service failed.
[root@plexserver plex]#


Journalctl -xe gives this:

-- Unit plexmediaserver.service has begun starting up.
jul 15 15:43:25 plexserver sh[16257]: /bin/mkdir: cannot create directory ‘’: No such file or directory
jul 15 15:43:25 plexserver systemd[1]: plexmediaserver.service: control process exited, code=exited status=1
jul 15 15:43:25 plexserver systemd[1]: Failed to start Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has failed
-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit plexmediaserver.service has failed.

-- The result is failed.
jul 15 15:43:25 plexserver systemd[1]: Unit plexmediaserver.service entered failed state.
jul 15 15:43:25 plexserver systemd[1]: plexmediaserver.service failed.
jul 15 15:43:31 plexserver systemd[1]: plexmediaserver.service holdoff time over, scheduling restart.
jul 15 15:43:31 plexserver systemd[1]: start request repeated too quickly for plexmediaserver.service
jul 15 15:43:31 plexserver systemd[1]: Failed to start Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has failed
-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit plexmediaserver.service has failed.

-- The result is failed.
jul 15 15:43:31 plexserver systemd[1]: Unit plexmediaserver.service entered failed state.
jul 15 15:43:31 plexserver systemd[1]: plexmediaserver.service failed.
jul 15 15:44:01 plexserver systemd[1]: Started Session 237 of user root.
-- Subject: Unit session-237.scope has finished start-up
-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit session-237.scope has finished starting up.

-- The start-up result is done.
jul 15 15:44:01 plexserver systemd[1]: Starting Session 237 of user root.
-- Subject: Unit session-237.scope has begun start-up
-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit session-237.scope has begun starting up.
jul 15 15:44:01 plexserver CROND[16266]: (root) CMD (/bin/bash -c "/usr/local/lib/PlexConnect/PlexConnect_daemon.bash status >/dev/null || /usr/local/lib/PlexConnect/PlexConnect_daemon.bash start >/dev/null")
jul 15 15:44:17 plexserver su[16274]: (to root) plex on pts/0
jul 15 15:44:17 plexserver su[16274]: pam_unix(su:session): session opened for user root by plex(uid=1001)


Anyone have any idea what can had happened?

Upgrade PMS from 0.9.7 to 0.9.8 (latest release) for CentOS 6

$
0
0

Hi Everyone,

 

Heard about the new update for the 0.9.8 released a few days back. I also got errors on video that I need to be on atlease 0.9.8 to run a few videos. Can some one provide on how to update plex media server on CentOS6. I read one place that I can backup the configuratons and then just install the latest rpm. But I dont know exactly the location for the RPM.

 

Thanks for the help!

PMS repeatedly crashing

$
0
0

I have been experiencing some issues the past few days (posters not displaying, new shows taking multiple scans to find, etc). Today I started to look into this a little bit, did a manual scan of my Libraries to start, followed by a Database Optimize. The optimization failed.

After some Googling on the subject, I decided to validate my database with the Sqlite3 tool. It reported ok, but Optimization was still failing. Most of what I read indicated this was possible corruption, so I attempted to rollback to a previous database that was in the directory from a Scheduled Task. Seemed simple enough, though I did seem to need to chown the copied file to plex:plex which wasn't in the document.

This, roughly, gets me to where I am now. PMS will not run, crash dumps are being created about every 10-30 seconds.

I've tried removing my Preferences.xml file (I've strangely had this help a lot in with prior issues). I've tried reinstalling the 1.0.2 version. I've check for Logs, but the Plex Media Server.log file is empty, its not getting anything written to it.

Any help would be greatly appreciated. I really don't want to lose all of my users history by reloading entirely.


NVENC Support in Transcoder

$
0
0

Yesterday got FFMPEG with NVENC working on one of my Linux machines, and it strikes me as potentially extremely useful to other people who use a relatively small server for PMS, for example a HP G7 Microserver. It's CPU is rather underpowered, but if you add in a passively cooled Nvidia Kepler card (e.g. GT630), it's H.264 encoding engine can be used (and it doesn't make the shader processors busy, either, it's independent asynchronous piece of hardware). In my tests it can transcode 10Mbit H.264 1080p input file to 2Mbit H.264 1080p at 60fps (i.e. twice as fast as realtime) and DVD MPEG2 content at about 125fps, which means it would be useful even for a multi-user server.

 

I understand that the PMS Transcoder is based on FFMPEG, so FFMPEG being GPL, where can I get the source code and build scripts for it?

 

Obviously, modifying PMST isn't sufficient, it would need to be wrapped different to replace "-c:v libx264" with "-c:v libnvenc" in the invocation, preferably with a check beforehand (or at startup time) to verify that NVENC is available. Is the source code for the component that invokes PMST availale?

How did I lose the ability to play files?

$
0
0

Been running steadilly for three years. Main drive on server died. Reinstalled ubuntu 16.04 on server, downloaded and installed plex media server. Keep getting told to claim server on my nteork. Try to connect via roku, keep getting told videos are unavailable on 90% of the videos that were working 3 days ago! Can't play in media manager. All videos work in VLC

Getting "500 - Internal Server Error" while accessing plex from outside of LAN

$
0
0

I'm getting an "500 - Internal Server Error" when I'm accessing my Plex Media Server Web Interface from outside of my LAN.
I am running a small fileserver (Ubuntu 14.04.4 LTS) on which my Plex Server is installed.
I have a simple pache Proxy in front, so that I dont have to access it through the default Port (inside my LAN this works without any problems)

If i open the Plex default port (32400) in my Firewall and try to access it via the port and the "/web/index.html" part, it is working from outside my LAN too. But it would be much cooler if it would work without this.

The "Plex Media Server.log" shows following, when accessing from outside, over the apache:
Jul 25, 2016 20:20:32.504 [0x7f6e6cfff700] DEBUG - Request: [::1:46334] GET /web/index.html (5 live) GZIP
Jul 25, 2016 20:20:32.504 [0x7f6e6cfff700] ERROR - Exception handled: std::bad_cast
Jul 25, 2016 20:20:32.504 [0x7f6e753ff700] DEBUG - Completed: [::1:46334] 500 GET /web/index.html (5 live) GZIP 0ms 368 bytes

The "Server-Mapping" at the remote-access settings show me my custom port for accessing the plex though.

I hope you can understand what I try to say, and maybe even help me :)
Thanks in advance

Problems with running plex on Raspbian

$
0
0

Hi,
i have my plex server running on my Raspberry pi.
I can watch all my movies, etc
Only problem i currently have is that i cannot make optimized versions or sync my photos from my phone, tablet, etc
now, the folder where everything is in can only be edited by owner, can't change that for some reason because it says operation not permitted.
Anyone knows a solution to this?

Uninstall PMS Without Removing Config Files

$
0
0

The Question:
Can I run dpkg -r plexmediaserver and retain everything in my /var/lib/plexmediaserver/ directory (and subdirectories)? Or do I have to go about uninstalling PMS a different way if I want to retain my config?

Background:
This might seem a bit weird or obvious, but I wanted to check before potentially nuking my server.

I recently moved my PMS from a regular dpkg install on my server (Ubuntu 14.04 LTS) to its own docker container. It's working great; I was able to mount my config from my old server in the docker and bring it up smoothly. All my libraries, settings, indexes, shared users, watch states, etc are all there; it was like nothing changed, which is exactly what I was hoping for. Now all I need to do is uninstall PMS from my host machine where it was running.

My concern is that, by uninstalling PMS, it might remove a portion of - or all of - my old config files that my new setup is currently using. The Plex page for uninstallation clarifies that the process listed there will "completely remove your Plex Media Server, including all Library metadata, viewstates, etc." However, it also has you remove /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/. If I just run dpkg -r plexmediaserver and refrain from remove anything under /var/lib/plexmediaserver/ will my PMS data be safe?

Viewing all 7311 articles
Browse latest View live


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