{"id":5553,"date":"2018-02-21T18:15:52","date_gmt":"2018-02-21T16:15:52","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5553"},"modified":"2018-02-21T18:15:52","modified_gmt":"2018-02-21T16:15:52","slug":"snap-interfaces-lists-wekan-connected-to-network-and-network-bind-not-hardware-observe","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/02\/21\/snap-interfaces-lists-wekan-connected-to-network-and-network-bind-not-hardware-observe\/","title":{"rendered":"snap interfaces lists &#8217;wekan&#8217; connected to network and network-bind, not hardware-observe"},"content":{"rendered":"<p><a class=\"sprite download-icon\" href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/snapd\/+bug\/1744718\/+attachment\/5059756\/+files\/snap-interfaces.txt\">Output of `snap interfaces` during `snap install wekan`<\/a> <a class=\"sprite edit action-icon\" href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/snapd\/+bug\/1744718\/+attachment\/5059756\">Edit<\/a> (2.4 KiB, text\/plain)<\/p>\n<p>The Apparmor denial seems to no longer occur with 2.31.1.<\/p>\n<p>`snap interfaces` lists &#8217;wekan&#8217; connected to network and network-bind, but not hardware-observe. I&#8217;m struggling with the correct syntax for manually connecting it to anything:<\/p>\n<p>root@saegusa:~# snap connect wekan :hardware-observe<br \/>\nerror: cannot resolve connection, plug snap name is empty<br \/>\nroot@saegusa:~# snap connect wekan:wekan :hardware-observe<br \/>\nerror: snap &#8221;wekan&#8221; has no plug named &#8221;wekan&#8221;<br \/>\nroot@saegusa:~# snap connect wekan: :hardware-observe<br \/>\nerror: invalid value: &#8221;wekan:&#8221; (want snap:name or snap)<br \/>\nroot@saegusa:~# snap connect :wekan :hardware-observe<br \/>\nerror: cannot resolve connection, plug snap name is empty<\/p>\n<p>`snap interfaces` does list a &#8217;wekan:mongodb-plug&#8217;, which (if I&#8217;m reading the output right) is unattached. Attempting to connect that to hardware observe:<\/p>\n<p>root@saegusa:~# snap connect wekan:mongodb-plug :hardware-observe<br \/>\nerror: cannot connect wekan:mongodb-plug (&#8221;content&#8221; interface) to core:hardware-observe<br \/>\n(&#8221;hardware-observe&#8221; interface)<\/p>\n<p>There&#8217;s also a &#8217;wekan:mongodb-slot&#8217;. Attempting to connect mongodb-plug to that:<\/p>\n<p>root@saegusa:~# snap connect wekan:mongodb-plug wekan:mongodb-slot<br \/>\nerror: snap &#8221;wekan&#8221; has &#8221;install-snap&#8221; change in progress<\/p>\n<p>That&#8217;s true, since I&#8217;m only able to see those two during the time that the installation is stuck.<\/p>\n<p>I&#8217;ll attach the full output of `snap interfaces` below. It&#8217;s the same output that `snap interfaces` produces on the VM without the issue (after installation, when the service is running).<\/p>\n<p>As for the other question, there are wekan-related commands running when it&#8217;s stuck (listing below). The service seems to be up and running already (I can open it in a browser) for the time it remains in the configuration phase, but when the hook times out it of course gets cancelled and the installation is undone.<\/p>\n<p>root@saegusa:~# ps aux | grep wekan<br \/>\nroot 10517 1.2 0.1 935608 23360 pts\/22 Sl+ 17:45 0:00 snap install wekan<br \/>\nroot 10782 0.0 0.0 18056 2760 ? Ss 17:45 0:00 \/bin\/bash \/snap\/wekan\/124\/bin\/mongodb-control<br \/>\nroot 10809 4.4 0.3 283812 54748 ? Sl 17:45 0:01 mongod &#8211;dbpath \/var\/snap\/wekan\/common &#8211;logpath \/var\/snap\/wekan\/common\/mongodb.log &#8211;logappend &#8211;journal &#8211;unixSocketPrefix \/var\/snap\/wekan\/124\/share &#8211;port 27019<br \/>\nroot 10811 0.0 0.0 18052 2892 ? S 17:45 0:00 \/bin\/bash \/snap\/wekan\/124\/meta\/hooks\/configure<br \/>\nroot 10871 0.0 0.0 18056 2676 ? Ss 17:45 0:00 \/bin\/bash \/snap\/wekan\/124\/bin\/wekan-control<br \/>\nroot 10898 7.6 0.6 1172036 103648 ? Sl 17:45 0:02 \/snap\/wekan\/124\/bin\/node main.js<br \/>\nroot 10975 0.0 0.0 15464 1012 pts\/23 S+ 17:46 0:00 grep &#8211;color=auto wekan<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m struggling with the correct syntax for manually connecting it to anything. There&#8217;s also a &#8217;wekan:mongodb-slot&#8217; and a &#8217;wekan:mongodb-plug&#8217;.<\/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-5553","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\/5553","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=5553"}],"version-history":[{"count":5,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5553\/revisions"}],"predecessor-version":[{"id":5559,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5553\/revisions\/5559"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}