Page 1 of 1

Amahi6 can't uninstall apps

Posted: Wed Mar 02, 2011 11:35 am
by inquam
After I upgraded Amahi to Amahi6 I'm not able to uninstall any apps. It stops at "Preparing to uninstall ..." and just sits there. Any ideas?

Re: Amahi6 can't uninstall apps

Posted: Wed Mar 02, 2011 11:39 am
by inquam
The app install log shows

Code: Select all

/usr/lib/ruby/gems/1.8/gems/activeresource-2.3.4/lib/active_resource/connection.rb:194:in `handle_response': Failed with 404 Not Found (ActiveResource::ResourceNotFound) from /usr/lib/ruby/gems/1.8/gems/activeresource-2.3.4/lib/active_resource/connection.rb:173:in `request' from /usr/lib/ruby/gems/1.8/gems/activeresource-2.3.4/lib/active_resource/connection.rb:138:in `get' from /usr/lib/ruby/gems/1.8/gems/activeresource-2.3.4/lib/active_resource/base.rb:658:in `find_single' from /usr/lib/ruby/gems/1.8/gems/activeresource-2.3.4/lib/active_resource/base.rb:586:in `find' from /var/hda/platform/html/script/../app/models/app.rb:279:in `uninstall_bg' from /var/hda/platform/html/script/install-app:97:in `install_or_uninstall' from /var/hda/platform/html/script/install-app:112:in `main' from /var/hda/platform/html/script/install-app:124 ======= app uninstall begin @ Wed Mar 02 18:46:39 +0100 2011 ========== Uninstalling app id csjnit42fq under /var/hda/platform/html ENV=production
And I have tried every single app I have installed. The behavior is the same on all.

Update:
My current install of Transmission also complains about "Unable to save resume file, no such file or directory", so I'm starting to wonder if the permissions has gotten screwed all over my server by the upgrade or something?

Trying a hda-update-webapps showed another problem

Code: Select all

[root@localhost hda]# hda-update-webapps mkdir -p amahi_tmp_name processing dir: extplorer processing dir: foffice processing dir: keepass processing dir: mediawiki processing dir: phpmyadmin processing dir: transmission processing dir: videos5 processing dir: webmin rmdir amahi_tmp_name /var/hda/platform/html/script/runner 'Webapp.find(:all).each { |w| w.save! }' /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/runner.rb:48: /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:585:in `real_connect': Unknown database 'hda_development' (Mysql::Error) from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:585:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:199:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:71:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:71:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:3106:in `quoted_table_name' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1684:in `construct_finder_sql' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1548:in `find_every' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:615:in `find' from (eval):1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval' from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/runner.rb:48 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/hda/platform/html/script/runner:3
Not sure if it's related... since it checks for a hda_development schema in the database.


Installing a new app works fine and if I try to uninstall that after it's been installed that works fine to. So it ONLY seem to affect apps that were installed before the Amahi6 upgrade was applied.

Re: Amahi6 can't uninstall apps

Posted: Wed Mar 02, 2011 7:29 pm
by cpg
correct, only apps installed before the upgrade.

working on it ...
ETA 3 days ...

Re: Amahi6 can't uninstall apps

Posted: Sun Mar 06, 2011 1:56 am
by inquam
Seems to be able to uninstall now. But sometimes it doesn't look finished in the web gui but the log sais the uninstall is complete. Also, uninstalled applications does NOT become available for installation under available apps again. I tried with webmin, video5, transmission and feng office. None of these applications show up under available apps after being uninstalled.