Project

General

Profile

Bug #1583

Zoneminder Hang on unistall

Added by mcromig about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Apps
Target version:
Start date:
12/01/2014
Due date:
% Done:

0%


Description

I attempted to uninstall Zoneminder, yet it still appeared to be present in the both the dashboard and the Installed Apps section of my HDA web interface when I later logged into the HDA. I attempted to reinstall again from the web-app interface, and now the uninstaller hangs and says "Preparing to uninstall..." The log file is below.

Attempting the access Zoneminder from dashboard tile, which is still present, brings up a new Amahi log-in page. I am using Chrome as a web browwer.

var/hda/platform/html/app/models/app.rb:284:in `chdir': No such file or directory - /var/hda/web-apps/zm (Errno::ENOENT)
from /var/hda/platform/html/app/models/app.rb:284:in `uninstall_bg'
from /var/hda/platform/html/script/install-app:92:in `install_or_uninstall'
from /var/hda/platform/html/script/install-app:107:in `main'
from /var/hda/platform/html/script/install-app:119:in `<main>' ======= app uninstall begin @ 2014-12-01 19:24:50 -0500 ==========
Uninstalling app id yi7uxa8mlb under /var/hda/platform/html/script/.. ENV=production

History

#1 Updated by bigfoot65 about 5 years ago

  • Assignee changed from mcromig to cpg

The application directory /var/hda/web-apps/zm no longer exists.

#2 Updated by bigfoot65 about 5 years ago

This is extracted from the user's forum post:

I did try and uninstall multiple times, because ZM persisted as an installed App after the first uninstall.

I attempted to uninstall Zoneminder, yet it still appeared to be present in the both the dashboard and the Installed Apps section of my HDA web interface when I later logged into the HDA. I attempted to uninstall again from the web-app interface, and now the uninstaller hangs and says "Preparing to uninstall..."

#3 Updated by cpg about 5 years ago

  • Status changed from New to Feedback
  • Assignee changed from cpg to mcromig

can you try to do this in the command line, very carefully, as root, please:

mkdir -p /var/hda/web-apps/zm
chmod 777 /var/hda/web-apps/zm

and nothing else. after this please try to uninstall the app.

if it works, please close this bug, if not please assign it back to me.

#4 Updated by mcromig about 5 years ago

  • Status changed from Feedback to Closed

Yes, this worked. Thank you for your help.

#5 Updated by mcromig about 5 years ago

  • Status changed from Closed to Feedback

I was wrong. Upon rebooting the HDA, the original problem persisted.

#6 Updated by cpg about 5 years ago

original error as in ... cannot uninstall it?

#7 Updated by mcromig about 5 years ago

Yes. I entered the command line instructions in this thread and then uninstalled zoneminder using the web interface. This appeared to work correctly. Zonminder no longer appeared under the installed apps.

I rebooted the HDA, and zoneminder then appeared under the installed apps, again.

Here is the new log entry from /var/log/amahi-app-installer.log

======= app uninstall begin @ 2014-12-03 00:28:19 -0500 ==========
Uninstalling app id yi7uxa8mlb under /var/hda/platform/html/script/.. ENV=production
Stopping zoneminder service
Failed to issue method call: Unit zoneminder.service not loaded.
Disabling zoneminder service
Reloading systemctl daemon
Your HDA services have been restarted.
/var/hda/platform/html/vendor/bundle/ruby/gems/activerecord-4.1.4/lib/active_record/connection_adapters/mysql2_adapter.rb:83:in `escape': closed MySQL connection (Mysql2::Error)
from /var/hda/platform/html/vendor/bundle/ruby/gems/activerecord-4.1.4/lib/active_record/connection_adapters/mysql2_adapter.rb:83:in `quote_string'
from /var/hda/platform/html/vendor/bundle/ruby/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/quoting.rb:21:in `quote'
from /var/hda/platform/html/vendor/bundle/ruby/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:266:in `quote'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:591:in `quote'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:558:in `quoted'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/visitor.rb:22:in `visit'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:515:in `visit_Arel_Nodes_Equality'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/visitor.rb:22:in `visit'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:496:in `block in visit_Arel_Nodes_And'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:496:in `map'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:496:in `visit_Arel_Nodes_And'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/visitor.rb:22:in `visit'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:204:in `block in visit_Arel_Nodes_SelectCore'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:203:in `each'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:203:in `each_with_index'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:203:in `visit_Arel_Nodes_SelectCore'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/mysql.rb:41:in `visit_Arel_Nodes_SelectCore'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:163:in `block in visit_Arel_Nodes_SelectStatement'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:163:in `each'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/to_sql.rb:163:in `visit_Arel_Nodes_SelectStatement'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/mysql.rb:36:in `visit_Arel_Nodes_SelectStatement'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/visitor.rb:22:in `visit'
from /var/hda/platform/html/vendor/bundle/ruby/gems/arel-5.0.1.20140414130214/lib/arel/visitors/visitor.rb:5:in `accept'

#8 Updated by cpg about 5 years ago

i will be happy to help interactively, or even go in remotely and fix it, in the interest of finding bugs and get your machine to a steady state. come by the irc channel at http://talk.amahi.org and mention cpg. Set up the VPN or ssh access ahead of time if you are interested in remote help.

if not, please try uninstall it again and share what the log says.

#9 Updated by bigfoot65 almost 5 years ago

Any update to this mcromig?

#10 Updated by bigfoot65 over 4 years ago

  • Status changed from Feedback to Closed

No reply indicates issue resolved.

Also available in: Atom