LinHES Forums
http://forums.linhes.org/

Access recordings away from home
http://forums.linhes.org/viewtopic.php?f=21&t=24230
Page 2 of 3

Author:  Big boy stan [ Wed Nov 18, 2015 8:33 pm ]
Post subject:  Re: Access recordings away from home

Still no joy. mplayer worked fine for both the local test file and the samba loaded directory so the files seem to be fine.

I don't think it could be a permission thing as the PMS sees all the recordings, processes them and displays thumbnails for them. It is only when I try to play a recording do I get a message that "There was a problem playing that item".

Did a ton of googling but cant seem to find anything. Any new thoughts?

Author:  brfransen [ Thu Nov 19, 2015 8:38 am ]
Post subject:  Re: Access recordings away from home

Check the log: .plexht/temp/plexhometheater.log

Author:  Big boy stan [ Sun Nov 22, 2015 7:30 pm ]
Post subject:  Re: Access recordings away from home

I could not find any plexhometheater.log
Even tried the find command and came up blank.

I am thinking I should do an uninstall and reinstall of the PMS to see it that changes anything. What do you think?

sudo pacman -Rsn plex-media-server
followed by a reboot for good measure.

And then
sudo pacman Sy plex-media-server

Correct?

Author:  brfransen [ Mon Nov 23, 2015 7:25 am ]
Post subject:  Re: Access recordings away from home

The plexhometheater.log should be in your home dir at the path I gave above. Unless you were only using the web client to test playback? If so try using Plex Home Theater on the local box.

I really doubt that uninstalling and reinstalling will change anything but you can try. Reboot isn't needed but just make sure to removeservice.sh plexmediaserver although removing the pkg may do that.

I see that arch packages a separate package for plex pass users. I have no idea what is different but I wonder if that may be it for you since you are subscribed. I think you can server in PMS without signing in. Maybe try that.

Author:  Big boy stan [ Fri Nov 27, 2015 11:03 am ]
Post subject:  Re: Access recordings away from home

You are correct that I had only been trying to view the recordings from the web access on another computer (inside the LAN). I access it with the local IP address and port 32400 and can see the entire library, make changes, etc but trying to watch a video gives me the error message. So today I took your advice and tried clicking on the Plex Home Theater box in the LINHES programs options and to my great surprise was able to watch a video. This is on the same mythbox as the PMS is running. So that is some progress (always good).

So to review, I can:
Mythbox: use UI and watch videos
Windows box with Chrome inside the LAN: use UI but cant watch videos
Android App inside or outside the Lan: use UI but cant watch videos

Seems something outside of the PMS is blocking the videos. Is there some security log I could check to see if the Mythbox is blocking access to one of the necessary ports? Any other suggestions?

Thanks for all your help.

Author:  brfransen [ Fri Nov 27, 2015 11:28 am ]
Post subject:  Re: Access recordings away from home

Did you try signing out of PMS and using a client on the LAN. That might give a hint if you being Plex Pass user and not running a plex pass version of PMS could be an issue.

I don't think we have any kind of firewall running in LH that would block that on a system level. It looks like in the PMS setting there are various logs that can be enabled. Maybe try that. I don't know where they put the logs.

Author:  Big boy stan [ Sun Nov 29, 2015 1:28 pm ]
Post subject:  Re: Access recordings away from home

Tried signing out but that had no effect.

I finally found the log files. They are at
Code:
/data/storage/disk0/media/plex/Plex \Media \Server/Logs/


Reviewing the log called Plex \Media \Server.log I found a couple of warnings about not being able to create a directory.
Code:
Nov 29, 2015 14:06:27 [0x7fcd56bc5700] WARN - WARNING: Couldn't create directory /data/storage/disk0/media/tmp/plex-transcode-nhcp26r6f26jq0k9-5d2167b3-bb11-42a9-9907-8ce0cb53c699
Nov 29, 2015 14:06:27 [0x7fcd56bc5700] DEBUG - [Universal] Using local file path instead of URL: /test/Waterfront House Hunting - 2015-07-25, 5-30 PM - Beautiful Biloxi Beach Homes.mpg


