× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: AddOn not working and cannot be removed

ygator
Aspirant

AddOn not working and cannot be removed

ReadyNAS Duo V2

I followed the instructions for creating an addon from http://www.readynas.com/?p=346.

I was able to install the addon. However, when trying to run it by clicking on save a spinner pops up and spins forever. Same goes for trying the remove button.

How can I remove this addon and how do you create an addon for the Duo V2?

Thanks,

YGator
Message 1 of 16
otivax
Aspirant

Re: AddOn not working and cannot be removed

The link that you has read is for frontview version 4.x.x. Duo v2 uses dashboard version 5.3.x. I think that addon install scripts are diferents.
Sorry for my english.

Enviado desde mi LG-P920
Message 2 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed

The addon SDK is the same for all ReadyNAS products. Sounds like there's a problem with your code somewhere.
Message 3 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

Thanks for the reply.

It is not my code. I just tried the code I linked to in my post.

Anyone ever try it on a Duo V2? Does it work?

I tried the code again and now I have two addons that don't work and cannot be removed.
Message 4 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed

So you didn't customise the install scripts etc. in any way?
Message 5 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

no. I just answered the questions from bin/create_addon.

There is no system update local so I installed it by going to Add-Ons, Add Add-On, browsing to it and clicking upload.
Message 6 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed


# cd /etc/frontview/addons
# ls
# sh ADDONNAME.remove
Message 7 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

Thanks that worked after having to install "Enable Root SSH Access".

If anyone has tried the test add-on for a Duo V2 and it worked let me know. If I don't get anyone having done so I will contact Netgear for help.
Message 8 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed

I would have thought you needed SSH access installed already to build an add-on.
Message 9 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

I did it from a different Linux system which the link I posted said you could do. After I installed SSH I went ahead and did it from the readynas with the same results.

I believe something is broke because when I look at /var/log/frontview/error.log I see the following errors:

ReadyNAS Started Up
[Wed Feb 13 18:18:51 2013] [notice] Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o DAV/2 Axis2C/1.6.0 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

Browsing to https://readnas/
[Wed Feb 13 18:19:09 2013] [error] [client 10.x.x.x] File does not exist: /frontview/dashboard/images/scroller/style1-lr.png, referer: https://readynas/admin/
[Wed Feb 13 18:19:09 2013] [error] [client 10.x.x.x] File does not exist: /frontview/dashboard/images/scroller/style1-tb.png, referer: https://readynas/admin/

Clicking Configure
[Wed Feb 13 18:20:57 2013] [error] [client 10.x.x.x] File does not exist: /frontview/dashboard/images/scroller/style1-tb.png, referer: https://readynas/admin/index.html
[Wed Feb 13 18:20:58 2013] [error] [client 10.x.x.x] File does not exist: /frontview/dashboard/images/scroller/style1-lr.png, referer: https://readynas/admin/index.html

Install AddOn
No Errors Output

Clicking AddOn
[Wed Feb 13 18:22:58 2013] [error] [client 10.x.x.x] File does not exist: /frontview/ui/resource/html/COOLADDON, referer: https://readynas/installed/installed.html?addon=COOLADDON&locale=en-us

Checking box putting in time and clicking Save
[Wed Feb 13 18:24:16 2013] [error] [client 10.x.x.x] File does not exist: /frontview/ui/resource/html/COOLADDON, referer: https://readynas/installed/installed.html?addon=COOLADDON&locale=en-us

Clicking Remove
[Wed Feb 13 18:25:27 2013] [error] [client 10.x.x.x] File does not exist: /frontview/ui/resource/html/COOLADDON, referer: https://readynas/installed/installed.html?addon=COOLADDON&locale=en-us
[Wed Feb 13 18:25:28 2013] [error] [client 10.x.x.x] File does not exist: /frontview/ui/resource/html/COOLADDON, referer: https://readynas/installed/installed.html?addon=COOLADDON&locale=en-us
Message 10 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

The style1-lr.png file can be found on my readynas at:
/frontview/dashboard/images/spinner/style1-lr.png
/frontview/dashboard/images/textfield/style1-lr.png
/frontview/dashboard/recovery/images/textfield/style1-lr.png

The style1-tb.png file cannot be found anywhere on my readynas, but similar file names can be found:
/frontview/dashboard/images/tooltip/style1-tbc.png
/frontview/dashboard/images/tooltip/style1-tbr.png
/frontview/dashboard/images/tooltip/style1-tbl.png

