Quantcast
Viewing all 7311 articles
Browse latest View live

Media Unavailable - can't figure out why

I've noticed some Media Unavailable errors over the last couple weeks. It happens on remote and local clients:

Remote:
Nexus player
Roku stick

Local:
FireTV Stick

I have NOT experienced these errors on any clients that can Direct Play media, be it Remote or Local. As far as I can tell, this has only happening on remote+local clients that are transcoding.

This just happened and I did capture a log: https://dl.dropboxusercontent.com/u/298235/pms-debug.txt

The media unavailable error happened within the 21:03:00 timestamp. I pored through it but I couldn't really figure out where the media unavailable error was coming.

The Server is running on Ubuntu. The media is mounted via NFS. Both server and NFS mount have been up/connected for 78 days.

Can anyone help me out?


Headless Server - Edit preferences.xml to bypass "1st Boot" local restructions

Guys,

 

Just a heads up as I've seen a couple threads on here for the same issue.

 

I just installed PMS on a headless server running Ubuntu 12.04 (on a VPS) with no issues UNTIL I attempt to "manage" the server from web browser not on the local network.  I spend the bulk of the day trying to get a SSH tunnel to the server to fake it as a local browser.  I never could get it to take.

 

I finally decided there had to be a better way so I fired up a Ubuntu VM and installed the PMS there.  That VM has a GUI and a web browser so I was able to "configure" that instance of PMS.  Then snooping around I found the file with the freshest time stamp.

 

Location is:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server

 

File is:

Preferences.xml

 

Comparing the files from the headless server and the VM than HAD been configured I arrived at the following edit.

 

Before edit the file on the headless server contained (some info has been overwritten with xxx's but you get the idea:

 <Preferences MachineIdentifier="xxxxxxxxx-xxxxxx-49b1-9fd0-512b5436be8e" ProcessedMachineIdentifier="xxxxxxxxxxxxxxxxxxxx97f354ff6836279ec72ed40ec"/>

 

After edit it was:

 <Preferences MachineIdentifier="xxxxxxxxx-xxxxxx-49b1-9fd0-512b5436be8e" ProcessedMachineIdentifier="xxxxxxxxxxxxxxxxxxxx97f354ff6836279ec72ed40ecAcceptedEULA="1" FirstRun="0" collectUsageData="0" PlexOnlineMail="user id" PlexOnlineToken="xxxxxxxxxxxxxxxxxxxx" PublishServerOnPlexOnlineKey="1" PlexOnlineUsername="user id" ManualPortMappingMode="1" ApertureSharingEnabled="0" iPhotoSharingEnabled="0" iTunesSharingEnabled="0" DlnaEnabled="0"/>

 

A quick reboot of the server and a remote browser works a treat! I was able to change several settings and to begin adding folders.

 

I don't know how to tell you to get the PlexOnlineToken without utilizing the virtual machine technique, but it may not be required.  I'm guessing the AcceptedEULA="1" FirstRun="0" parts may be enough to get past the "local only" restrictions.  Someone should try it and post the results.

 

NOTE there are NO CARRIAGE returns at all in the xml file it is all one long line.

 

Cheers,

Cardoc

Music artists background images not working on newly added albums

Hi,

wasn't able to find a solution to this problem in this forum... and I'm not sure if this is a linux related problem or a scanner related problem:

When I add new albums with new artists to my music library (Plex premium option) there are no backgrounds of artists available. Even though it seems to match the songs, the album and the artist there is no background image shown in Plex Web, Rasplex. When I navigate to the artist overview there is a square image of the artist that must have been fetched from an external server. And when I click on the edit button there isn't any background shown from which I can choose. I checked an album I added last week and here there is the artist in the background of the album and when I edit the artist itself I can choose from a lot of background images. I then cleared the caches and added an album from One Direction, just because I'm sure that there must be images available for that group... but still the same.

I checked the XML transfered from server to my browser and saw that on albums/artists where a background image is available the XML looks like this

<MediaContainer...>
<Directory ... art="/library/metadata/12345/art/1234567890" ...>...</Directory>
</MediaContainer>

Whereas on the newer albums/artists the "art" property is missing.

Then I checked the com.plexapp.plugins.library.db and in the metadata_items table on artists with a background image there was a value like "metadata://art/com.plexapp.agents.plexmusic_a1b2c3e4..." in the user_art_url field, but in the entry for any newer artist like One Direction this field was empty.

Today I installed the new Plex server version (Plex pass) but this didn't solve the problem either.

I'm not sure what I can do to make this work again.

can't ranscode this file on any client(apparently because of the french subtitle)

can't transcode this file(i don't know if you need any other information?):