After that there are several errors with the transcoder such as zero byte file, etc.
Code:
Nov 29, 2015 14:06:27 [0x7fcd60959700] DEBUG - Using existing transcode session.
Nov 29, 2015 14:06:27 [0x7fcd6066b700] DEBUG - [TranscodeOutputStream] Input processing thread started at offset 0 for -1 bytes.
Nov 29, 2015 14:06:27 [0x7fcd6066b700] DEBUG - [TranscodeOutputStream] Input processing thread exited after writing 0 bytes, m_closed=0, m_endOfFileReached=1, session->isStopped()=0
Nov 29, 2015 14:06:28 [0x7fcd66511700] DEBUG - [TranscodeOutputStream] Reached end of file
Nov 29, 2015 14:06:28 [0x7fcd66511700] DEBUG - Removed transcode output stream 0x7fcd621d3000, active count 1 => 0


Any idea why it cant create this directory? Permissions look ok.
Code:
[mythtv@love ~]$ ls -ld /data/storage/disk0/media/tmp/
drwxrwxr-x 2 mythtv mythtv 19 Nov  8  2014 /data/storage/disk0/media/tmp/


Thanks for all your help.

Author:  brfransen [ Sun Nov 29, 2015 2:36 pm ]
Post subject:  Re: Access recordings away from home

It is a permissions issue as PMS runs as plex user. So change tmp to 777. I will look at the pkg to adjust permissions.

Author:  Big boy stan [ Sun Nov 29, 2015 3:03 pm ]
Post subject:  Re: Access recordings away from home

SUCCESS!!!
After a
Code:
chmod -R 777 /data/storage/disk0/media/tmp

all videos are working.

Thanks so very much for all your help

Author:  brfransen [ Mon Nov 30, 2015 11:47 am ]
Post subject:  Re: Access recordings away from home

I have pushed an update to PMS so that it uses a tmp dir under the plex dir and has the correct permissions.

Author:  nbdwt73 [ Thu Dec 10, 2015 7:39 pm ]
Post subject:  Re: Access recordings away from home

Britney, I have Plex running well - thanks for the updates. I have a question - I have modified Plex frontends to allow deletion of recordings but have a permissions issue (plex runs as user "plex"). If I chmod my recordings folder to '777' the deletes work from a plex frontend so I know it will work. Is there anyway to either change the plex user to something else (like mythtv - the owner of my recordings data)? Or any other solution?

Author:  brfransen [ Fri Dec 11, 2015 8:37 am ]
Post subject:  Re: Access recordings away from home

Part of the reason I kept PMS running as plex was to ensure that mythtv and plex didn't stomp over each other's data. So to change PMS to run as mythtv you would need to change the runit service, the permissions of all PMS data and probably a few more things that aren't jumping to mind right now.

But more to your issue. If you set up your PMS library to look at /data/storage/disk0/media/recordings/ like I mentioned earlier in this thread then deleting that file doesn't actually delete the recording. That is just a symlink to the actual recording and will get recreated every hour.

Author:  nbdwt73 [ Sun Dec 13, 2015 8:20 am ]
Post subject:  Re: Access recordings away from home

Yeah, I understand the symlink. I want the system to delete the recording. I am using plex for a few frontend Samsung TV's (plex is available from the Samsung app store - works quite well...). When I am done with an episode I want to delete it from the backend...

Author:  brfransen [ Sun Dec 13, 2015 10:16 am ]
Post subject:  Re: Access recordings away from home

nbdwt73 wrote:
When I am done with an episode I want to delete it from the backend...
How would you do that? If there is a way that PMS can fire a script when something is deleted that might work. But I am not aware of PMS being able to do that. The only why I can think of off the top of my head is to have a script that runs before the recordings symlink directory is recreated every hour. That script would have to compare what the recordings symlink directory has with what the MBE has and then using either the python bindings or services api delete the file from the MBE. You would need lots of checks though to make sure it wouldn't delete the wrong stuff on the MBE.

Author:  nbdwt73 [ Sun Dec 13, 2015 12:51 pm ]
Post subject:  Re: Access recordings away from home

Here is where I am going to show my ignorance... I enabled "allow media deletion", then set "data/storage/WDCWD7500AAKS-00RBA0_WD-WCAPT0670098/media/recordings permissions" to 777. Deletes on the server now work but this is obviously not a great way to do this...

Page 2 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/