The almost inevitable thread about Plugins on BETA 3...=)

Status
Not open for further replies.

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
As an aside : Protosd, can I kindly suggest you put in some amendment to your video about this? Maybe a bit of text or something? I mean - and CERTAINLY not to blame you or anything - but I, being rather ignorant, did not know I had to manually put in a name server after setting my network interface up as static, and I suspect that other n00bies like me might be in the same boat. Again, not to say that what you did wasn't helpful - to the contrary. But I strongly suspect that a lot of the hunting around on my part since then (both about torrents, and e-mail) was due to just that.

Thanks for the suggestion SilverJS, I'd be happy to do that. I'm just waking up and trying to catch up, but later today I'll try to work on that and post another link here for the people that haven't seen it yet.


(Suppose one, as I now understand it to be proper, made his interface static, and also put in a name server, and then proceeded to install the jail and plugins, and restarted. Would the jail automatically pick up the DNS then?)

Yes, that should work, or like I think William said, if you forget to enter the Nameserver, after you enter it just stop and start the Plugin jail and it should refresh.

A separate question : I had to manually start the Transmission service after I rebooted. Is this normal?

No, it should start automatically, but it could be a bug.
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
Ok the minidlna service now starts and sometimes shows up on my PS3 (not sure why but if I don't see it i just stop and start it and it shows up immediately).

How do I now select what folders to show? Right now it shows a bunch of stuff like picture music and video folders but don't want those. I want to chose what to show. Thanks
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
OK - so here's a few basic setup questions :

I've now downloaded a few things with Transmission, successfully. However, is there a way to tell Transmission to automatically move the given files to a different folder once complete? Can it be outside of the jail? (I had already setup some download folders, name self-explanatorily Ongoing and Finished, on the root level of my FreeNAS.)

Also, I can't get to delete the originals! I'm trying to copy them myself (which is VERY slow, btw - 35 or so MB/sec), but I can't delete the originals. Is there a way to do this other than through the GUI? I tried stopping one of the torrents from seeding, and even then, I couldn't do anything to it without permission.

Thanks!
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
OK - so here's a few basic setup questions :

I've now downloaded a few things with Transmission, successfully. However, is there a way to tell Transmission to automatically move the given files to a different folder once complete? Can it be outside of the jail? (I had already setup some download folders, name self-explanatorily Ongoing and Finished, on the root level of my FreeNAS.)

Also, I can't get to delete the originals! I'm trying to copy them myself (which is VERY slow, btw - 35 or so MB/sec), but I can't delete the originals. Is there a way to do this other than through the GUI? I tried stopping one of the torrents from seeding, and even then, I couldn't do anything to it without permission.

Thanks!

You might try asking in the Bit torrent/Minidlna/Firefly thread: http://forums.freenas.org/showthrea...-8-0-3-RELEASE_MULTIMEDIA&highlight=configure
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
As an aside : Protosd, can I kindly suggest you put in some amendment to your video about this? Maybe a bit of text or something? I mean - and CERTAINLY not to blame you or anything - but I, being rather ignorant, did not know I had to manually put in a name server after setting my network interface up as static, and I suspect that other n00bies like me might be in the same boat.

I decided to postpone updating the video because this is still Beta and there could still be changes. I don't want to keep redoing the video for each release. I did however add a LARGE note in the post reminding people to enter a DNS Nameserver when adding the static IP BEFORE creating the Plugin Jail. Here is the link to the post with the video on initializing the Plugin Jail:

http://protosd.blogspot.com/2012/03/quick-guide-to-using-plugins-video-with.html
 

duckman

Dabbler
Joined
Jan 24, 2012
Messages
15
MiniDLNA diferent problem

I can't get minidlna working. The other two (firefly, transmission) are working.

I did the chown dlna:dlna mentioned earlier in this thread, but I'm getting this error:

PJail# /mnt/plugins/pbi/minidlna-i386/sbin/minidlna
/libexec/ld-elf.so.1: Shared object "libjpeg.so.11" not found, required by "minidlna"

Is that the right way to start it? Doing it from the gui just says "some error occurred".

Also, in the gui console I'm getting the following as well:

Apr 21 08:21:47 localhost Couldn't retrieve http://nas/plugins/minidlna/_s/treemenu: HTTP Error 502: Bad Gateway
Apr 21 08:21:48 localhost Couldn't retrieve http://nas/plugins/minidlna/_s/status: HTTP Error 502: Bad Gateway
Apr 21 08:22:28 localhost Couldn't retrieve http://nas/plugins/minidlna/_s/status: HTTP Error 502: Bad Gateway
Apr 21 08:22:29 localhost Couldn't retrieve http://nas/plugins/minidlna/_s/treemenu: HTTP Error 502: Bad Gateway

and no entry for minidlna in the treemenu - there are entries for firefly & transmission (which I used to configure them).
Being a beta, I'm not expecting it all to work straight off, but I dunno if this is a bug or something I've done...

On other thing as well, files downloaded by transmission are owned by uid 1003, and I don't have permission to move/delete them. The uid of the only user on here is 1002. There is no user with uid 1003 in /etc/passwd on base system. The transmission user inside the jail does have uid 1003.
 

duckman

Dabbler
Joined
Jan 24, 2012
Messages
15
Firefly & Bounjour/avahi

Firefly, while working, shows that Bonjour is not running (in the webgui interface for firefly).

I have a daap client on my Android phone. If I input the Jail's IP address & the firefly port everything is gravy - I can browse & play music. It won't find the server on it's own though.

This tells me that the mt-daapd server is running just fine, but it just isn't advertising itself on the network (bounjour handles that?).
Not a problem for clients that you can point at a server, but for things such as Amarok, Rhythmbox etc it is a killer because they rely on auto discovery (in the It Just Works sense), and have no way of manually inputting the server IP. I haven't got any windows boxes here, so I can't comment on whether iTunes finds it.

You probably know this anyway :) I'm just pointing stuff out...