Metadata:
encoder : libebml v1.3.1 + libmatroska v1.4.2
creation_time : 2015-12-15 22:03:49
Duration: 00:43:49.15, start: 0.000000, bitrate: 2643 kb/s
Stream #0:0(eng), 4, 1/1000: Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS : 2257654
BPS-eng : 2257654
DURATION : 00:43:49.127000000
DURATION-eng : 00:43:49.127000000
NUMBER_OF_FRAMES: 63036
NUMBER_OF_FRAMES-eng: 63036
NUMBER_OF_BYTES : 741957420
NUMBER_OF_BYTES-eng: 741957420
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-12-15 22:03:49
_STATISTICS_WRITING_DATE_UTC-eng: 2015-12-15 22:03:49
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1, 8, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
Metadata:
BPS : 384000
BPS-eng : 384000
DURATION : 00:43:49.152000000
DURATION-eng : 00:43:49.152000000
NUMBER_OF_FRAMES: 82161
NUMBER_OF_FRAMES-eng: 82161
NUMBER_OF_BYTES : 126199296
NUMBER_OF_BYTES-eng: 126199296
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-12-15 22:03:49
_STATISTICS_WRITING_DATE_UTC-eng: 2015-12-15 22:03:49
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Dec 17, 2015 14:26:33 [0x7f23a77fe700] ERROR - [Transcoder] /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-xyabxt2ntxogvi-fdd7f4fa-e640-4a4d-b03d-ed3c02500865/temp-0.srt: Invalid data found when processing input

is there any way to had a condition in the programming to verify if the input srt are transcodable and to not add it if not or at least put an error message?

What permissions for the plex user to delete content via web interface and apps?

I'm unable to delete content through the plex web interface and through the app, I get a error 400 in the app, and just unable to complete in the web interface.

So I'm guessing the permissions aren read only for the plex user, as my media is managed under a different user.

What permissions do I need to grant to the plex user for these files to be able to delete them through the interface? A 775?

Sorry, this may be a bit of a linux noob question too, if I apply this recursively to my media folders, new media added after the chmod is applied will have the old permissions too won't they?

Copying an installation/database

I've got a new PMS Server machine, installed everything, and am about to put Plex on there.

I've had the old installation for a long time, I was wondering if it was possible to copy over my viewing history etc?

Raspberry Pi Server

I've been looking at Raspberry Pi recently, and I was wondering if it would be possible to install Plex Media Server on it. I've seen info about a client, but not a server.

I understand the Pi doesn't have enough power to convert videos. All of my videos stream directly, so I don't need any processing power.

I read that the Pi supports Debian. Would Plex work with that, or does the ARM architecture cause problems? Is there any plan to make an Ubuntu Snappy package?

I don't have a Pi yet, so these questions are all theoretical. I'd just like to know before I decide on getting one.

Alex 0.9.14.2, updated to anything greater breaks apache reverse proxy.

My current reverse proxy entry is as below:

<Location /plex>
       ProxyPass http://localhost:32400/web/
       ProxyPassReverse http://localhost:32400/web/
       AllowOverride AuthConfig
       AuthType Basic
       AuthName "Do what I do. Hold on tight and pretend it's a plan!"
       AuthUserFile /usr/share/apache2/passwd/passwordsbasic
       Require valid-user
       Order allow,deny
       Allow from 192.168.1.0/24
       Satisfy any
    </Location>

When hit the url for plex when on version 0.9.14.2 it works just fine but as soon as i update it a later version reverse proxy fails with a 404. Any thoughts?


Strange connection and metadata problem with Plex since static IP was set

I am running a Plex docker on a unRAID server. I am also using SABnzbd, Couchpotato, and Sickbeard. Plex was doing everything perfectly up until a couple of days ago. Now any new movie tv show that I download, Plex will not download the metadata for it.

The adding to the library, naming and playing of the movie works just fine. It is only the downloading of the metadata that is not working. it takes a screenshot at some point during the movie and uses that as the poster and background instead of downloading the metadata. So far the only way I have been able to get the proper posters is to add them manually.

