Yep Easiest is to use the Debian package on forums. I wish they'd add it to the plex.tv download page for subscribers, but oh well.
Posts by lukyjay
-
-
I have found the Debian package, for those who run in to this problem: https://forums.plex.tv/discussion/48865/debian-package/p1
-
Hey,
I have installed Plex then followed the instructions to update. Using the PlexPass package for 64bit ubuntu, it appears to have killed the service and is instead symlinking to an upstart folder, as you can see from this command of ls -l:
lrwxrwxrwx 1 root root 21 Aug 23 18:35 plexmediaserver -> /lib/init/upstart-job
I had to install the Ubuntu version as there is no Debian version listed on the web site for plex pass users:
https://plex.tv/downloads?channel=plexpassNow I have no idea how to start plex. If I nano this file, it is empty.
Any ideas?
-
Oh that sounds quite convenient actually, must be how corporate and public networks configure there's. I've never tried that before, but yeah you're right, you'd have to configure OMV on an alternative port first
-
Not sure what a transparent proxy is to be honest, what are the benefits of running on port 80?
-
You will be OK. Let us know this weekend how it goes.
Hey where you set up the shared folders to give plugins access to your directories, is it better to have one for the root of my storage? Or better to have one per folder?
Currently I have one for my entire storage. I wasn't sure if it would be better to have one for TV, one for Movies, one for Owncloud etc.
-
Biggest suggestion, if something is not working ask for help on forum before you mess with tons of settings.
-
I might put this on pause for a little bit. We've really tried a lot of different things and it doesn't seem to work.
As it works for other users like yourself, it may be a configuration issue.
On the weekend I plan to reinstall OMV and start from a fresh install to ensure everything is working pristine.
Any suggestions on what to do when I do this reinstall, mainly in relation to the permissions on my media?
-
@ lukyjay
cd /media/c1a0b79e-e049-4412-8668-c1963a2b91db
chown -R emby:nogroup embyAlso make sure the /etc/init.d/emby is using emby for RUN_AS and nogroup for RUN_GRP. You should not be messing the initscripts.
Here is link to the init script for reference:
https://github.com/OpenMediaVa…b/master/debian/emby.initThen try...
Same error with access denied. Is it possible I need to run chown on the media also? I'm worried by doing this that Sabnzbd and Sonarr won't be able to play with the files if I do.
-
Is your ffmpeg in this location?
/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/ffmpeg/20150331/ffmpeg
This folder should have been moved:
/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/ffmpeg
It does not run because the data disks are mounted noexec
The plugin normally moves this folder to the system drive and leaves symlink in the old location.cd /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby
and give results of:
ls -laI thought this would work but now the error has changed to file not found:
2015-08-11 20:40:43.2602 Error - HttpServer: Error processing request for /emby/videos/6aab87f34b9df798447a0d00340d89f6/live.m3u8?DeviceId=b8e34b52a08090c2abb5a34cd4fc344496577caa&MediaSourceId=6aab87f34b9df798447a0d00340d89f6&VideoCodec=h264&AudioCodec=aac&VideoBitrate=1372000&AudioBitrate=128000&MaxAudioChannels=2&MaxHeight=720&Level=41&ClientTime=635748936355386980&Profile=high&PlaySessionId=812dccd6b8b3470d963dc85f82d85d83&api_key=6899c4bdb9ab435b8f10a0c3f183ab38
*** Error Report ***
Version: 3.0.5675.1
Command line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby -restartpath /usr/sbin/emby.sh
Operating system: Unix 3.2.0.4
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby
Mono: 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:04:37 UTC 2015)
Application Path: /opt/emby/MediaBrowser.Server.Mono.exe
ApplicationName='/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/ffmpeg/20150331/ffmpeg', CommandLine='-fflags +genpts -i file:"/media/c1a0b79e-e049-4412-8668-c1963a2b91db/TV/Halt and Catch Fire/Season 2/Halt and Catch Fire - S02E06 - 10Broad36 HDTV-720p.mkv" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1372000 -bufsize 2744000 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/01a3a174036262d9f0a76e20065158b9/" -y "/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/transcoding-temp/01a3a174036262d9f0a76e20065158b9.m3u8"', CurrentDirectory='', Native error= Cannot find the specified file
ServiceStack.HttpError
No Stack Trace AvailableSo I moved it back.
Output is
CodeCheck this location:
/usr/local/bin
Is there anything there for ffmpeg???
If not try this...omv-mkconf emby moveDbFolder
root@nuc:/usr/local/bin# find ffmpeg
ffmpeg
ffmpeg/20150331
ffmpeg/20150331/ffprobe
ffmpeg/20150331/ffmpeg
ffmpeg/20150331/fontsI have no idea what the mkconf thing did, it says emby is running so i stopped the service and it says starting emby...
Still not working
-
I meant by misconfiguring the proxy and not being able to reach the web GUI. Sorry for the confusion on my part.
Wouldn't you have to set it to port 80 for that to happen? I think it would be safer as a plugin, that way we can control what settings can be configured by the interface
-
Try this:
cd /media/c1a0b79e-e049-4412-8668-c1963a2b91db
chown -R root:users TVGive results of this:
id sabnzbdAlso, are any other files playing OK?
Still no luck
root@nuc:/media/c1a0b79e-e049-4412-8668-c1963a2b91db# sudo chown -R root:users TV
root@nuc:/media/c1a0b79e-e049-4412-8668-c1963a2b91db# id sabnzbd
uid=1000(sabnzbd) gid=100(users) groups=100(users)
root@nuc:/media/c1a0b79e-e049-4412-8668-c1963a2b91db# -
Hey,
I don't see how it's possible to lock yourself out of OMV doing this. This isn't a firewall at all, it's an optional proxy. Your devices will work if they don't use this proxy, its an optional proxy. Only devices configured to use it will do so.
I appreciate your input but am not sure I understand how this could block someone out of OMV?
-
-
You could use nfs. Why don't you change directory into a folder where a file you are trying to play and run the state command on that file.
state filename
Give results so we can see what mess is going on.
What you are doing in the emby.conf is nuts.
Your media shares need chmod 755. That is it. The last 5 is read for all other users. You are messing with way to much. The plex and emby users are used to run the working directories for each service. You should not be changing the user of one service to the user of the other.
OMG
Hehe I'm just learning
State doesn't work, but stat does, is it the same?
Coderoot@nuc:/media/c1a0b79e-e049-4412-8668-c1963a2b91db/TV/Halt and Catch Fire/Season 2# state Halt\ and\ Catch\ Fire\ -\ S02E06\ -\ 10Broad36\ HDTV-720p.mkvIf you have a media share that is all fragged because of bad perms or acl you can:
1) Go to Access Rights Management / Shared folders
2) Then select the Reset Permissions TAB
3) The default selection for Permissions is all you need for media shares.
4) Select the shared folder in question. Put a check in clear ACLs. Then click on Save.Adding emby to the users group is fine if you want to be able to store meta data alongside the files in your media's data folders. In emby there is a check mark you need to select to allow this as well.
So instead of using ACLs, I should find which user a service is running and add that to the users group to give it access to files?
-
Hello Open Media Vault community,
There is a thread for suggestions on what should be made in to a plugin. In this thread I have mentioned that I think Squid Proxy is a good idea, and others agreed however asked for how I set it up so it can be converted in to a plugin.
I would say I'm average skill level in linux, and absolute novice in Open Media Vault, so please excuse my steps below if they seem a bit choppy. I'm certainly happy for your feedback.
Step 1: Gain access to your server
SSH in to your Open Media Vault server. For me, my server has a local IP of 192.168.1.8, and I'm using Linux Mint on my notebook.
Type this command in to a terminal window: ssh root@192.168.1.8Step 2: Download the Squid Proxy software
Run the following commands;
Update your repositories: apt-get update
Install Squid: apt-get install squid3
Check Squid version: squid3 -v
Output should be long but start with: Squid Cache: Version 3.1.20
If it says version 2.x.x.x, then you installed the wrong package. remove squid, and install squid3 as per above.Step 3: Configure the Squid Proxy
Open the configuration: sudo nano /etc/squid3/squid.conf
Ctrl+W to search for something.
Search for 3128 until you find: http_port 3128. Change that port to a port you can remember. I used 5555
Find this line: acl CONNECT method CONNECT
If your local area network uses 192.168.1.x (if not, change the numbers but leave the last as a zero as it's wildkey), add this below: acl mylan src 192.168.1.0/255.255.255.0
Find this line: http_access allow localhost
Add below: http_access allow mylan
Find this line: http_access deny !Safe_ports
This stops any non-standard ports from working, which is a pain in the ass. Replace it with: #http_access deny !Safe_ports
Find this line: #cache_dir ufs /var/spool/squid3 100 16 256
Remove the # at the start, then replace the '100' with how big you want your cache to be in megabytes. For example, mine is quite large at 20GB: cache_dir ufs /var/spool/squid3 20480 16 256You can tweak the other options. For example if you go down a few lines, you're able to change what files it will cache. By default it won't cache anything larger than 4mb. I have raised mine to 64mb. I also stopped mine from caching anything below 500kb.
Ctrl+x and Y to save and exit.
Step 4: Test the Squid Proxy
Run this command to restart the server so we can read the configuration changes we made: sudo service squid3 restart
Configure a your network to use your server as a proxy. In linux mint, I did this from the network settings:
Then test your web browser by navigating to a web site. Make sure the web site does not use HTTPS. Squid Proxy cannot work with SSL as it can't intercept an encrypted connection.
If it works and the web site loads, yay! If it doesn't, post below so we can troubleshoot.The only real way of knowing if the proxy is caching, is to read the logs. Hit means it was in your cache so it was not downloaded. Miss means it was not and Get means it was not however it will be next time as it meets the criteria of caching and has now been saved.
You can configure your squid proxy to pre-fetch web sites for even faster browsing, to block pop-ups and adverts, to scan for viruses on web sites etc.
Another handy thing is to generate reports:
http://www.tecmint.com/sarg-sq…andwidth-monitoring-tool/Let me know what you think by giving a thumbs up on the bottom right corner if this is good.
-
ACL is not dangerous. It just does not work very well and the way you are using it is not it's intended purpose. You can create a new media share and then the subfolders. Then move you files over to the new subfolders. I can't talk more now. Busy with my kid.
I hope your kid is okay
I really dislike Samba, but have tried this method to see if I could get it working. Every time I try move files from the old share to the new share through my notebook it moves at around 500kb/s and times out after moving 50mb.
Tried to do it through nano on my notebook because I think if I do it via SSH as a mv command it will keep/copy the current permissions which are invalid?
One other thing that you may find interesting is I went in to /etc/init.d/emby.conf and changed the user and group to plex and plex. As I said before, Plex works just fine with playing the media. When emby is using the plex account, I assume it should have the same access, however it does not. Is it possible that the problem does not lie with the permissions on the video file?
This feels like a problem more related to Emby than OMV or the plugin, so I'm going to cross post this problem to their forums and will certainly let you know if I find a solution.
-
You should not be using ACL for a media folder. There is no reason for this. Also, the data drive you are using should be ext4 or xfs.
Hey, my filesystem is XFS.
I don't understand why I should not use ACL? Initially when I installed Sonarr, it wasn't able to move or arrange my files. I used ACL to give it read/write permission to my media and now it can. What is a better way of doing this if ACL isn't ideal, and why should we avoid ACL? Is it dangerous?
I don't want to lose my media, I have about 3 terabytes of it and my download speed is 300kb/s so it's not easy to replace.
1. make shared folder media, use default drop down which give read only to others.
2. add privileges (read/write for main user) to the shared folder
3. share it with samba
4. Connect to the share via the network from another machine
5. Create subfolders in the media share (e.g. Music, TV, Movies, etc...)I don't understand why this is required when Plex is able to play these files with no problems. Is there something I've done to let Plex work but not Emby? I can't help but feel I've broken something.
-
Hello,
I have recently installed the Emby plugin however I'm not able to play a show I wish to watch. This is the error I can locate on the logs when I try:
CodeCommand line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby -restartpath /usr/sbin/emby.shApplicationName='/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/ffmpeg/20150331/ffmpeg', CommandLine='-fflags +genpts -i file:"/media/c1a0b79e-e049-4412-8668-c1963a2b91db/TV/Halt and Catch Fire/Season 2/Halt and Catch Fire - S02E06 - 10Broad36 HDTV-720p.mkv" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1372000 -bufsize 2744000 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/bd799cf6dcb5f00bc1f6449a42b42c5c/" -y "/media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby/transcoding-temp/bd799cf6dcb5f00bc1f6449a42b42c5c.m3u8"', CurrentDirectory='', Native error= Access deniedat System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0It repeats this same error multiple times for some reason.
I have tried to give emby permission to the file. I added emby to the users group and given both emby user and users group permissions through ACL to the video.
Does anyone have any suggestions?
-
I've installed Squid proxy on my box to use it as a cache and speed up web browsing. It was very easy to set up. There should be a plugin for this.