Posts by lukyjay

    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=plexpass


    Now I have no idea how to start plex. If I nano this file, it is empty.


    Any ideas?

    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?


    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.


    cd /media/c1a0b79e-e049-4412-8668-c1963a2b91db/emby


    and give results of:
    ls -la


    I 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 Available


    So I moved it back.


    Output is



    root@nuc:/usr/local/bin# find ffmpeg
    ffmpeg
    ffmpeg/20150331
    ffmpeg/20150331/ffprobe
    ffmpeg/20150331/ffmpeg
    ffmpeg/20150331/fonts


    I 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 :(

    Try this:
    cd /media/c1a0b79e-e049-4412-8668-c1963a2b91db
    chown -R root:users TV


    Give results of this:
    id sabnzbd


    Also, 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#

    I CHMOD'ed it to 0755 and went back to Emby and the file still won't play;


    Code
    root@nuc:/media/c1a0b79e-e049-4412-8668-c1963a2b91db/TV/Halt and Catch Fire/Season 2# stat Halt\ and\ Catch\ Fire\ -\ S02E06\ -\ 10Broad36\ HDTV-720p.mkv
    File: `Halt and Catch Fire - S02E06 - 10Broad36 HDTV-720p.mkv'
    Size: 1045301888 Blocks: 2041616 IO Block: 4096 regular file
    Device: 811h/2065d Inode: 871300839 Links: 1
    Access: (0755/-rwxr-xr-x) Uid: ( 1000/ sabnzbd) Gid: ( 100/ users)
    Access: 2015-08-08 21:59:14.793971037 +0800
    Modify: 2015-07-06 03:02:28.000000000 +0800
    Change: 2015-08-10 10:02:21.912460377 +0800
    Birth: -


    Hehe I'm just learning :)


    State doesn't work, but stat does, is it the same?



    If 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.8



    Step 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 bu :!: t 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

    Code
    # Squid normally listens to port 3128
    http_port 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 256


    You 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:



    It 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.


    Code
    root@nuc:~# id emby
    uid=114(emby) gid=65534(nogroup) groups=65534(nogroup),100(users)
    root@nuc:~#


    Does anyone have any suggestions?