The metadata download for TV shows also is not working. Any new TV show gets added to the Plex library fine and it plays and sorts it fine, but it won't name the episodes correctly on top of not downloading the metadata. The file is named correctly but instead of Plex putting the title of the show in it just leaves it with the title of 'Episode 3' (or whichever number episode it is).

All of my previously downloaded and added movies and tv shows have retained their metadata, none of that was lost or anything, new movies are the only ones causing the problem.

This started 2 days ago and I've been reading tons of forums and tried many things and I just can't figure this one out. I've tried restarting plex, I have uninstalled it and reinstalled it, I've checked to make sure it is up to date (I am on version 2.4.0), I have forced a refresh, I have tried refreshing the individual movies that aren't receiving the metadata instead of the entire library, and I have tried doing a manual match (that is the only option i get, unmatch is not an option) but no matter how I do a match search it always tells me 'No search results found' (I am using Freebase and the Movie Database as agents).

I did some maintenance work on my server a couple days ago. My SABnzbd wasn't downloading any nzb's that was added to it and Couchpotato wouldn't search for anything. I uninstalled and reinstalled both of those dockers and that fixed the issues I was having with those. Then I gave my server a static IP because it was still using DHCP and then I rebooted it. I don't know how that could have an affect on Plex, but its been since then that I have been having the problems with the metadata.

I also noticed that I cannot sign into my Plex account. If I go to https://plex.tv/ I can sign in just fine. So I know what my credentials are, but every time I try to sign in on the Plex web app, it comes back with an error "There was a problem with signing into Plex."

Could have setting a static IP messed Plex up this much? All of my other dockers are working flawlessly, but since doing that maintenance work the other day now my Plex doesn't want to do everything correctly.

Is anyone able to help me with this?

Thousands of "TLS connection: Too many open files errors and eventual server crash

The past few updates to plex have seem to make it unstable. Lately I've been having to restart my plex service every day or so because it crashes and disappears from my apps. It doesn't matter if there is a stream going on or what, just becomes unavailable until I restart the service. Sometimes I have to restart the whole Ubuntu server.

Does anyone have any ideas what could be causing this and how to fix it?

Ubuntu LTS 14.04.02 GNU/Linux 3.13.0-32-generic x86_64
Plex Server: Version 0.9.12.6
Media Storage:
Build FreeNAS-9.2.1.5-RELEASE-x64 (80c1d35)
Platform AMD Athlon(tm) II X2 250 Processor
Memory 16362MB

Willing to provide any other logs that might help...

OMG subtitles are SOOOoo unreliable

Plex developers really need to prioritize getting the subtitles working reliably.

They seem so random.

Sometime they work sometime they don't. There is no real rhyme nor reason,.

It doesn't seem to matter if the file is formatted in DOS (CR/LF) format, or Linux (CR). Some DOS versions work others don't. Same for Linux.

Comparing one working and one not working .srt file shows no real differences, an index number, a time, some text.

Restarting PMS, no good. Restarting Roku. Nah.

I have the latest version of PMS.

I guess it is just something we have to live with.

Too bad.

Mark.

Localhost Connection Refused

I'm starting from a clean install of Ubuntu, and put plex on there. It worked initially and I added my libraries back on. I then followed the support instructions to move all the metadata:
https://support.plex.tv/hc/en-us/articles/201370363-Move-an-Install-to-Another-System

And now all I get is connection refused when I browse to http://localhost:32400/manage or http://localhost:32400/web/index.html#!/dashboard

I've tried running apt-get remove purge plexmediaserver and then re-installing, but that's not helped. I've also tried multiple service & server restarts.

Movies in multiple librarys

Question for all you Plex Heads...

 

I want to add links to my movies in several different librarys... Is this possible?

 

Example:

 

I have all the Harry Potter films in my Movie Library...

 

I want to create a library called kids and add these films in here as well but I do not want to waste the space of duplicating the files...

 

Can I create a link to the file and host it in multiple sections?

 

best regards

Transcoder error on certain files

I'm having issues Transcoding a few episodes.  Direct Play works fine.  I'm on PMS 0.9.8.8 on Ubuntu 12.04, and when I try to stream/transcode these particular episodes, the Plex log spits out:

