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

Status
Not open for further replies.

djlax152

Dabbler
Joined
Mar 15, 2012
Messages
48
actually never mind. I made a dummy mistake, I was trying to access the WebGUI Via the "plugin TCP Port" when i should have been using the default 9091 port. I do however have the same issue Silver had in not being able to delete my old Transmission plugin. I too did the same thing and tried to install the pbi again in hopes that it would overwrite the old plugin but now i have 2 transmission plugins listed. I'm a newbie to the CLI so i'm not sure exactly how to execute the CLI part of William's first workaround...

" One workaround would be delete the plugin jail, delete/recreate the plugins dataset and from SSH/CLI:
# sqlite3 /data/freenas-v1.db "delete from plugins_plugins" "

Worst comes to worst, I'll just re-flash my box again.

Thanks guys for making these plugins work!! I think ability to add plugins takes Freenas to a whole new level!! I can't wait to see what plugins come down the road.

Cheers to the FREENAS TEAM!!!
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
You need to enter a DNS server in your global network settings in the GUI. OpenDNS is 208.67.222.222

Yep, thanks, solved that. =) But, now I keep having this issue : I still seem to be stuck at the "gathering metadata" stage when downloading a torrent. Also, I still have this weird Unauthorized User issue with Transmission-Remote-GUI. Any ideas? If I access the settings in the Web GUI, it does say that port 51413 is Closed, but I don't know how to open it. I've port forwarded it, but...?

Also, interestingly enough, the web controls (via the actual web GUI, not Remote-GUI) don't work when logged in via a local IP address:9091, but work when using my actual IP:9091. Weird...?

P.S. - Those duplicate posts are funnier than anything else, don't worry - but they are hilarious. =))) They're also quite good for your post count, I suppose...=)))
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
I'm a newbie to the CLI so i'm not sure exactly how to execute the CLI part of William's first workaround...

" One workaround would be delete the plugin jail, delete/recreate the plugins dataset and from SSH/CLI:
# sqlite3 /data/freenas-v1.db "delete from plugins_plugins"

What you do is, in the GUI, delete the jail entirely, and then delete both datasets (Plugins and Jail). Re-create the datasets and SSH into the box (or, I suppose, go into the Shell via the GUI....I think that would work, with 8.2?), and then just paste this :

sqlite3 /data/freenas-v1.db "delete from plugins_plugins"

and run by pressing Enter. To paste via PuTTy, just right click. It'll paste automatically. Then, re-install the jail, and re-install Transmission via that wonderful new GUI option they have, that I described earlier.

Give me a shout if you need more help, I'll do what (little!) I can. =)
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
With an authentication routine set up, the Remote-GUI thing works fine. Now, I only have to sort out why the darn thing can't connect to the tracker! Port is being reported closed by Transmission, but canyouseeme.org reports that my port 51413 is open. So, the problem is right here somewhere.
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
minidlna plugin not working

I have done a fresh install of everything 3 times now and followed the instructions for setting up the plugin jail and then installing the plugin and everything seemed to go fine but I cannot start the plugin. Every time I click the buttiin to turn it on it just spins for a min then still says off.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I'm almost afraid to reply, I don't want to start another 2 pages of uncontrolled posts! ;)

@pjalm, I can confirm what's happening to you, same problem here.

I opened a shell from the GUI and "jexec"d into the jail and looked at the minidlna.log file. It looks like it's unable to start because:

[2012/04/20 08:05:44] minidlna.c:324: fatal: ERROR: Failed to open sqlite database! Exiting...


I just opened a ticket for it, https://support.freenas.org/ticket/1475
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
thx for the quick reply, I guess we have to wait for the next beta for the fixes then.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Probably for a proper fix, but there could be a workaround until then. It's still beta, and this release is loaded with changes so it's kind of expected. If there's not a workaround by the time I wake up tomorrow, I'll see if I can figure out a workaround.
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
wow ty so much... if I knew more about how to do it I would give it a try too but I have no clue how to get around a unix based system other then OS X that is. I was just hoping to be able to use the DLNA server again and switch from using OSX Server back to FreeNAS.
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
i just tried that a few minutes ago and couldn't find the dlna service... i will try it again. thx
 

pjalm

Dabbler
Joined
Jan 11, 2012
Messages
11
ok just tried again and still can't find it... where is the service hiding for the dlna?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
pjalm,

