<p dir="ltr">If there's a recommendation, I'd suggest recommending the last known stable, as the pace has been so fast that there are significant benefits of running a more recent version.</p>
<p dir="ltr">We also have a mechanism snaps can use to declare the dependency on certain aspects of snapd, but unfortunately the common dir had a couple of issues until it finally worked smoothly.</p>
<p dir="ltr">We should really support a more explicit:</p>
<p dir="ltr">    assumes: [snapd2.15]</p>
<p dir="ltr">and leave the individual feature flags for aspects that can indeed vary across environments.<br>
</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 21, 2016 11:53 PM, "Aaron Ogle" <aaron.ogle@rocket.chat> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Gustavo:</p>
<p dir="ltr">I'll ask them next time to update snapd through apt and reinstall our snap and see what happens.</p>
<p dir="ltr">Is there a fall back variable we can use for older versions?  Or a specific version of snap / snapd we should tell them they need?</p>
<p dir="ltr">Thanks,</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 21, 2016, 20:41 Gustavo Niemeyer <<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.<wbr>com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="m_7195365012140196624gmail_msg">Hey Aaron,</p>
<p dir="ltr" class="m_7195365012140196624gmail_msg">The most likely cause is, as you suspected, an out of date snapd. SNAP_COMMON was introduced some time after 16.04 (don't have exact version at hand right now).</p>
<p dir="ltr" class="m_7195365012140196624gmail_msg">With recent versions of snapd, the running infrastructure was significantly improved and simplified compared to 16.04 pristine, so it seems less likely to be a problem if up-to-date.</p>
<p dir="ltr" class="m_7195365012140196624gmail_msg">Please let us know if you find any other hints.<br class="m_7195365012140196624gmail_msg"></p>
<p dir="ltr" class="m_7195365012140196624gmail_msg">Gustavo</p>
<div class="gmail_extra m_7195365012140196624gmail_msg"><br class="m_7195365012140196624gmail_msg"><div class="gmail_quote m_7195365012140196624gmail_msg">On Oct 21, 2016 11:39 AM, "Aaron Ogle" <aaron.ogle@rocket.chat> wrote:<br type="attribution" class="m_7195365012140196624gmail_msg"><blockquote class="gmail_quote m_7195365012140196624gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="m_7195365012140196624gmail_msg">Didier:</p>
<p dir="ltr" class="m_7195365012140196624gmail_msg">Like I said its only happened to a few people, never had it personally.  One upgraded to 16.10 and it went away(got impatient 😀 I think).  Is there some piece of information I could get from them that might assist in the reproduction of the issue?</p>
<br class="m_7195365012140196624gmail_msg"><div class="gmail_quote m_7195365012140196624gmail_msg"><div dir="ltr" class="m_7195365012140196624gmail_msg">On Fri, Oct 21, 2016, 04:19 Didier Roche <<a class="m_7195365012140196624gmail_msg">didrocks@ubuntu.com</a>> wrote:<br class="m_7195365012140196624gmail_msg"></div><blockquote class="gmail_quote m_7195365012140196624gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113m_4424445109115040135moz-cite-prefix m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">Le 20/10/2016 à 17:36, Aaron Ogle a
      écrit :<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    </div>
    <blockquote type="cite" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
      <div dir="ltr" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">Hey guys,<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
      </div>
    </blockquote>
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    Hey Aaron,</div><div bgcolor="#FFFFFF" text="#000000" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <blockquote type="cite" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
      <div dir="ltr" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        With our Rocket.Chat server snap. We've had several cases now
        where users come to us trying to figure out why it hasn't
        started yet after installing.<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        Our snap: <a class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">https://github.com/RocketChat/<wbr>Rocket.Chat/blob/develop/.<wbr>snapcraft/stable/snapcraft.<wbr>yaml</a><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        rocketchat-mongo:<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        command: env LC_ALL=C mongod --smallfiles --dbpath=$SNAP_COMMON
        <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
      </div>
    </blockquote>
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"></div><div bgcolor="#FFFFFF" text="#000000" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    This is correct, and the generated wrapper (just checked, downloaded
    it from the store) is doing:<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    exec "env" LC_ALL=C mongod --smallfiles --dbpath=$SNAP_COMMON "$@"</div><div bgcolor="#FFFFFF" text="#000000" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <blockquote type="cite" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
      <div dir="ltr" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        After explaining to them how to get logs, it will say our mongo
        install is missing the dbpath.<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        The exact error they are getting:<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><span class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">Error
              parsing command line: the argument for option '--dbpath'
              should follow immediately after the equal sign</span><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          </div>
          <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><span class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
            </span></div>
          This seems like for some reason SNAP_COMMON isn't getting set.
          <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          </div>
          <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">I've confirmed that they are using version 2.15 of snap /
            snapd.</div>
          <div class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg"><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          </div>
          I also asked them to drop into the snap: sudo snap run --shell
          rocketchat-server<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
          Then do an: env to see if SNAP_COMMON is even set. From there
          it does seem to be set. <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
        </div>
      </div>
    </blockquote></div><div bgcolor="#FFFFFF" text="#000000" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    Is it the case as well for you? I just tried this and:<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    didrocks@tidus:~$ sudo snap run --shell rocketchat-server<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    root@tidus:/home/didrocks# env | grep SNAP_COMMON<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    SNAP_COMMON=/var/snap/<wbr>rocketchat-server/common<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    So, it's set for me, CCing Zyga who might have an idea if there are
    some cases where snap-confine doesn't set those variables…<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    <br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    Cheers,<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
    Didier<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
  </div>