Oct 23, 2013 18:18:42 [0x7fecbdffb700] ERROR - [Transcoder] Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec cop
Oct 23, 2013 18:18:42 [0x7fecbf7fe700] ERROR - [Transcoder] : Invalid argument
Oct 23, 2013 18:18:42 [0x7fecbe7fc700] ERROR - [Transcoder] [mpegts @ 0x21ba500] first pts value must be set
Oct 23, 2013 18:18:42 [0x7fece0ff9700] ERROR - [Transcoder] av_interleaved_write_frame(): Invalid data found when processing input

I've attached the mediainfo output of one of these files.

[Ubuntu - 64 bit - 14.04] Plex 0.9.14.5 install goes wrong.

All,

I'm on Ubuntu 14.04 for a while now, I've always updated my PMS automatically. Most of the time I choose the public version, sometimes I choose the PlexPass version. I have no problems doing so. This time however I'm trying to install the plexpass 0.9.14.5 version and it's not working at all.

I download the package as I always do, after download I use the dpkg -i .deb command and it stops the media server and installs the 0.9.14.5 version.

dpkg -i plexmediaserver_0.9.14.5.1595-5c6e524_amd64.deb
(Reading database ... 569420 files and directories currently installed.)
Preparing to unpack plexmediaserver_0.9.14.5.1595-5c6e524_amd64.deb ...
plexmediaserver stop/waiting
Unpacking plexmediaserver (0.9.14.5.1595-5c6e524) over (0.9.12.19.1537-f38ac80) ...
Setting up plexmediaserver (0.9.14.5.1595-5c6e524) ...
plexmediaserver start/running, process 28462
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for ureadahead (0.100.0-16) ...

After this I go to http://local:32400/web/index.html and nothing happens.
I can see in Webmin there are 2 processes running:

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

I've googled a bit around and found I can start the server with this command

/usr/sbin/start_pms &

However when I go to http://local:32400/web/index.html I get an entire new plex install? All my libraries and settings are gone... It still won't auto start the server either.

So I downloaded the 0.9.12.19 version again, did the dpkg -i thingie and everything works fine again... But I fear for future installs it won't work either...

So, How can I correctly install the 0.9.14 version?? Is there a tutorial somewhere? I've googled my ass of but I can't seem to find a descent "how to". Bare in mind I'm a Linux/Ubuntu n00b, I've learned my skills from google...

Thanks in advance!!


Editing "Various Artists" For Music Collection

UGH!!!!

I have all these MP3s listing the artist as "Various Artist." Whenever I go to edit the individual track to the correct artist, save changes it goes back into the library as "Various Artist."

What the heck is going on? I'm running PLEX on WD Mycloud Mirror.

[Ubuntu 14.04] System randomly loses posters/artwork for movies, possibly due to a custom scanner?

Ubuntu 14.04, download the plexmediaserver_0.9.12.19.1537-f38ac80_amd64 db file to install it.

I previously wrote my own roku channel and had my movies named specifically for that, in a format like 123.movie_title.mp4, where 123 was the ID from themoviedb.org and I used their API to pull all the meta data.

Recently, I moved over to using plex as it seemed easier than adjusting my channel further. However, I didn't want to have to rename all my files. Thus, I created a custom scanner that sets the guid to the movie based on the ID in the title, basically like so:

# Scans through files, and add to the media list.
def Scan(path, files, mediaList, subdirs, language=None, root=None, **kwargs):
    VideoFiles.Scan(path, files, mediaList, subdirs, root)

    for i in files:
        file = os.path.splitext(os.path.basename(i))[0]
        guid = "com.plexapp.agents.themoviedb://%s?lang=en" % int(file.split('.')[0])

        (name, year) = VideoFiles.CleanName(file)
        movie = Media.Movie(name, year)
        movie.guid = guid
        movie.source = VideoFiles.RetrieveSource(file)
        movie.parts.append(i)
        mediaList.append(movie)
    Stack.Scan(path, files, mediaList, subdirs)

This worked well, as when I set a new library to use this scanner, it reads the guid and loads all the metadata from themoviedb.org. However, I noticed that days later... without rebooting or the server restarting or anything, movies just start randomly losing their poster and use a frame from the movie. All the other metadata seems to be there still, it's just the artwork that vanishes. Doing a reload fixes it again, but not permanently.

I'm not sure where to start debugging this, and it's getting very irritating. Any pointers?

