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