Installing the Rocket.Chat Snap on LXD
- 
 I put Ubuntu back on my laptop and I've been playing around with some of their stuff again since they have some pretty cool tech (Juju, MaaS, LXD, etc). I hate the fact that Red Hat pretty much abandoned LXC. It's painful on Fedora and even worse on CentOS. I might start using Ubuntu more, and 17.10 is pretty impressive as a workstation OS. Here's how easy it is to install Rocket.Chat with Snap on LXD. 
- 
 @stacksofplates silly question time, why not just snap install rocketchat-server? Does lxc just start a container with a command?
- 
 @travisdh1 said in Installing the Rocket.Chat Snap on LXD: @stacksofplates silly question time, why not just snap install rocketchat-server?Well the first bit builds the container, then you need to install squashfuse so it has somewhere to store it's data or it bombs out. Then I finally ran that inside the container. 
- 
 @travisdh1 He is running that command inside the container named rocketchat 
- 
 @romo said in Installing the Rocket.Chat Snap on LXD: @travisdh1 He is running that command inside the container named rocketchat Ah, gotcha. 
- 
 LXD is amazing, I agree that it's amazing on Ubuntu and so insane that it is missing on Fedora. 
- 
 I use Snaps to install Rocket.Chat on Fedora. 
- 
 @scottalanmiller said in Installing the Rocket.Chat Snap on LXD: I use Snaps to install Rocket.Chat on Fedora. But isn't snap installs in Fedora have limitation compare to Ubuntu? 
 https://docs.snapcraft.io/reference/confinement
- 
 @black3dynamite said in Installing the Rocket.Chat Snap on LXD: @scottalanmiller said in Installing the Rocket.Chat Snap on LXD: I use Snaps to install Rocket.Chat on Fedora. But isn't snap installs in Fedora have limitation compare to Ubuntu? 
 https://docs.snapcraft.io/reference/confinementHaven't run into any limitations. 
- 
 Sadly, this doesn't seem to work anymore. Using Ubuntu 18.04. 
- 
 @aaronstuder said in Installing the Rocket.Chat Snap on LXD: Sadly, this doesn't seem to work anymore. Using Ubuntu 18.04. Snaps are broken on Ubuntu? 
- 
 root@RocketChat:~# service snap.rocketchat-server.rocketchat-server status snap.rocketchat-server.rocketchat-server.service - Service for snap application rocketchat-server.rocketchat-server Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-server.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-09-19 19:38:42 UTC; 18s ago Process: 421 ExecStart=/usr/bin/snap run rocketchat-server (code=exited, status=1/FAILURE) Main PID: 421 (code=exited, status=1/FAILURE) Sep 19 19:38:42 RocketChat systemd[1]: snap.rocketchat-server.rocketchat-server.service: Service hold-off time over, scheduling restart. Sep 19 19:38:42 RocketChat systemd[1]: snap.rocketchat-server.rocketchat-server.service: Scheduled restart job, restart counter is at 5. Sep 19 19:38:42 RocketChat systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-server. Sep 19 19:38:42 RocketChat systemd[1]: snap.rocketchat-server.rocketchat-server.service: Start request repeated too quickly. Sep 19 19:38:42 RocketChat systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result 'exit-code'. Sep 19 19:38:42 RocketChat systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-server.
- 
 @aaronstuder Interesting. It's been great for us on Fedora, even on LXD. Ubuntu can run the LXC if you want, but run a Fedora container, not an Ubuntu one. 
- 
 @scottalanmiller maybe it doesn't support 18.04 yet. I'll try a 17.04 container. 
- 
 @aaronstuder said in Installing the Rocket.Chat Snap on LXD: @scottalanmiller maybe it doesn't support 18.04 yet. I'll try a 17.04 container. Reboot the server. I'm running on Ubuntu 18.04 and it works. 
- 
 @dafyre You mean the container? I did. Didn't Work. 
- 
 @dafyre How did you install it? 
- 
 @aaronstuder said in Installing the Rocket.Chat Snap on LXD: @dafyre How did you install it? snap install rocketchat-server 
- 
 Where are the snap logs located? 
- 
 @aaronstuder said in Installing the Rocket.Chat Snap on LXD: Where are the snap logs located? I dunno. I journalctl -f or journalctl -xe if I'm having problems (or I try starting the snap while it's already running, lol). 







