NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mherger
Feb 07, 2012Aspirant
Getting "Installation failed" on updates, even on success
Hi,
I'm working on an add-on which is returning a generic "Failed to install addon" (ADDON_INST_FAIL) error message when I install it on top of an existing installation (update). At the same time I'm mailed an "Addon Installation suceeded" mail. And it does indeed work as expected.
What is causing this spurious failure message? I tried to figure out the code which is triggering it. But I couldn't figure out what is calling that JS method. Is this something in remove.sh which might be causing it? But why would I then get the success message mailed?
Michael
I'm working on an add-on which is returning a generic "Failed to install addon" (ADDON_INST_FAIL) error message when I install it on top of an existing installation (update). At the same time I'm mailed an "Addon Installation suceeded" mail. And it does indeed work as expected.
What is causing this spurious failure message? I tried to figure out the code which is triggering it. But I couldn't figure out what is calling that JS method. Is this something in remove.sh which might be causing it? But why would I then get the success message mailed?
Michael
18 Replies
Replies have been turned off for this discussion
- mhergerAspirantOh, fwiw: I'm seeing this on firmwares 4.1.8 (NV+) up to the latest 5.3.3 (Duo v2)
- mdgm-ntgrNETGEAR Employee RetiredDo you have a link to your add-on?
- mhergerAspirantYes, it's all in our public repository:
http://svn.slimdevices.com/slim/7.7/trunk/platforms/readynas/addon_template/ - mdgm-ntgrNETGEAR Employee RetiredWhat ReadyNAS platform is that for. Is that the Sparc one?
So you see the same error on Sparc, x86 and ARM? - mhergerAspirant
mdgm wrote: What ReadyNAS platform is that for. Is that the Sparc one?
So you see the same error on Sparc, x86 and ARM?
We're using the same script for all three platforms. And yes, we're seeing that message on all of them.
What's odd is that we used to have an older package which was originally created for the good ol' sparc models. With that old package we would only get the error on 4.2+, but not on the sparc's 4.1.8. With the new package it's the same on all of them. - mdgm-ntgrNETGEAR Employee RetiredAh, I found the compiled add-on here: http://downloads.slimdevices.com/nightly/?ver=7.7
- mdgm-ntgrNETGEAR Employee RetiredWhen I run install.sh via the command line, I get an error:
sh install.sh
grep: /c/.squeezeboxserver/prefs/server.prefs: No such file or directory
Making sure Logitech Media Server is stopped already: No squeezeboxserve found running; none killed.
Starting Logitech Media Server: .
I'll try running it again to simulate an upgrade.
Edit: no problems with update via command line. - mhergerAspirantThanks for the hint - yeah, will check for the file's existence.
How would I unpack an addon so I could run the script manually? It's not a simple tarball, is it? - WhoCares_MentorMost likely cause is that you're restarting Apache either in install.sh or remove.sh (the latter being the most likely cause). This will interrupt the installation process which itself is a subprocess of Apache in such a way that it will emit the "Installation failed" message. To fix this, do NOT restart Apache using either the "kill ..." or the "-k restart" method. Instead use "-k graceful" which will only restart those Apache processes that aren't occupied with a task immediately. Thus, the install subprocess will finish normally first and once that it is done it will also restart.
-Stefan
BTW: This problem currently should be specific o the ARM platform so I'm wondering why you're seeing it on Sparc and x86 as well. - WhoCares_MentorAnd lest I forget: Another cause may be (depending on the firmware version) that the script produces an error somewhen during it's run (or in case of ARM: produces some sort of output to STDOUT). This also will trigger the "Installation failed" message.
-Stefan
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!