[DOCKER] Airvideo Server, MovieGrabber


Recommended Posts

  • Replies 82
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Is this update in gfjardim's templates now as well?  Or do I install from the command line via the command in the first post?

 

I just made an especial update for you. AirVideoServer template should be included.

 

I just VPN'd into my unraid box and installed AirVideoServer.  How Cool is that?  Works perfectly!!

Thanks guys!

 

Link to comment
  • 2 weeks later...

I'm trying to build from the dockerfile for moviegrabber, running into the following error:

Step 12 : RUN apt-get install -qy python-2.7 sqlite wget python-openssl

---> Running in 9b32a6965a47

Reading package lists...

Building dependency tree...

Reading state information...

E: Unable to locate package python-2.7

E: Couldn't find any package by regex 'python-2.7'

Link to comment

I'm trying to build from the dockerfile for moviegrabber, running into the following error:

Step 12 : RUN apt-get install -qy python-2.7 sqlite wget python-openssl

---> Running in 9b32a6965a47

Reading package lists...

Building dependency tree...

Reading state information...

E: Unable to locate package python-2.7

E: Couldn't find any package by regex 'python-2.7'

It's just python.  That installs the latest python2.x version unless you are looking for a specific version.

Link to comment

Sorry, that was me adding the python-2.7, the original Dockerfile has this

 

RUN apt-get install -qy python sqlite wget python-openssl

Which produces this error:

 

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

python : Depends: python2.7 (>= 2.7.5-1~) but it is not going to be installed

          Depends: python-minimal (= 2.7.5-5ubuntu3) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Link to comment

Sorry, that was me adding the python-2.7, the original Dockerfile has this

 

RUN apt-get install -qy python sqlite wget python-openssl

Which produces this error:

 

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

python : Depends: python2.7 (>= 2.7.5-1~) but it is not going to be installed

          Depends: python-minimal (= 2.7.5-5ubuntu3) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

What base-image are using?
Link to comment

FROM phusion/baseimage:0.9.11

 

As per the dockerfile from: https://github.com/rsanch1/moviegrabber

That is weird.  Here is my report when I ran it.
Step 12 : RUN apt-get install -qy python sqlite wget python-openssl

---> Running in c1c6d04131fd

Reading package lists...

 

Building dependency tree...

Reading state information...

 

The following extra packages will be installed:

  libpython-stdlib libsqlite0 python-minimal python2.7 python2.7-minimal

  sqlite3

Suggested packages:

  python-doc python-tk python-openssl-doc python-openssl-dbg python2.7-doc

  binutils binfmt-support sqlite-doc sqlite3-doc

The following NEW packages will be installed:

  libpython-stdlib libsqlite0 python python-minimal python-openssl python2.7

  python2.7-minimal sqlite sqlite3 wget

0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.

Unless something changed recently, try python2.7,  no dash.  Are you using the same repo's I did?  Or you can just use the docker image I already made.
Link to comment

Thanks eroz, I will try yours...

 

There's another problem I'm struggling with. I'm using docker on a ubuntu VM where I mount my unRAID movies via cifs/autofs. So when I do:

 

-v /media/unraid/movies:/movies

 

Where /media/unraid/movies is the autofs mount point.

 

I get this as an error:

 

2014/07/29 19:27:17 Error response from daemon: Cannot start container 5553c74718ded399ab867ca9ab006dcfd738aa3f09117302af6250c9ec7edd7e: setup mount namespace bind mounts mounting /media/unraid/movies into /var/lib/docker/aufs/mnt/5553c74718ded399ab867ca9ab006dcfd738aa3f09117302af6250c9ec7edd7e/movies too many levels of symbolic links

Link to comment

Thanks eroz, I will try yours...

 

There's another problem I'm struggling with. I'm using docker on a ubuntu VM where I mount my unRAID movies via cifs/autofs. So when I do:

 

-v /media/unraid/movies:/movies

 

Where /media/unraid/movies is the autofs mount point.

 

I get this as an error:

 

2014/07/29 19:27:17 Error response from daemon: Cannot start container 5553c74718ded399ab867ca9ab006dcfd738aa3f09117302af6250c9ec7edd7e: setup mount namespace bind mounts mounting /media/unraid/movies into /var/lib/docker/aufs/mnt/5553c74718ded399ab867ca9ab006dcfd738aa3f09117302af6250c9ec7edd7e/movies too many levels of symbolic links

I'm not much of a linux expert, but have you tried deleting the mount point and trying again.
Link to comment

hi joelones, i think your issue is related to the fact your running docker in a vm and then trying to access host resources, this is basically doing two hops, one hop to get from the docker networking stack to the vm, and then another hop to go from kvm/xen networking stack to the unraid host. i think this is what is causing your issues, i personally would recommend running docker bare metal on unraid and not in a vm, as this is the way it was designed to work, im not sure if you will be able to punch all the way through two levels of virtualisation with any sort of reliability.

