Missing environment variables

Aaron Ogle aaron.ogle at rocket.chat
Thu Oct 20 15:36:50 UTC 2016


Hey guys,

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.

Our snap:
https://github.com/RocketChat/Rocket.Chat/blob/develop/.snapcraft/stable/snapcraft.yaml

rocketchat-mongo:
command: env LC_ALL=C mongod --smallfiles --dbpath=$SNAP_COMMON

After explaining to them how to get logs, it will say our mongo install is
missing the dbpath.

The exact error they are getting:
Error parsing command line: the argument for option '--dbpath' should
follow immediately after the equal sign

This seems like for some reason SNAP_COMMON isn't getting set.

I've confirmed that they are using version 2.15 of snap / snapd.

I also asked them to drop into the snap: sudo snap run --shell
rocketchat-server

Then do an: env to see if SNAP_COMMON is even set. From there it does seem
to be set.

Ideas?
-- 

*Aaron Ogle* Core Developer

aaron.ogle at rocket.chat

@aaron.ogle <https://demo.rocket.chat/direct/aaron.ogle>

https://rocket.chat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161020/be5d0753/attachment.html>


More information about the Snapcraft mailing list