SOLVED: Uninstall App

warfrog
Posts: 3
Joined: Thu Oct 04, 2012 2:48 pm

SOLVED: Uninstall App

Postby warfrog » Thu Oct 04, 2012 3:17 pm

The installation of web apps was not successful on my system in the way that the app only shows up in the webapp overview and not in the installed overview. I pasted the amahi-app-installer.log at the end of my post. I think that the following line is causing the problems because of my slow internet connection:
"/var/hda/platform/html/lib/system-utils.rb:66:in `run_script': run_script had to KILL this script. it was taking too long. sorry. (RuntimeError)"

On my harddisk are now folders named:
/var/hda/web-apps/subsonic/
/var/hda/web-apps/subsonic1/
/var/hda/web-apps/webmin/

The webmin app is working and for subsonic I get the "HTTP ERROR: 503", but that is another problem.

I want to uninstall these apps and remove the folders. This forum pointed me to a thread in which the manual uninstallation of apps is described, but I don’t understand how to use the "install-app" script for this task. Can somenone explain me how to use the script or is there another way to remove these apps?

Any help is welcome!
Daniel


amahi-app-installer.log:

======= app install begin @ Thu Oct 04 13:13:40 +0200 2012 ==========
Installing app id 2giemljjpb under /var/hda/platform/html ENV=production
Your HDA services have been restarted.
Your HDA services have been restarted.
App: Greyhole LogMon installed
======= app install end @ Thu Oct 04 13:13:48 +0200 2012 ==========
======= app install begin @ Thu Oct 04 15:14:18 +0200 2012 ==========
Installing app id 0xngz9kpr6 under /var/hda/platform/html ENV=production
App: OpenSSH installed
======= app install end @ Thu Oct 04 15:14:44 +0200 2012 ==========
======= app install begin @ Thu Oct 04 19:20:53 +0200 2012 ==========
Installing app id uicm8zt4hf under /var/hda/platform/html ENV=production
Your HDA services have been restarted.
Your HDA services have been restarted.
/var/hda/platform/html/lib/system-utils.rb:66:in `run_script': run_script had to KILL this script. it was taking too long. sorry. (RuntimeError)
from /var/hda/platform/html/script/../app/models/app.rb:252:in `install_bg'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `chdir'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `install_bg'
from /var/hda/platform/html/script/install-app:96:in `install_or_uninstall'
from /var/hda/platform/html/script/install-app:117:in `main'
from /var/hda/platform/html/script/install-app:129
NOTICE: redirected 'http://downloads.sourceforge.net/projec ... 00_all.deb' --> 'http://switch.dl.sourceforge.net/projec ... 00_all.deb' ...
NOTE: file /tmp/amahi-download-cache/ff10efdf678bc9698528fb88d150ee3667369919 written in cache
Vormals nicht ausgewähltes Paket webmin wird gewählt.
(Lese Datenbank ... 166285 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von webmin (aus webmin_1.600_all.deb) ...
webmin (1.600) wird eingerichtet ...
Webmin install complete. You can now login to https://hda:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Trigger für ureadahead werden verarbeitet ...
ureadahead will be reprofiled on next reboot

======= app install begin @ Thu Oct 04 19:40:12 +0200 2012 ==========
Installing app id uicm8zt4hf under /var/hda/platform/html ENV=production
Your HDA services have been restarted.
Your HDA services have been restarted.
NOTE: file /tmp/amahi-download-cache/ff10efdf678bc9698528fb88d150ee3667369919 picked up from cache.
(Lese Datenbank ... 189689 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von webmin 1.600 (durch webmin_1.600_all.deb) ...
Ersatz für webmin wird entpackt ...
webmin (1.600) wird eingerichtet ...
Webmin install complete. You can now login to https://hda:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Trigger für ureadahead werden verarbeitet ...
App: Webmin installed
======= app install end @ Thu Oct 04 19:41:22 +0200 2012 ==========
======= app install begin @ Thu Oct 04 19:57:55 +0200 2012 ==========
Installing app id qf1tweahyo under /var/hda/platform/html ENV=production
NOTICE: redirected 'http://downloads.sourceforge.net/projec ... 8.2.tar.gz' --> 'http://freefr.dl.sourceforge.net/projec ... 8.2.tar.gz' ...
NOTE: file /tmp/amahi-download-cache/991e362f02a1c387db65f1665d840b20bb11ea6b written in cache
Your HDA services have been restarted.
Your HDA services have been restarted.
NOTE: file /tmp/amahi-download-cache/48198d81df3e853e4e9f7d4db965dc7899a972a5 written in cache
NOTE: file /tmp/amahi-download-cache/286dc453ffd9e33ca76dc889e9ba07455fb43a78 written in cache
NOTE: file /tmp/amahi-download-cache/c22f3054836eec36a32ac57e16599b6b43b75687 written in cache
NOTE: file /tmp/amahi-download-cache/89df89d5b62045130e7cba568f5458300062cb7f written in cache
NOTE: file /tmp/amahi-download-cache/8bd0dbacf7279a6f6cb0b5ee2387998524cc258d written in cache
NOTE: file /tmp/amahi-download-cache/4d04b1db33133ecbc8d4b50fb7eeb491c70a80a0 written in cache
NOTE: file /tmp/amahi-download-cache/8517ffbf73665a213cba90ae509e2ce135c522b2 written in cache
App: Linfo installed
======= app install end @ Thu Oct 04 19:59:06 +0200 2012 ==========
======= app uninstall begin @ Thu Oct 04 20:50:32 +0200 2012 ==========
Uninstalling app id uicm8zt4hf under /var/hda/platform/html ENV=production
Stopping Webmin server in /usr/share/webmin
Your HDA services have been restarted.
App: Webmin uninstalled
======= app uninstall end @ Thu Oct 04 20:50:40 +0200 2012 ==========
======= app install begin @ Thu Oct 04 21:10:38 +0200 2012 ==========
Installing app id 2uslky9of5 under /var/hda/platform/html ENV=production
Your HDA services have been restarted.
Your HDA services have been restarted.
/var/hda/platform/html/lib/system-utils.rb:66:in `run_script': run_script had to KILL this script. it was taking too long. sorry. (RuntimeError)
from /var/hda/platform/html/script/../app/models/app.rb:252:in `install_bg'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `chdir'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `install_bg'
from /var/hda/platform/html/script/install-app:96:in `install_or_uninstall'
from /var/hda/platform/html/script/install-app:117:in `main'
from /var/hda/platform/html/script/install-app:129
NOTICE: redirected 'http://downloads.sourceforge.net/projec ... ic-4.7.deb' --> 'http://netcologne.dl.sourceforge.net/pr ... ic-4.7.deb' ...
NOTE: file /tmp/amahi-download-cache/b5b22183393716b1504dbb334a96e2f74cd29c8e written in cache
Vormals nicht ausgewähltes Paket subsonic wird gewählt.
(Lese Datenbank ... 190994 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von subsonic (aus subsonic-4.7.deb) ...
subsonic (4.7) wird eingerichtet ...
Adding system startup for /etc/init.d/subsonic ...
/etc/rc0.d/K99subsonic -> ../init.d/subsonic
/etc/rc1.d/K99subsonic -> ../init.d/subsonic
/etc/rc6.d/K99subsonic -> ../init.d/subsonic
/etc/rc2.d/S99subsonic -> ../init.d/subsonic
/etc/rc3.d/S99subsonic -> ../init.d/subsonic
/etc/rc4.d/S99subsonic -> ../init.d/subsonic
/etc/rc5.d/S99subsonic -> ../init.d/subsonic
Started Subsonic [PID 25777, /var/subsonic/subsonic_sh.log]
Trigger für ureadahead werden verarbeitet ...
ureadahead will be reprofiled on next reboot
======= app install begin @ Thu Oct 04 22:29:24 +0200 2012 ==========
Installing app id 2uslky9of5 under /var/hda/platform/html ENV=production
Your HDA services have been restarted.
Your HDA services have been restarted.
/var/hda/platform/html/lib/system-utils.rb:66:in `run_script': run_script had to KILL this script. it was taking too long. sorry. (RuntimeError)
from /var/hda/platform/html/script/../app/models/app.rb:252:in `install_bg'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `chdir'
from /var/hda/platform/html/script/../app/models/app.rb:251:in `install_bg'
from /var/hda/platform/html/script/install-app:96:in `install_or_uninstall'
from /var/hda/platform/html/script/install-app:117:in `main'
from /var/hda/platform/html/script/install-app:129
NOTICE: redirected 'http://downloads.sourceforge.net/projec ... ic-4.7.deb' --> 'http://freefr.dl.sourceforge.net/projec ... ic-4.7.deb' ...
NOTE: file /tmp/amahi-download-cache/b5b22183393716b1504dbb334a96e2f74cd29c8e written in cache
(Lese Datenbank ... 191004 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von subsonic 4.7 (durch subsonic-4.7.deb) ...
Ersatz für subsonic wird entpackt ...
Removing any system startup links for /etc/init.d/subsonic ...
/etc/rc0.d/K99subsonic
/etc/rc1.d/K99subsonic
/etc/rc2.d/S99subsonic
/etc/rc3.d/S99subsonic
/etc/rc4.d/S99subsonic
/etc/rc5.d/S99subsonic
/etc/rc6.d/K99subsonic
subsonic (4.7) wird eingerichtet ...
Adding system startup for /etc/init.d/subsonic ...
/etc/rc0.d/K99subsonic -> ../init.d/subsonic
/etc/rc1.d/K99subsonic -> ../init.d/subsonic
/etc/rc6.d/K99subsonic -> ../init.d/subsonic
/etc/rc2.d/S99subsonic -> ../init.d/subsonic
/etc/rc3.d/S99subsonic -> ../init.d/subsonic
/etc/rc4.d/S99subsonic -> ../init.d/subsonic
/etc/rc5.d/S99subsonic -> ../init.d/subsonic
Started Subsonic [PID 27412, /var/subsonic/subsonic_sh.log]
Trigger für ureadahead werden verarbeitet ...
ureadahead will be reprofiled on next reboot
ln: Symbolische Verknüpfung »/var/music\u201c konnte nicht angelegt werden: Die Datei existiert bereits

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Uninstall App

Postby bigfoot65 » Fri Oct 05, 2012 10:18 am

Recommend you uninstall the problem apps from the dashboard. Then go to /var/hda/web-apps directory and manually remove the folders if any are left behind for those apps. If they are not reflected in the apps->installed tab, just remove the directories.

Once done, reboot and try reinstall. Never try to install an app more than once without checking the /var/hda/web-apps folder. If it already exists, a second install will further complicate the problem. It is rare this happens, but it does sometimes.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

warfrog
Posts: 3
Joined: Thu Oct 04, 2012 2:48 pm

Re: Uninstall App

Postby warfrog » Fri Oct 19, 2012 11:09 pm

I tried what you said in your post but afterwards the dashboard is not reachable anymore. The system is powered on and working. I can lock in with putty and he resolves DNS adresses. Does someone has a hint how to get the dashboard back?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Uninstall App

Postby cpg » Sat Oct 20, 2012 3:59 am

Try this page on platform troubleshooting.

I know it's not a lot, and you have been looking at logs already ... this is a new log to look at for errors.

It's possible that /etc/http/conf.d/10*.conf files are wedging the apache configuration.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

warfrog
Posts: 3
Joined: Thu Oct 04, 2012 2:48 pm

Re: Uninstall App

Postby warfrog » Sat Oct 20, 2012 4:54 am

I tried the command from your link and get the following output:
http://paste.ubuntu.com/1291880/

After this command the link is pointing to problems with the apache webserver, so I tried to restart the apache (pasted in the end of this post). Two warnings for two webapps I installed apaired. My linux skills are not good enough to solve that problem on my own. Thanks in advance for your help.

I should mention, that between my first and second post, I reinstalled ubuntu and amahi. My last dashboard use, was to install three Apps: Monitorix, Linfo and Subsonic. While doing that subsonic leads to an app not apearing in the installed app tab (like in my first amahi installation) and I removed the directory as described in the second post. Monitorix seems to be installed fine regarding to the dashboard output.

bender@hda:/var/log/apache2$ /etc/init.d/apache2 restart | apaste
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
Warning: DocumentRoot [/var/hda/web-apps/subsonic/html] does not exist
Warning: DocumentRoot [/var/hda/web-apps/monitorix/html] does not exist
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Oct 20 13:41:36 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Oct 20 13:41:36 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
Warning: DocumentRoot [/var/hda/web-apps/subsonic/html] does not exist
Warning: DocumentRoot [/var/hda/web-apps/monitorix/html] does not exist
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Oct 20 13:41:36 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Oct 20 13:41:36 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
http://paste.ubuntu.com/1291914/
bender@hda:/var/log/apache2$

yoyo
Posts: 6
Joined: Thu Sep 30, 2010 1:43 pm

Re: Uninstall App

Postby yoyo » Thu May 16, 2013 12:30 pm

I am having this same issue and the instructions above are not working. I was in testing for this app so am wondering if there is an enviroment variable that needs to be changed back for me with this app. I have purchased the app and was able to install on an alterate instance without issue. Here is where I am at:

*Subsonic still showing in web-app list
*removed all folders pertaining to subsonic
*rebooted
*install never completes

Any help would be appreciated.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Uninstall App

Postby bigfoot65 » Thu May 16, 2013 1:02 pm

In order for uninstall to work, the folder /var/hda/web-apps/subsonic directory must exist. It should be owned by apache:users.

You cannot manually remove folders without using the dashboard uninstall or it will break things.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

yoyo
Posts: 6
Joined: Thu Sep 30, 2010 1:43 pm

Re: Uninstall App

Postby yoyo » Thu May 16, 2013 1:10 pm

OK back up a little more. I went to use subsonic and it was not loading. I asked in chat if anything was going on with it and I did not get a reply. I removed the app from the dashboard and it uninstalled at that time. I then tried to re-install and noticted it was now a paid app so I purchased it and did an install again but it gave me the same results on http://subsonic page. I asked in chat and they suggested removing the folders and doing the reboot as suggested in the on of the formum posts. That brings me to now. I did not go and try to remove folders initally and am trying to get it back up and running.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Uninstall App

Postby bigfoot65 » Thu May 16, 2013 2:04 pm

Sometimes the advice you receive in IRC chat is not the best. Sorry you received bad instructions. Most Amahi apps have their own directory and the uninstaller relies on that. If you just put it back and then try removing the app via the dashboard, it should uninstall.

Now to get it working, that may take some additional steps. You will need to check that the core of the app was uninstalled.

If it's Fedora, as root user do:

Code: Select all

yum remove subsonic
For Ubuntu, its:

Code: Select all

sudo apt-get remove subsonic
Hope that helps.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

yoyo
Posts: 6
Joined: Thu Sep 30, 2010 1:43 pm

Re: Uninstall App

Postby yoyo » Thu May 16, 2013 3:36 pm

Thanks for the response. I did add the folder and rebooted but the dashboard still sees it as available to install. I have pasted the log from the last attempt to install again. I also was able to uninstall the subsonic core with yum.

======= app install begin @ Thu May 16 16:18:23 -0600 2013 ==========
Installing app id 2uslky9of5 under /var/hda/platform/html ENV=production
WARNING: file /tmp/amahi-download-cache/ef15d9adaf3f0eab2fc1c06799b475b7a5a833c8 in cache was found to be corrupted! Discarding it.
NOTICE: redirected 'http://downloads.sourceforge.net/projec ... ic-4.8.rpm' --> 'http://hivelocity.dl.sourceforge.net/pr ... ic-4.8.rpm' ...
NOTE: file /tmp/amahi-download-cache/ef15d9adaf3f0eab2fc1c06799b475b7a5a833c8 written in cache
WARNING: primary downloaded file /tmp/amahi-download-cache/ef15d9adaf3f0eab2fc1c06799b475b7a5a833c8 did not pass signature check - got 36b536d45ce5460d300e3cf1c49d1ed3b92db87f, expected ef15d9adaf3f0eab2fc1c06799b475b7a5a833c8
NOTICE: redirected 'http://mirror.amahi.org/ef15d9adaf3f0ea ... b7a5a833c8' --> 'http://git.amahi.org/ef15d9adaf3f0eab2f ... b7a5a833c8' ...
NOTE: new file /tmp/amahi-download-cache/ef15d9adaf3f0eab2fc1c06799b475b7a5a833c8 from Amahi's cache written in the cache

Who is online

Users browsing this forum: No registered users and 14 guests