{"id":5528,"date":"2018-01-22T15:58:06","date_gmt":"2018-01-22T13:58:06","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5528"},"modified":"2018-01-22T15:59:05","modified_gmt":"2018-01-22T13:59:05","slug":"install-refresh-stuck-at-configure-hook-wekan","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/01\/22\/install-refresh-stuck-at-configure-hook-wekan\/","title":{"rendered":"Install\/refresh stuck at configure hook (Wekan)"},"content":{"rendered":"<p>Since some time over the holidays I&#8217;ve had problems refreshing\/installing the Wekan snap [1] on my home server and also my desktop. The installation stalls at the configuration phase, which on the surface looks a bit like <a class=\"bug-link\" title=\"core snap's configuration hangs on debian | openSUSE | mainline kernel\" href=\"https:\/\/bugs.launchpad.net\/bugs\/1674193\">bug #1674193<\/a> [2], but here core gets installed just fine, and the hang occurs just alike if I first install just core, then the `wekan` snap separately.<\/p>\n<blockquote><p>14.52 jani@saegusa:~$ sudo snap install wekan<br \/>\n[sudo] salasana henkil\u00f6lle jani:<br \/>\nerror: cannot perform the following tasks:<br \/>\n&#8211; Run configure hook of &#8221;wekan&#8221; snap if present (run hook &#8221;configure&#8221;: &lt;exceeded maximum runtime of 5m0s&gt;)<\/p><\/blockquote>\n<p>Installing other snaps works (the couple that I tried just to be able to say this did anyway).<\/p>\n<p>I&#8217;ve reported this on the Wekan snap Github page [3], but there&#8217;s been no confirmation from anyone else affected so far. Also, I&#8217;m unable to reproduce this myself in a VM and on at least one other (physical) desktop I have access to.<\/p>\n<p>So naturally I&#8217;ve looked for differences between these systems, but so far the only correlating one I&#8217;m pretty sure of is an Apparmor denial:<\/p>\n<blockquote><p>apparmor=&#8221;DENIED&#8221; operation=&#8221;open&#8221; profile=&#8221;snap.wekan.mongodb&#8221; name=&#8221;\/sys\/block\/&#8221; pid=9478 comm=&#8221;mongod&#8221; requested_mask=&#8221;r&#8221; denied_mask=&#8221;r&#8221; fsuid=0 ouid=0<\/p><\/blockquote>\n<p>The two systems where Apparmor denies mongodb&#8217;s access to \/sys\/block get stuck at the configure hook, whereas systems that don&#8217;t deny access finish the configuration (and installation) successfully.<\/p>\n<p>I have not tweaked any Apparmor configuration on any of these systems prior to this issue cropping up (not that I can remember anyway). I&#8217;ve also not touched anything snap-related, as Wekan was one of the first snaps I&#8217;ve ever tried and is (or would be) the only one (besides core) currently installed on these systems.<\/p>\n<p>All systems are running Ubuntu 16.04, with my (affected) desktop having both HWE and -proposed enabled, my (affected) server running a 4.4-series kernel (no HWE or -proposed) and the other (unaffected) desktop having HWE but no -proposed. The (unaffected) VM starts with kernel 4.4 and remains unaffected if I upgrade it with HWE.<\/p>\n<p>I&#8217;m submitting this from the (HWE+proposed-enabled) desktop, so any logs attached here are from one of the two affected systems. I&#8217;ll of course provide other logs too if requested.<\/p>\n<p>* [1] <a href=\"https:\/\/snapcraft.io\/wekan\/\" rel=\"nofollow\">https:\/\/snapcraft.io\/wekan\/<\/a><br \/>\n* [2] <a href=\"https:\/\/bugs.launchpad.net\/snappy\/+bug\/1674193\" rel=\"nofollow\">https:\/\/bugs.launchpad.net\/snappy\/+bug\/1674193<\/a><br \/>\n* [3] <a href=\"https:\/\/github.com\/wekan\/wekan-snap\/issues\/25\" rel=\"nofollow\">https:\/\/github.com\/wekan\/wekan-snap\/issues\/25<\/a><\/p>\n<p>ProblemType: Bug<br \/>\nDistroRelease: Ubuntu 16.04<br \/>\nPackage: snapd 2.29.4.2<br \/>\nProcVersionSignature: Ubuntu 4.13.0-30.33~16.04.1-generic 4.13.13<br \/>\nUname: Linux 4.13.0-30-generic x86_64<br \/>\nApportVersion: 2.20.1-0ubuntu2.15<br \/>\nArchitecture: amd64<br \/>\nCurrentDesktop: Unity<br \/>\nDate: Mon Jan 22 15:44:20 2018<br \/>\nInstallationDate: Installed on 2016-10-13 (466 days ago)<br \/>\nInstallationMedia: Ubuntu-Server 16.04.1 LTS &#8221;Xenial Xerus&#8221; &#8211; Release amd64 (20160719)<br \/>\nSourcePackage: snapd<br \/>\nUpgradeStatus: No upgrade log present (probably fresh install)<br \/>\nmtime.conffile..etc.X11.Xsession.d.65snappy: 2018-01-19T18:18:12.001969<br \/>\nmtime.conffile..etc.apparmor.d.usr.lib.snapd.snap-confine.real: 2018-01-22T15:46:34.793893<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The installation stalls at the configuration phase. The only hint I&#8217;ve found so far is an Apparmor denial of \/sys\/block access for snap.wekan.mongodb.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14065,14051,14042],"class_list":["post-5528","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-apparmor","tag-snap","tag-wekan","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5528"}],"version-history":[{"count":7,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5528\/revisions"}],"predecessor-version":[{"id":5536,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5528\/revisions\/5536"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}