Project

General

Profile

Bug #2208

installing some apps never finishes

Added by cpg over 3 years ago. Updated over 3 years ago.

Status:
Assigned
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
02/05/2017
Due date:
% Done:

0%


Description

example of this is gallery-2, where the app appears to install correctly if you look at /var/log/amahi-app-installer.log

yet the UI never finishes, and also the app is not working properly.

History

#1 Updated by bigfoot65 over 3 years ago

  • Assignee deleted (cpg)
  • Priority changed from Normal to High
  • Target version changed from amahi-10 to amahi-11

#2 Updated by vikasy over 3 years ago

I don't know how viable this solution might be but I was thinking of fixing this issue in the following way.

Using a sqlite-db or redis etc will require us to do a lot of changes. To avoid that we can do the following also if possible.

Presently the request for app install progress is done on http://hda/tab/apps/install_progress/<app-id>
This request gets handled by rails app but the request fails when app is restarting.

To fix that our browser can make a request to http://progress.amahi.net/app-id.html. Basically the installation script will write the status on a file in some directory. Even though passenger is restarting, httpd is still up and can handle the request. That's why we are writing a virtual host (for progress.amahi.net).

#3 Updated by cpg over 3 years ago

  • Assignee set to cpg
  • Target version changed from amahi-11 to amahi-10

There are other ways to handle coordination in Rails than using an external server or (much worse-performing) the file system.

I will try and work on this as soon as I get going with the current issues in amahi.org

Also available in: Atom