<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">gustavo.niemeyer@canonical.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="gmail_msg">Hey Aaron,</p>
<p dir="ltr" class="gmail_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="gmail_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="gmail_msg">Please let us know if you find any other hints.<br class="gmail_msg"></p>
<p dir="ltr" class="gmail_msg">Gustavo</p>
<div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Oct 21, 2016 11:39 AM, "Aaron Ogle" <aaron.ogle@rocket.chat> wrote:<br type="attribution" class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="gmail_msg">Didier:</p>
<p dir="ltr" class="gmail_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="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Fri, Oct 21, 2016, 04:19 Didier Roche <<a class="gmail_msg">didrocks@ubuntu.com</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <div class="m_-8821709682219554819m_-7238772605898644113m_4424445109115040135moz-cite-prefix m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">Le 20/10/2016 à 17:36, Aaron Ogle a
      écrit :<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    </div>
    <blockquote type="cite" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
      <div dir="ltr" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">Hey guys,<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
      </div>
    </blockquote>
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    Hey Aaron,</div><div bgcolor="#FFFFFF" text="#000000" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <blockquote type="cite" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
      <div dir="ltr" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_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_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        Our snap: <a class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">https://github.com/RocketChat/Rocket.Chat/blob/develop/.snapcraft/stable/snapcraft.yaml</a><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        rocketchat-mongo:<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        command: env LC_ALL=C mongod --smallfiles --dbpath=$SNAP_COMMON
        <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
      </div>
    </blockquote>
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"></div><div bgcolor="#FFFFFF" text="#000000" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    This is correct, and the generated wrapper (just checked, downloaded
    it from the store) is doing:<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    exec "env" LC_ALL=C mongod --smallfiles --dbpath=$SNAP_COMMON "$@"</div><div bgcolor="#FFFFFF" text="#000000" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <blockquote type="cite" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
      <div dir="ltr" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        After explaining to them how to get logs, it will say our mongo
        install is missing the dbpath.<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        The exact error they are getting:<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><span class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">Error
              parsing command line: the argument for option '--dbpath'
              should follow immediately after the equal sign</span><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          </div>
          <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><span class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
            </span></div>
          This seems like for some reason SNAP_COMMON isn't getting set.
          <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          </div>
          <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">I've confirmed that they are using version 2.15 of snap /
            snapd.</div>
          <div class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg"><br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          </div>
          I also asked them to drop into the snap: sudo snap run --shell
          rocketchat-server<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
          Then do an: env to see if SNAP_COMMON is even set. From there
          it does seem to be set. <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
        </div>
      </div>
    </blockquote></div><div bgcolor="#FFFFFF" text="#000000" class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    Is it the case as well for you? I just tried this and:<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    didrocks@tidus:~$ sudo snap run --shell rocketchat-server<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    root@tidus:/home/didrocks# env | grep SNAP_COMMON<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    SNAP_COMMON=/var/snap/rocketchat-server/common<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_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_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    <br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    Cheers,<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
    Didier<br class="m_-8821709682219554819m_-7238772605898644113gmail_msg gmail_msg">
  </div>

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