Cubix has kind of mislead you unintentionally. The only way to use MiniDLNA in 8.04 is the command line, not with the GUI. If you can wait til tomorrow I think a workaround should be possible with 8.2.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Update on this : just added my router's IP to the Name Server 1 box in Global Configuration for the Interface - that at least solved my Ping and e-mail problems. =) I guess that that changed as soon as I went static on the interface, and I hadn't put that in. OK, so that's done. But, I still seem to be stuck at the "gathering metadata" stage when downloading a torrent. Also, I still have this weird Unauthorized User issue with Transmission-Remote-GUI. Any pointers?

For DJLax : No, no CLI required. =) Once the jail is installed, you can go to Services. One of the tabs there will be Plugins, and one of the buttons in there will be Install Plug-Ins. Point to your PBI file, and you're golden. Works like a charm.

Did you try restarting the box? I think dns is not copied for the jail when you change it on-the-fly...
Or at least restarting plugins service...

To check it out:

# jls
Find the jail id
# jexec <jailid> csh
# ping google.com
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I have done a fresh install of everything 3 times now and followed the instructions for setting up the plugin jail and then installing the plugin and everything seemed to go fine but I cannot start the plugin. Every time I click the buttiin to turn it on it just spins for a min then still says off.

Did you try this:

# jexec 1 csh (or change 1 by the number you get from jls)
# chown -R dlna:dlna /var/db/minidlna

Then try to start minidlna
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
William,

What things changed with the plugins that caused them to be re-written?

I'm just curious for those of us that started to create plugins for Beta-2 so we will know what needs to be corrected.

Sorry protosd, this message has slipped my eyes yesterday...

The API has changed slightly...
The major change is related to the authentication, now once the plugin is installed OAuth2 consumer and secret keys are generated and put in PBIDIR/.oauth. All the RPC calls from within plugins are done using JSON-RPC with OAuth2.
The url for the plugins has changed as well, now it is in the form:

/plugins/<pluginname>/
-> _s/<name> - For reserved actions/requests that the host do for the GUI, e.g. _s/start to start the service, _s/stop to stop, _s/treemenu to query for tree menu items
-> <anything>/<anything> - Any view you want to make for the plugin

This url has not yet settled completely, we are discussing about adding a version to the API in that url.

Also, the plugin new also accepts a hook for nginx: PBIDIR/nginx_location, anything under this file will be added to the nginx configuration file for the plugin location, this let you setup redirect rules for the plugin and add new FastCGI params.

All the plugins were rewritten using a framework, transmission and firefly use Django, minidlna uses PHP 5 + Zend Framework.

I'm probably missing something but that's pretty much it, along with dozens of bug fixes.

We'll see about releasing a BETA4 next week or so fixing the new bugs found.
 

djlax152

Dabbler
Joined
Mar 15, 2012
Messages
48
What you do is, in the GUI, delete the jail entirely, and then delete both datasets (Plugins and Jail). Re-create the datasets and SSH into the box (or, I suppose, go into the Shell via the GUI....I think that would work, with 8.2?), and then just paste this :

sqlite3 /data/freenas-v1.db "delete from plugins_plugins"

and run by pressing Enter. To paste via PuTTy, just right click. It'll paste automatically. Then, re-install the jail, and re-install Transmission via that wonderful new GUI option they have, that I described earlier.

Give me a shout if you need more help, I'll do what (little!) I can. =)

Thanks for the Help silver, I get " bash: sqlite3: command not found " when I run this in the CLI, I'm tying to do it from the shell in the GUI.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Did you try restarting the box? I think dns is not copied for the jail when you change it on-the-fly...
Or at least restarting plugins service...

To check it out:

# jls
Find the jail id
# jexec <jailid> csh
# ping google.com

And THAT was the problem right there, my friend!!! =) Many, many thanks. Transmission now seems to be working perfectly! =))

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.

(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?)

Thanks for the Help silver, I get " bash: sqlite3: command not found " when I run this in the CLI, I'm tying to do it from the shell in the GUI.

Oh Lord. =) That's beyond me, man. =) Hope that William or ProtoSD can swoop in and save the day here, cuz I'd be crying for my mom on this forum too if I had that. =)

A separate question : I had to manually start the Transmission service after I rebooted. Is this normal?
 
Status
Not open for further replies.
Top