Link to comment

hi joelones, i think your issue is related to the fact your running docker in a vm and then trying to access host resources, this is basically doing two hops, one hop to get from the docker networking stack to the vm, and then another hop to go from kvm/xen networking stack to the unraid host. i think this is what is causing your issues, i personally would recommend running docker bare metal on unraid and not in a vm, as this is the way it was designed to work, im not sure if you will be able to punch all the way through two levels of virtualisation with any sort of reliability.

 

Thanks for the help. I figured this is not a conventionally setup but I think this is more of a unionfs issue as I think that's what docker uses with the volume switch. I'm sure if I run docker bare metal on a Xen host I would not have this issue as the share would be local to the filesystem (/mnt/user/movies) and not mapped via cifs/nfs. I think the mapping of a network fs and then passing in the mount point to docker via the -v is what's causing the issue, but I could be wrong.

 

My main unRAID is currently on an ESXi host, I'd like to migrate over to the beta at some point running Xen as a host but I'm dreading that day as I would have a lot to do...

Link to comment

I would not have this issue as the share would be local to the filesystem (/mnt/user/movies) and not mapped via cifs/nfs. I think the mapping of a network fs and then passing in the mount point to docker via the -v is what's causing the issue, but I could be wrong.

 

agreed.

Link to comment
  • 1 month later...

I wanted to start my DOCKER experience with Airvideo. The actual status is the following:

  • the container is starting
  • the iPad Airvideo app is identifying the server
  • by a click on the "Volume Mappings" link I see all of my video files
  • all video files have nobody:user permissions
  • share settings are: export=yes, security=private, guests have no access, only one user has read/write access, anyone else has r/o access
  • ISSUE: the iPad app is showing both video directories (Kino, Serien) as empty

Here is the log:

root@localhost:# /usr/bin/docker logs AirVideoServer
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 95
Found user 'avahi' (UID 104) and group 'avahi' (GID 107).
Successfully dropped root privileges.
avahi-daemon 0.6.31 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
Loading service file /services/airvideo-server.service.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
socket() failed: Address family not supported by protocol
Failed to create IPv6 socket, proceeding in IPv4 only mode
socket() failed: Address family not supported by protocol
Joining mDNS multicast group on interface docker0.IPv4 with address 172.17.42.1.
New relevant interface docker0.IPv4 for mDNS.
Joining mDNS multicast group on interface br0.IPv4 with address 192.168.178.28.
New relevant interface br0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 172.17.42.1 on docker0.IPv4.
Registering new address record for 192.168.178.28 on br0.IPv4.
Registering HINFO record with values 'X86_64'/'LINUX'.
Sep 8, 2014 11:42:01 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Sep 8, 2014 11:42:01 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Server startup complete. Host name is Tower.local. Local service cookie is 3452931340.
DEBUG: SnapshotCache: Initializing Thumbnail Cache; Java Version: 1.6.0_31
2014-09-08 11:42:02.188::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2014-09-08 11:42:02.203::INFO: jetty-6.1.x
Sep 8, 2014 11:42:02 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Service "AirVideo Server on Tower" (/services/airvideo-server.service) successfully established.
2014-09-08 11:42:02.242::INFO: Started [email protected]:45631
DEBUG: SnapshotCache: Created new Snapshot Index BTreeDEBUG: PortMapperAction: Scheduling task PortMapperAction$2 (1750570163)

The command finished successfully!

 

Any idea what I have overlooked? Thank you

Link to comment

I wanted to start my DOCKER experience with Airvideo. The actual status is the following:

  • the container is starting
  • the iPad Airvideo app is identifying the server
  • by a click on the "Volume Mappings" link I see all of my video files
  • all video files have nobody:user permissions
  • share settings are: export=yes, security=private, guests have no access, only one user has read/write access, anyone else has r/o access
  • ISSUE: the iPad app is showing both video directories (Kino, Serien) as empty

 

 

Any idea what I have overlooked? Thank you

Hmmmm.....not sure what could be causing that.  Give it some time to see if it needs to populate it. I'm not sure how many videos you have but when I added my server it did take some time for all the videos to get added.
Link to comment

Thanks eroz, but I can wait as long as I want no files will show up.

 

I have the preference screenshot attached - is that all according to how it should be?

Here are my settings.  It looks like it is the Environment Variables that is set up incorrectly.  Take a look at the screenshot.

 

nsuerMO.png

Link to comment

I try to install airvideo and I get a message.

 

Unable to find image 'eroz/airvideo' locally
Pulling repository eroz/airvideo.

 

 

At the end he did manage to install, but there is a message at the beginning - and of course it does not work.

 