Thanks for a great beta, its much much more functional than beta2, and I'm looking forward to the final release!
 

willydoo

Cadet
Joined
Apr 3, 2012
Messages
3
firefly is working but seems to have an issue with minidlna

/192.168.0.189/plugins/minidlna/_s/treemenu: HTTP Error 502: Bad Gateway

freenas ip 192.168.0.189 alias ip for jail plugin 192.168.0.190

in services i see firefly transmission and minidlna, but cannot start service for minidlna some error occured probably due to that gateway error, i am out of ideas.

Have a great day, everyone

global conf
ipv4 gateway (192.168.0.1/router)
nameserver 1 192.168.0.1
nameserver 2 dns from provider
nameserver 3 dns from provider
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
You might try asking in the Bit torrent/Minidlna/Firefly thread: http://forums.freenas.org/showthrea...-8-0-3-RELEASE_MULTIMEDIA&highlight=configure

Done that (but no response yet) - however, the most pertinent question is, do you know how to access folders outside the jail, from inside the jail? In other words, it'd be easy enough, from the Freenas Web GUI, to point to a different download folder for transmission, but it seems that all it gives me access to are folders inside the jail, where I'd like to have it download to a folder on my root directory called Downloads, which would make it easier to access (unless, of course, I simply map the download directory as a separate drive inside Windows...)

Any way to do this?

Thanks! =)

P.S. - Probably a wise idea for the video. Might I kindly suggest, in the meantime, you add the same note on the Youtube page of the video? Thanks! =)
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Done that (but no response yet) - however, the most pertinent question is, do you know how to access folders outside the jail, from inside the jail?
Any way to do this?

I should probably do a video on this since it appears to work now. What you want to look at is the "Mountpoints" either on the leftside Treemenu or on the Plugins sub-tab when Control Services is selected from the Tree Menu. Click on Add Mountpoint, the "Source" folder is the folder outside the Plugin Jail that you want to map to a folder inside the jail. So before you create the mountpoint, make a folder inside the jail that will correspond to the external folder, this will be the Destination folder. Once the mountpoint has been created you should be able to see all the files from the external folder in the corresponding folder inside the jail. You *might* need to restart the jail (On/Off in Control Services) before it picks up the files.


Thanks! =)

P.S. - Probably a wise idea for the video. Might I kindly suggest, in the meantime, you add the same note on the Youtube page of the video? Thanks! =)

I'm sort of a Youtube NOOB, so let me take a look at where to add that. In the meantime, if I can break out of my brain fog, I'll do a quick video on Mount Points.

EDIT: You're welcome! :)
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Cool. =) Didn't see the note on Youtube, but whatever. =)

Tried the mount points. After several jail restarts and such, still couldn't get them to display properly, so I just said 'screw it' and mapped the jail's transmission's download directory as a separate drive (T:, as it turns out...=)) and there you have it.

I suppose transfer speeds between the jail and the actual system should be slower, since they share computational resources and such?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Cool. =) Didn't see the note on Youtube, but whatever. =)

I was having YouTube account problems, got it straightened out and added a note to the video!


