Cannot run plugin

Status
Not open for further replies.

Thomas102

Explorer
Joined
Jun 21, 2017
Messages
83
Hi,

I tried with 5 differents plugins, reinstalled FreeNAS 11.0 U2 from scratch and I can't get any plugin to work.
Actually, they never appears in the left tree and I cannot start them.

Here are some logs (/var/log/messages).
First I install headphones plugins:

Code:
Jul 27 15:43:45 RMM44242039 warden: Building new Jail... Please wait...
Jul 27 15:43:45 RMM44242039 warden: zfs clone lsi-vd0/jails_2/.warden-template-p  luginjail@clean lsi-vd0/jails_2/headphones_1
Jul 27 15:43:47 RMM44242039 warden: Success!
Jul 27 15:43:47 RMM44242039 warden: Jail created at /mnt/lsi-vd0/jails_2/headpho  nes_1
Jul 27 15:43:48 RMM44242039 epair1a: Ethernet address: 02:ff:20:00:0a:0a
Jul 27 15:43:48 RMM44242039 epair1b: Ethernet address: 02:ff:70:00:0b:0b
Jul 27 15:43:48 RMM44242039 kernel: epair1a: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1a: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1b: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1b: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1a: promiscuous mode enabled
Jul 27 06:44:06 RMM44242039 uwsgi: jexec 3 /usr/pbi/headphones-amd64/control sto  p
Jul 27 06:44:06 RMM44242039 notifier: jexec 3 /usr/pbi/headphones-amd64/control  start 10.66.242.234 12347


Then left tree is refreshing but the plugin didn't show up :
Code:
Jul 27 06:44:26 RMM44242039 uwsgi: [freeadmin.navtree:562] Couldn't retrieve http://10.66.242.39/plugins/headphones/2/_s/treemenu: timed out
Jul 27 06:44:26 RMM44242039 uwsgi: [freeadmin.navtree:562] Couldn't retrieve http://10.66.242.39/plugins/s3cmd/1/_s/treemenu: timed out


I go to Plugins/Installed and start the plugin. Everythings looks likes ok except that when I go back to this page the status is OFF again:
Code:
Jul 27 06:48:11 RMM44242039 uwsgi: [plugins.utils:88] Couldn't retrieve http://10.66.242.39/plugins/s3cmd/1/_s/status: timed out
Jul 27 06:48:11 RMM44242039 uwsgi: [plugins.utils:88] Couldn't retrieve http://10.66.242.39/plugins/headphones/2/_s/status: timed out


I tried to download the ressources from shell, no issue.
Code:
root@RMM44242039:/mnt/lsi-vd0 # wget -O - http://10.66.242.39/plugins/headphones/2/_s/status
--2017-07-27 15:51:21--  http://10.66.242.39/plugins/headphones/2/_s/status
Connecting to 10.66.242.39:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