Abeksis,  The "Unable to find image 'eroz/airvideo' locally"  should always appear if it is the first time installing that docker.  It just means that you do not have it stored on your computer/server so it will need to download it.  I/We need just a bit more information besides it doesn't work. What does the docker log say after you have installed it?  What device are you using to connect?  Are you trying to use airvideo or airvideo HD on your device?

 

Link to comment

Thanks for the reply

 

French AirVideoServer installation log. I downloaded the HD version airvideo. Only I did not really know where to connect to, and which port. I'd love to help.

 

root@localhost:# /usr/bin/docker logs --tail=350 AirVideoServer
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/config.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 98
Found user 'avahi' (UID 104) and group 'avahi' (GID 107).
Successfully dropped root privileges.
avahi-daemon 0.6.31 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
Loading service file /services/airvideo-server.service.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
socket() failed: Address family not supported by protocol
Failed to create IPv6 socket, proceeding in IPv4 only mode
socket() failed: Address family not supported by protocol
Joining mDNS multicast group on interface docker0.IPv4 with address 172.17.42.1.
New relevant interface docker0.IPv4 for mDNS.
Joining mDNS multicast group on interface xenbr0.IPv4 with address 10.0.0.3.
New relevant interface xenbr0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 172.17.42.1 on docker0.IPv4.
Registering new address record for 10.0.0.3 on xenbr0.IPv4.
Registering HINFO record with values 'X86_64'/'LINUX'.
Server startup complete. Host name is HomeServer.local. Local service cookie is 2762111775.
Sep 9, 2014 1:17:28 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Sep 9, 2014 1:17:28 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
DEBUG: SnapshotCache: Initializing Thumbnail Cache; Java Version: 1.6.0_31
2014-09-09 13:17:30.538::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2014-09-09 13:17:30.566::INFO: jetty-6.1.x
Sep 9, 2014 1:17:30 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: SHA1-Digest.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
2014-09-09 13:17:30.616::INFO: Started [email protected]:45631
DEBUG: SnapshotCache: Created new Snapshot Index BTreeDEBUG: PortMapperAction: Scheduling task PortMapperAction$2 (432082562)

The command finished successfully!

 

 

Link to comment

Thanks for the reply

 

French AirVideoServer installation log. I downloaded the HD version airvideo. Only I did not really know where to connect to, and which port. I'd love to help.

 

 

I think that might be the problem...There is not a linux version of airvideoHD.  This only works with the older airvideo.  The connecting port is 45631.

 

 

*edit*

Just checked at the airvideoHD forums, looks like they are working on a linux version but no ETA.  http://forums.inmethod.com/topic/145-linux-server/?p=4465

Link to comment
  • 3 weeks later...

Hi, I'm new to Docker apps.  I just upgraded to unRAID 6 beta 9 and I wanted to install this AirVideo docker.  Can someone please help me step-by-step as I never done this before?

 

Thanks!

 

EDIT:  Do I need to install dockers from a command line?  I found some info but I thought you could do it all from the webgui?  Maybe I was wrong?  If it's form the command line then it should be simple as to follow the command line on the fist post...

 

Also, my TV Shows folder has a space, how can I add that folder with the -v command?  with a \ before the space?

Link to comment

Hi, I'm new to Docker apps.  I just upgraded to unRAID 6 beta 9 and I wanted to install this AirVideo docker.  Can someone please help me step-by-step as I never done this before?

 

Thanks!

 

EDIT:  Do I need to install dockers from a command line?  I found some info but I thought you could do it all from the webgui?  Maybe I was wrong?  If it's form the command line then it should be simple as to follow the command line on the fist post...

 

Also, my TV Shows folder has a space, how can I add that folder with the -v command?  with a \ before the space?

Have you created your docker image?  If not follow the docker steps from this post.

Next, after Starting array, visit Extensions/Docker.  All you should see is a single section named "Docker settings".  In this section is a field called "Docker image:".  It appears like a greyed-out field - it's not - it's filled with what HTML calls "placeholder" text with an example of what you should enter in here.  Decide where (which disk/share) you want your docker image to exist and what you want to name it, and enter it here.  Examples:

 

/mnt/disk1/docker.img  [docker.img will be created in root of /mnt/disk1]

or

/mnt/disk1/docker/docker.img [directory, aka share, docker must already exist]

 

You don't have to use /mnt/disk1.  Could use /mnt/disk2 or /mnt/cache, etc.

 

You don't have to name it docker.img.  Could be docker1.img or my-docker.img or test-docker.img, etc.

 

You don't have to give it an img extension.  Could give it any extension or no extension.

 

Now click 'Start' to start docker.  Since this is first time starting it will create the image file and mount it at /var/lib/docker.

 

After you have done that, follow gfjardim's post here.  Then you can use the gui to install the airvideo docker or any other.

 

Otherwise if you just create the docker.img and start it from the first step, you can install dockers via the commandline.

 

 

For your last question I believe you put the mount path in quotation marks.

i.e.  -v "mnt/path/to/TV Show":/tv

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.