OK, so for everyone that's learning how to use plugins and wants to know how to share data between the PBI Jail and the "outside world" (your regular NAS folders), here's my next video demonstrating how that's done!

Setting Up PBI Jail Mount Points

http://protosd.blogspot.com/2012/04/quick-guidevideo-to-pbi-jail-mount.html


Remember this is still Beta-3, so things could change by the final Release!

Oh, one other thing. Depending on which plugin is using the mount point, you may need to change ownership and permission on the folder inside the jail. Inside the jail Plugins are installed to /usr/pbi and each have their own subdirectory. You can either create the directory for the jail mount point in /usr/pbi OR in the subdirectory for a specific plugin.

Cheers!
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I suppose transfer speeds between the jail and the actual system should be slower, since they share computational resources and such?

Nope, there should be no delay any more than you would experience copying a file to another folder. The jail does share the CPU, but it's just like any other process or app.


Another trick you can do instead of using Mount Points is mounting a NFS share from FreeNAS inside the jail. In THAT case there would be some delay, but it's an alternate method of sharing files between the two environments.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Well - I'm seeing transfer rates of about 35-ish MB/sec from the jail to the outside, and about 120 MB /sec from the server to the outside. Is this normal?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nope, there should be no delay any more than you would experience copying a file to another folder. The jail does share the CPU, but it's just like any other process or app.


Another trick you can do instead of using Mount Points is mounting a NFS share from FreeNAS inside the jail. In THAT case there would be some delay, but it's an alternate method of sharing files between the two environments.

I think there is a read write situation when moving files from the jail to the host os. there shouldn't be but because he's likely moving from one dataset to another they need to go through the zil and there are several reads / writes.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Yes, you're right, but copying/moving data between datasets is also so outside of a Jail, so it's not really the jail.

One thing to consider is that before beta-3 PBI jails only worked with ZFS datasets. That isn't the case anymore, so you could try creating the jail in a regular folder. Remeber what William said a couple of pages back though, don't make the "Plugin Archive" (the second directory you choose when initializing the PBI jail), don't make it a subdirectory of the Jail directory. Having the PBI jail in a dataset is nice because you can setup separate snapshots for it etc., but Joshua is right about copying/moving data between datasets being slower.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
OK, got it. But, not sure if I did this right, but - when I created the Jail and Plugins datasets, two directories were created on the root level named, predictably, Jail and Plugins. I simply pointed to those two for the first and second directories when installing the jail, and that was that. Did I do this right?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
OK, got it. But, not sure if I did this right, but - when I created the Jail and Plugins datasets, two directories were created on the root level named, predictably, Jail and Plugins. I simply pointed to those two for the first and second directories when installing the jail, and that was that. Did I do this right?

Yup! :) What William was saying is that the second folder, the Plugins Archive as it is called in the popup, shouldn't be a subdirectory of the first folder ONLY IF you are not using datasets.
 

duckman

Dabbler
Joined
Jan 24, 2012
Messages
15
Mount Points

Thanks for the mountpoint vid. I'd like to share what I did (not knowing much about it, and pretty much guessing).

I have a zfs volume called Data:

/mnt/Data
/mnt/Data/Music (dataset for music)
/mnt/Data/Film (dataset for films)
/mnt/Data/TV (dataset for TV)

And for jail-related things

/mnt/Data/Jail (jail dataset)
/mnt/Data/Plugin (plugin archive dataset)
/mnt/Data/Jail/Beta3Jail (the actual jail, created by the PBI)


From an ssh session I then did:
mkdir /mnt/Data/Jail/Beta3Jail/mnt/Music
mkdir /mnt/Data/Jail/Beta3Jail/mnt/Video/Film
mkdir /mnt/Data/Jail/Beta3Jail/mnt/Video/TV

I then went into the mountpoints config in the freenas menu and did:

/mnt/Data/Music -> /mnt/Data/Jail/Beta3Jail/mnt/Music
/mnt/Data/Film -> /mnt/Data/Jail/Beta3Jail/mnt/Video/Film
/mnt/Data/TV -> /mnt/Data/Jail/Beta3Jail/mnt/Video/TV

Now any plugin running in the jail can see all the bits and bobs.
And then for firefly (for example) I configured it's media directory to be /mnt/Music (jail's path to the loopback/nullfs mounted dataset). Works nicely.

Is there anything wrong with this kind of setup?
In the video you mounted the outside datasets into the plugin's pbi directory, not into the jail itself - any special reason why?

Edit: I'm still having probs with minidlna - from within the jail (jexec) what is the right command to start minidlna to debug it properly?
 
Status
Not open for further replies.
Top