The files that are actually in /frontview/dashboard/images/scroller/ on my readynas are:
-rw------- 1 admin admin 152 2012-11-01 02:36 style1-bc.png
-rw------- 1 admin admin 149 2012-11-01 02:36 style1-bm.png
-rw------- 1 admin admin 160 2012-11-01 02:36 style1-c.png
-rw------- 1 admin admin 166 2012-11-01 02:36 style1-m.png

Those errors are not even related to the addon I tried to install.
Message 11 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

As for the error for the addon
All the addon files are located under /etc/frontview/addons NOT /frontview/ui/resource/html/COOLADDON
/var/run/COOLADDON.pid
/etc/frontview/apache/addons/COOLADDON.conf
/etc/frontview/addons/ui/COOLADDON
/etc/frontview/addons/ui/COOLADDON/COOLADDON_HANDLER.pl
/etc/frontview/addons/ui/COOLADDON/COOLADDON.js
/etc/frontview/addons/ui/COOLADDON/COOLADDON.html
/etc/frontview/addons/ui/COOLADDON/language
/etc/frontview/addons/ui/COOLADDON/language/ja
/etc/frontview/addons/ui/COOLADDON/language/ja/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/zh-tw
/etc/frontview/addons/ui/COOLADDON/language/zh-tw/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/en-us
/etc/frontview/addons/ui/COOLADDON/language/en-us/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/de
/etc/frontview/addons/ui/COOLADDON/language/de/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/fr
/etc/frontview/addons/ui/COOLADDON/language/fr/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/zh-cn
/etc/frontview/addons/ui/COOLADDON/language/zh-cn/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/language/ko
/etc/frontview/addons/ui/COOLADDON/language/ko/COOLADDON.str
/etc/frontview/addons/ui/COOLADDON/COOLADDON.xml
/etc/frontview/addons/bin/COOLADDON
/etc/frontview/addons/bin/COOLADDON/running.sh
/etc/frontview/addons/bin/COOLADDON/start.sh
/etc/frontview/addons/bin/COOLADDON/stop.sh
/etc/frontview/addons/bin/COOLADDON/COOLADDON_service
/etc/frontview/addons/COOLADDON.remove
Message 12 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

The errors I posted above are bugs in the following files:

For the image errors
/frontview/dashboard/index.html
/frontview/dashboard/dashboard.html
/frontview/dashboard/wizard.html

For the install errors
/frontview/dashboard/legacy/addons/installed/installed.html
/opt/installed/installed.html

Okay I have found some problems in the SDK located http://www.readynas.com/download/addons/addons_sdk.tgz that was causing it not to work.

addons_sdk\template\ADDON.xml
-----------------------------------------
<get_url>/addons/%ADDON%_HANDLER.pl</get_url>
<set_url>/addons/%ADDON%_HANDLER.pl</set_url>
should be changed to
<get_url>%ADDON%_HANDLER.pl</get_url>
<set_url>%ADDON%_HANDLER.pl</set_url>

addons_sdk\addon.config
-------------------------------
RESTART_APACHE="n"
should be changed to
RESTART_APACHE="y"

There is one more issue where it does not save the runtime seconds into /etc/default/services file.
I will look into that tomorrow.
Message 13 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed

You may find the SDK here useful: https://gitorious.org/readynas/frontview-sdk
Message 14 of 16
ygator
Aspirant

Re: AddOn not working and cannot be removed

Thanks, that works.
This SDK uses
<get_url>../addons/%ADDON%/%ADDON%_HANDLER.pl</get_url>
<set_url>../addons/%ADDON%/%ADDON%_HANDLER.pl</set_url>
which works and you don't need to restart apache.

Funny though that the photo addon that is included with the readnas uses %ADDON%_HANDLER.pl and even the third party HTOP does as well.

For some reason this SDK has commented out the code that has the "run time seconds" setting.
Message 15 of 16
mdgm-ntgr
NETGEAR Employee Retired

Re: AddOn not working and cannot be removed

The "run time seconds" value isn't needed. It's just part of the example add-on.
Message 16 of 16
Top Contributors
Discussion stats
  • 15 replies
  • 5110 views
  • 0 kudos
  • 3 in conversation
Announcements