Looking at the logs, I don't see much that looks relevant, stuff likethis shows up though:

com.plexapp.agents.themoviedb.log.5:2015-12-11 21:38:03,139 (7fb3c67fc700) :  ERROR (model:205) - Cannot read model from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/Movies/3/0003e0716643d8767d86320e9a341f15edbc6b6.bundle/Contents/com.plexapp.agents.themoviedb

installed ubuntu deb package, but not able to config (you do not have permission to access server)

Hi,

I just installed on a Ubuntu server (in the Google cloud), so obviously I don't have local network access. When I go to the web app, it tells me I don't have permission.

Is there something I can configure on the server options to allow me to configure remotely?

thanks
Ricardo

Plex Server not indexing some files in folder

I added some avi files as TV shows to my Plex server with have the following file structure:

Family Guy
Family Guy - Season 1
Family Guy [1.01] Death Has a Shadow.avi
Family Guy [1.02] I Never Met the Dead Man.avi
...
Family Guy - Season 2
Family Guy [2.01] Peter, Peter, Caviar Eater.avi
Family Guy [2.02] Holy Crap.avi
...
...

Plex as indexed some episodes in some seasons, but it's missing a lot of episodes and in some cases entire seasons. The permissions for every file are 644 so they can be read by anyone, and the directory permissions are all 755 so can be executed by anyone.

I've read through a lot of forum posts with similar issues which were resolved by changing the permissions, or an issue with the way the files are named, but those solutions didn't help me because the file permissions and naming convention are the same for files Plex has indexed as for those it hasn't.

I can play all of the files it hasn't indexed using VLC on Ubuntu Desktop 14.04 and Windows 10, and Windows Media Player so I think that rules out anything to do with the files being corrupted.

Does anyone know what else could be causing Plex no to index those files and what I can do to fix it?****

Unable to allocate a changestamp from the server

I've been having issues getting Plex to find new TV episodes for the past couple of days. I dug into the logs and found this message right around each of the new episodes that I expect to see:

Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Path matched, we're reusing media item 4314
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG -       * Scanning The Last Ship Season 2 Episode 6
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Looking for path match for [/mnt/video/tv/The Last Ship/The.Last.Ship.S02E06.HDTV-DIMENSION.mkv]
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Skipping hash check, no size match for 1197430970 bytes.
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - No match for hash.
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Checking descendants of The Last Ship
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG -  -> FOUND metadata item (show)
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG -  -> We found a local media item with rooted metadata in The Last Ship
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Found existing show 1409
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - Downloading document http://127.0.0.1:32400/library/changestamp
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG - HTTP requesting to: http://127.0.0.1:32400/library/changestamp
Jul 26, 2015 14:54:27 [0x7f30eab1e800] ERROR - downloadContainer: expected MediaContainer element, found html
Jul 26, 2015 14:54:27 [0x7f30eab1e800] ERROR - Exception inside transaction (inside=1) (../Library/Episode.cpp:202): Unable to allocate a changestamp from the server
Jul 26, 2015 14:54:27 [0x7f30eab1e800] ERROR - Exception inside transaction (inside=1) (../Library/MetadataItem.cpp:2394): Unable to allocate a changestamp from the server
Jul 26, 2015 14:54:27 [0x7f30eab1e800] ERROR - Exception assimilating media item in The Last Ship: Unable to allocate a changestamp from the server
Jul 26, 2015 14:54:27 [0x7f30eab1e800] DEBUG -     * Scanning directory /mnt/video/tv/The Last Ship/Season 02 (parent: yes)

These episodes DO appear in the scan log, but they're not appearing in the episode list in Plex. Episode scanning has been working wonderfully ever since I installed Plex until now.

When I do a curl request against http://127.0.0.1:32400/library/changestamp, I get the following response:

<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>

When I request the same URL in a browser that I'm using to peruse my Plex library, I get the following response:

<MediaContainer size="0" changestamp="510071" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1436543539"></MediaContainer>

I'm running plex-media-server 0.9.12.4.1192-2 on Arch Linux. My media lives on my NAS, mounted to my computer via an NFS share which Plex scans for the media. I suspect that a recent hard reset my computer experienced might be the culprit for the change in behavior, but I'm not exactly sure. The timing aligns with when this behavior started to happen though.

Viewing all 7311 articles
Browse latest View live


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