Bug #1225

app install issue with "Directory not empty - ../html"

Added by cpg almost 8 years ago. Updated almost 8 years ago.

Target version:
Start date:
Due date:
% Done:



this is a common pattern of failure we're seeing


Subject: App install error for ownCloud


#<Errno::ENOTEMPTY: Directory not empty - ../html>


#<Errno::ENOTEMPTY: Directory not empty - ../html>,
/var/hda/platform/html/app/models/app.rb:434:in `rmdir',
/var/hda/platform/html/app/models/app.rb:434:in `block (2 levels) in install_webapp',
/var/hda/platform/html/app/models/app.rb:429:in `chdir',
/var/hda/platform/html/app/models/app.rb:429:in `block in install_webapp',
/var/hda/platform/html/app/models/app.rb:426:in `chdir',
/var/hda/platform/html/app/models/app.rb:426:in `install_webapp',
/var/hda/platform/html/app/models/app.rb:194:in `install_bg',
/var/hda/platform/html/script/install-app:99:in `install_or_uninstall',
/var/hda/platform/html/script/install-app:120:in `main',
/var/hda/platform/html/script/install-app:132:in `<main>'


#1 Updated by cpg almost 8 years ago

  • Target version set to amahi-7-1

#2 Updated by bigfoot65 almost 8 years ago

Is this from trying to install the app while another version is installed? Since there are 3 ownCloud versions with each being directory owncloud, I could see this happening.

Of course only 1 is LIVE and the others are ALPHA I believe. Guess the directory should be changed for each to prevent this problem if that is the cause.

#3 Updated by cpg almost 8 years ago

no, these are regular users, having trouble. i see errors in the last few weeks for:

  • ownCloud
  • uTorrent (this one got me looking and i ended up regretting it)
  • AjaxPlorer
  • Blog
  • CouchPotato
  • SABnzbd Plus
  • Sickbeard

the pattern could be something like this (facts and speculation mixed together):

  • first the user installs the app (no idea if it fails or not). fact
  • then the user installs again the app without uninstalling. speculation - no idea why
  • there is no debug report to know of for the first attempt to install, so it's not clear why the reason the install was done
  • it's possible the user refreshed the page and clicked on install again, while the app was installing in the background?
  • i believe the second time the app is somehow partially installed and the html/ dir is not empty
  • we have a debug report that shows the dir not empty for ../html. (fact)

#4 Updated by bigfoot65 almost 8 years ago

I think I understand the issue now. I have seen it a few times where an app fails to install. You then refresh the browser and it comes back with another chance to install. Sometimes the second time it works, but says it didn't.

Then refreshing the browser again under available yields another chance to install. Unless you check the installed, you don't realize it did install. That would make it try to install again even though it is installed.

Make sense?

Also available in: Atom