-  [<=>  ]  0  --.-KB/s  {-  [ <=>  ]  67  --.-KB/s  in 0s

2017-07-27 15:51:21 (4.38 MB/s) - written to stdout [67]

root@RMM44242039:/mnt/lsi-vd0 # wget -O - http://10.66.242.39/plugins/headphones/2/_s/treemenu
--2017-07-27 15:51:38--  http://10.66.242.39/plugins/headphones/2/_s/treemenu
Connecting to 10.66.242.39:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

-  [<=>  ]  0  --.-KB/s  [{"name": "Headphones", "url": "/plugins/headphones/2/open/", "append_to": "plugins", "kwargs": {"plugin_id": "2", "plugin_name": "headphones"}, "type": "pluginsfcgi", "icon": "/p-  [ <=>  ]  215  --.-KB/s  in 0s

2017-07-27 15:51:38 (15.5 MB/s) - written to stdout [215]

root@RMM44242039:/mnt/lsi-vd0 #


I have no clue why the shell is able to download the ressource and the UI is not ?
Also tested to ping FreeNAS from the plugin jail, no issue.

Thanks for your help.
 

Phil2112

Dabbler
Joined
Jun 13, 2016
Messages
16
Hi,

I tried with 5 differents plugins, reinstalled FreeNAS 11.0 U2 from scratch and I can't get any plugin to work.
Actually, they never appears in the left tree and I cannot start them.

Here are some logs (/var/log/messages).
First I install headphones plugins:

Code:
Jul 27 15:43:45 RMM44242039 warden: Building new Jail... Please wait...
Jul 27 15:43:45 RMM44242039 warden: zfs clone lsi-vd0/jails_2/.warden-template-p  luginjail@clean lsi-vd0/jails_2/headphones_1
Jul 27 15:43:47 RMM44242039 warden: Success!
Jul 27 15:43:47 RMM44242039 warden: Jail created at /mnt/lsi-vd0/jails_2/headpho  nes_1
Jul 27 15:43:48 RMM44242039 epair1a: Ethernet address: 02:ff:20:00:0a:0a
Jul 27 15:43:48 RMM44242039 epair1b: Ethernet address: 02:ff:70:00:0b:0b
Jul 27 15:43:48 RMM44242039 kernel: epair1a: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1a: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1b: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1b: link state changed to UP
Jul 27 15:43:48 RMM44242039 kernel: epair1a: promiscuous mode enabled
Jul 27 06:44:06 RMM44242039 uwsgi: jexec 3 /usr/pbi/headphones-amd64/control sto  p
Jul 27 06:44:06 RMM44242039 notifier: jexec 3 /usr/pbi/headphones-amd64/control  start 10.66.242.234 12347


Then left tree is refreshing but the plugin didn't show up :
Code:
Jul 27 06:44:26 RMM44242039 uwsgi: [freeadmin.navtree:562] Couldn't retrieve http://10.66.242.39/plugins/headphones/2/_s/treemenu: timed out
Jul 27 06:44:26 RMM44242039 uwsgi: [freeadmin.navtree:562] Couldn't retrieve http://10.66.242.39/plugins/s3cmd/1/_s/treemenu: timed out


I go to Plugins/Installed and start the plugin. Everythings looks likes ok except that when I go back to this page the status is OFF again:
Code:
Jul 27 06:48:11 RMM44242039 uwsgi: [plugins.utils:88] Couldn't retrieve http://10.66.242.39/plugins/s3cmd/1/_s/status: timed out
Jul 27 06:48:11 RMM44242039 uwsgi: [plugins.utils:88] Couldn't retrieve http://10.66.242.39/plugins/headphones/2/_s/status: timed out


I tried to download the ressources from shell, no issue.
Code:
root@RMM44242039:/mnt/lsi-vd0 # wget -O - http://10.66.242.39/plugins/headphones/2/_s/status
--2017-07-27 15:51:21--  http://10.66.242.39/plugins/headphones/2/_s/status
Connecting to 10.66.242.39:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

-  [<=>  ]  0  --.-KB/s  {-  [ <=>  ]  67  --.-KB/s  in 0s

2017-07-27 15:51:21 (4.38 MB/s) - written to stdout [67]

root@RMM44242039:/mnt/lsi-vd0 # wget -O - http://10.66.242.39/plugins/headphones/2/_s/treemenu
--2017-07-27 15:51:38--  http://10.66.242.39/plugins/headphones/2/_s/treemenu
Connecting to 10.66.242.39:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘STDOUT’

-  [<=>  ]  0  --.-KB/s  [{"name": "Headphones", "url": "/plugins/headphones/2/open/", "append_to": "plugins", "kwargs": {"plugin_id": "2", "plugin_name": "headphones"}, "type": "pluginsfcgi", "icon": "/p-  [ <=>  ]  215  --.-KB/s  in 0s

2017-07-27 15:51:38 (15.5 MB/s) - written to stdout [215]

root@RMM44242039:/mnt/lsi-vd0 #


I have no clue why the shell is able to download the ressource and the UI is not ?
Also tested to ping FreeNAS from the plugin jail, no issue.

Thanks for your help.

Can you start the plugin from the command line? I'm not familiar with headphones, but for most it is:
service x start, so possibly service headphones start

I've had problems using the GUI for starting and stopping plugins lately, so I've started just using the command line to start, stop and check status.


ETA: Also make sure you added storage to the jail and have permissions set; and if you want the plugin to start when the jail starts also add the enable command -- again, don't know headphones, but should be something along the lines of headphones_enable="YES"

The only plugin I currently use is emby. To start and stop I simply go to the jail, click on the shell prompt and enter: service emby-server start (or stop, or status, etc)
 
Last edited:

Thomas102

Explorer
Joined
Jun 21, 2017
Messages
83
Thanks for your answer. I checked and the service is started.

root@headphones_1:/ # service headphones start
headphones already running? (pid=13327).
root@headphones_1:/ #

I'm new to freenas and never see a plugin working. I expected to be able to configure it through the left tree icon ?
 

Phil2112

Dabbler
Joined
Jun 13, 2016
Messages
16
It used to work well for me, but the GUI for plugins has not worked (at least for me) for quite a while, not sure why that is the case. If the service is running, then you should be able to access headphones. Again, I don't know that app, but for emby you simply navigate to the jail address -- http://[jail ip address]: port (with no space between the colon and port)

Emby uses port 8096. I don't know if headphones uses a specific port or if you can go to their site to set things up by simply navigating to the jail ip address. I would assume they use a particular port. There should be documentation if you google accessing headphones.

I agree that it's a little more work to have to use the command line for this now; I think when Freenas 11 is finished that all will work well again.
 

Thomas102

Explorer
Joined
Jun 21, 2017
Messages
83
Ok thanks for the data.

Actually I was looking for s3cmd plugin. I installed headphones to get logs because it looks like simple and I though it will be easier for me to debug the issue.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Do you have your gateway configured and nameservers?

Also what are your hardware specs?

Sent from my Nexus 5X using Tapatalk
 

Thomas102

Explorer
Joined
Jun 21, 2017
Messages
83
Hi,

Hardware is supermicro Dual Xeon E5620, 60GB ECC DDR3 that is 6-7 years old.
For disk I'm playing with 16x1TB SATA drives handled by a LSI9260 and 2 SSD by the motherboard.

Yes, default gateway and nameservers are sets.
The jail looks like to have full connectivity, it can resolve names and ping hosts (including freenas)

Thanks.
 
Last edited:

Phil2112

Dabbler
Joined
Jun 13, 2016
Messages
16
Thomas,

I looked at s3cmd a little and can't say I have an answer for you yet, but I did notice the following post about installing it from scratch on Freenas. http://www.inetpub.dk/index.php/wid...ote-synchronization-from-freenas-to-amazon-s3

You don't need to follow all the directions, aside from setting things up on the Amazon side, until you get to the configuration part. I could not get the plugin to 'start' with the gui and using the command line didn't help in the traditional way, but I'm not sure it matters all that much. Once you install the plugin call up the command line within the jail. If you try to configure it (even with the plugin 'off'): s3cmd --configure it will ask for the keys you created on Amazon. I don't have an Amazon AWS account, so I don't know what happens after that point, but it appears to be working properly by command line regardless of what the GUI reports for the status of plugin.

Maybe someone else with more experience with this plugin can help out, but I think it is worth a try following the instructions in the link above.

Unfortunately, after googling a little, it appears you will likely have to set things up with the command line anyway.

The pbi is located in the .plugins directory in your jail, though there is no need to change directory to access it.
 

Thomas102

Explorer
Joined
Jun 21, 2017
Messages
83
Thanks Phil,
I must admit I have plenty of things to do and no time to look at s3 plugin yet... But it will be usefull then.

I found the source of my issue : The http proxy. I had to remove it for the plugins to pop up in the three.
I'll submit a bug for this at freenas.
 
Status
Not open for further replies.
Top