--<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
Snapcraft mailing list<br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
<a class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">Snapcraft@lists.snapcraft.io</a><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
Modify settings or unsubscribe at: <a rel="noreferrer" class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br class="m_7195365012140196624m_-8821709682219554819m_-7238772605898644113gmail_msg m_7195365012140196624gmail_msg">
</blockquote></div><div dir="ltr" class="m_7195365012140196624gmail_msg">-- <br class="m_7195365012140196624gmail_msg"></div><div data-smartmail="gmail_signature" class="m_7195365012140196624gmail_msg"><div dir="ltr" class="m_7195365012140196624gmail_msg">
<div class="m_7195365012140196624gmail_msg"><br class="m_7195365012140196624gmail_msg"></div><div class="m_7195365012140196624gmail_msg"><table border="0" cellspacing="0" cellpadding="0" style="color:rgb(0,0,0);font-family:verdana;font-size:medium" class="m_7195365012140196624gmail_msg">
        <tbody class="m_7195365012140196624gmail_msg">
                <tr class="m_7195365012140196624gmail_msg">
                        <td style="padding-right:15px" class="m_7195365012140196624gmail_msg">
                                <img src="https://cdn-download.rocket.chat/email-signature.png?v=3" style="width:80px;display:block;margin-left:10px" class="m_7195365012140196624gmail_msg">
                        </td>
                        <td valign="top" style="padding-left:15px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(240,240,240)" class="m_7195365012140196624gmail_msg">
                                <table width="100%" border="0" cellspacing="0" cellpadding="3" style="border-collapse:collapse;font-size:12px;margin-top:4px" class="m_7195365012140196624gmail_msg">
                                        <tbody class="m_7195365012140196624gmail_msg">
                                                <tr class="m_7195365012140196624gmail_msg">
                                                        <td style="padding:3px 0px 10px;margin:0px;font-family:verdana,geneva,sans-serif;font-size:12px;color:rgb(86,97,120)" class="m_7195365012140196624gmail_msg">
                                                                <b style="display:block;font-size:12px" class="m_7195365012140196624gmail_msg">Aaron Ogle</b>
                                                                <span style="color:rgb(153,153,153);font-size:10px;display:block" class="m_7195365012140196624gmail_msg">Core Developer</span>
                                                        </td>
                                                </tr>
                                                <tr class="m_7195365012140196624gmail_msg">
                                                        <td style="padding:0px 0px 2px;margin:0px" class="m_7195365012140196624gmail_msg">
                                                                <p style="margin:0px;padding:0px" class="m_7195365012140196624gmail_msg"><a style="color:rgb(156,160,172);font-size:10px" class="m_7195365012140196624gmail_msg">aaron.ogle@rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                                <tr class="m_7195365012140196624gmail_msg">
                                                        
                                                </tr>
                                                <tr class="m_7195365012140196624gmail_msg">
                                                        <td style="padding:0px 0px 2px;margin:0px" class="m_7195365012140196624gmail_msg">
                                                                <p style="margin:0px;padding:0px" class="m_7195365012140196624gmail_msg"><a style="color:rgb(156,160,172);font-size:10px" class="m_7195365012140196624gmail_msg">@aaron.ogle</a></p>
                                                        </td>
                                                </tr>
                                                <tr class="m_7195365012140196624gmail_msg">
                                                        <td style="padding:0px 0px 2px;margin:0px" class="m_7195365012140196624gmail_msg">
                                                                <p style="margin:0px;padding:0px" class="m_7195365012140196624gmail_msg"><a style="color:rgb(156,160,172);font-size:10px" class="m_7195365012140196624gmail_msg">https://rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                        </tbody>
                                </table>
                        </td>
                </tr>
        </tbody>
</table></div>
</div></div>
<br class="m_7195365012140196624gmail_msg">--<br class="m_7195365012140196624gmail_msg">
Snapcraft mailing list<br class="m_7195365012140196624gmail_msg">
<a href="mailto:Snapcraft@lists.snapcraft.io" class="m_7195365012140196624gmail_msg" target="_blank">Snapcraft@lists.snapcraft.io</a><br class="m_7195365012140196624gmail_msg">
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/" class="m_7195365012140196624gmail_msg" target="_blank">https://lists.ubuntu.com/</a>mailm<wbr>an/listinfo/snapcraft<br class="m_7195365012140196624gmail_msg">
<br class="m_7195365012140196624gmail_msg"></blockquote></div></div>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">
<div><br></div><div><table border="0" cellspacing="0" cellpadding="0" style="color:rgb(0,0,0);font-family:verdana;font-size:medium">
        <tbody>
                <tr>
                        <td style="padding-right:15px">
                                <img src="https://cdn-download.rocket.chat/email-signature.png?v=3" style="width:80px;display:block;margin-left:10px">
                        </td>
                        <td valign="top" style="padding-left:15px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(240,240,240)">
                                <table width="100%" border="0" cellspacing="0" cellpadding="3" style="border-collapse:collapse;font-size:12px;margin-top:4px">
                                        <tbody>
                                                <tr>
                                                        <td style="padding:3px 0px 10px;margin:0px;font-family:verdana,geneva,sans-serif;font-size:12px;color:rgb(86,97,120)">
                                                                <b style="display:block;font-size:12px">Aaron Ogle</b>
                                                                <span style="color:rgb(153,153,153);font-size:10px;display:block">Core Developer</span>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="mailto:aaron.ogle@rocket.chat" style="color:rgb(156,160,172);font-size:10px" target="_blank">aaron.ogle@rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="https://demo.rocket.chat/direct/aaron.ogle" style="color:rgb(156,160,172);font-size:10px" target="_blank">@aaron.ogle</a></p>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td style="padding:0px 0px 2px;margin:0px">
                                                                <p style="margin:0px;padding:0px"><a href="https://rocket.chat" style="color:rgb(156,160,172);font-size:10px" target="_blank">https://rocket.chat</a></p>
                                                        </td>
                                                </tr>
                                        </tbody>
                                </table>
                        </td>
                </tr>
        </tbody>
</table></div>
</div></div>
</blockquote></div></div>