ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing the Rocket.Chat Snap on LXD

    Scheduled Pinned Locked Moved IT Discussion
    snapubuntulxdrocketchat
    23 Posts 8 Posters 4.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stacksofplatesS
      stacksofplates @travisdh1
      last edited by

      @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.

      1 Reply Last reply Reply Quote 2
      • RomoR
        Romo @travisdh1
        last edited by

        @travisdh1 He is running that command inside the container named rocketchat

        travisdh1T 1 Reply Last reply Reply Quote 2
        • travisdh1T
          travisdh1 @Romo
          last edited by

          @romo said in Installing the Rocket.Chat Snap on LXD:

          @travisdh1 He is running that command inside the container named rocketchat

          Ah, gotcha.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            LXD is amazing, I agree that it's amazing on Ubuntu and so insane that it is missing on Fedora.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              I use Snaps to install Rocket.Chat on Fedora.

              black3dynamiteB 1 Reply Last reply Reply Quote 0
              • black3dynamiteB
                black3dynamite @scottalanmiller
                last edited by

                @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

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @black3dynamite
                  last edited by

                  @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/confinement

                  Haven't run into any limitations.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Alex Sage
                    last edited by

                    Sadly, this doesn't seem to work anymore.

                    Using Ubuntu 18.04.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Alex Sage
                      last edited by

                      @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?

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Alex Sage @scottalanmiller
                        last edited by

                        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.
                        
                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @Alex Sage
                          last edited by

                          @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.

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            Alex Sage @scottalanmiller
                            last edited by

                            @scottalanmiller maybe it doesn't support 18.04 yet. I'll try a 17.04 container.

                            dafyreD 1 Reply Last reply Reply Quote 0
                            • dafyreD
                              dafyre @Alex Sage
                              last edited by

                              @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.

                              A 2 Replies Last reply Reply Quote 0
                              • A
                                Alex Sage @dafyre
                                last edited by

                                @dafyre You mean the container? I did. Didn't Work.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alex Sage @dafyre
                                  last edited by

                                  @dafyre How did you install it?

                                  dafyreD 1 Reply Last reply Reply Quote 0
                                  • dafyreD
                                    dafyre @Alex Sage
                                    last edited by

                                    @aaronstuder said in Installing the Rocket.Chat Snap on LXD:

                                    @dafyre How did you install it?

                                    snap install rocketchat-server

                                    0_1537389790009_15b6b114-6706-44ae-a4e6-9e559a1b150c-image.png

                                    A dbeatoD 2 Replies Last reply Reply Quote 1
                                    • A
                                      Alex Sage @dafyre
                                      last edited by

                                      Where are the snap logs located?

                                      dafyreD 1 Reply Last reply Reply Quote 0
                                      • dafyreD
                                        dafyre @Alex Sage
                                        last edited by

                                        @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).

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          Alex Sage @dafyre
                                          last edited by

                                          Sep 19 20:47:28 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                          Sep 19 20:47:28 RocketChat systemd[1]: Starting Snappy daemon...
                                          Sep 19 20:47:29 RocketChat snapd[205]: AppArmor status: apparmor is enabled and all features are available
                                          Sep 19 20:47:29 RocketChat snapd[205]: 2018/09/19 20:47:29.318767 helpers.go:119: error trying to compare the snap system key: system-key missing on disk
                                          Sep 19 20:47:29 RocketChat snapd[205]: 2018/09/19 20:47:29.353276 daemon.go:343: started snapd/2.34.2+18.04 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-23-generic.
                                          Sep 19 20:47:29 RocketChat systemd[1]: Started Snappy daemon.
                                          Sep 19 20:47:38 RocketChat snapd[205]: 2018/09/19 20:47:38.862002 api.go:1046: Installing snap "rocketchat-server" revision unset
                                          Sep 19 20:47:45 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                          Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.539246 backend.go:303: cannot create host snap-confine apparmor configuration: cannot synchronize snap-confine apparmor prof
                                          Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.992123 daemon.go:531: gracefully waiting for running hooks
                                          Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.992195 daemon.go:533: done waiting for running hooks
                                          Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
                                          Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Scheduled restart job, restart counter is at 1.
                                          Sep 19 20:47:46 RocketChat systemd[1]: Stopped Snappy daemon.
                                          Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                          Sep 19 20:47:46 RocketChat systemd[1]: Starting Snappy daemon...
                                          Sep 19 20:47:46 RocketChat snapd[388]: AppArmor status: apparmor is enabled and all features are available
                                          Sep 19 20:47:47 RocketChat snapd[388]: AppArmor status: apparmor is enabled and all features are available
                                          Sep 19 20:47:47 RocketChat snapd[388]: helpers.go:560: cannot retrieve info for snap "rocketchat-server": cannot find installed snap "rocketchat-server" at revision 1324: missing file
                                          Sep 19 20:47:47 RocketChat snapd[388]: helpers.go:560: cannot retrieve info for snap "rocketchat-server": cannot find installed snap "rocketchat-server" at revision 1324: missing file
                                          Sep 19 20:47:48 RocketChat snapd[388]: daemon.go:344: started snapd/2.35 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-23-generic.
                                          Sep 19 20:47:48 RocketChat systemd[1]: Started Snappy daemon.
                                          Sep 19 20:47:59 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                          Sep 19 20:48:01 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                          
                                          dafyreD 1 Reply Last reply Reply Quote 0
                                          • dafyreD
                                            dafyre @Alex Sage
                                            last edited by

                                            @aaronstuder said in Installing the Rocket.Chat Snap on LXD:

                                            Sep 19 20:47:28 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                            Sep 19 20:47:28 RocketChat systemd[1]: Starting Snappy daemon...
                                            Sep 19 20:47:29 RocketChat snapd[205]: AppArmor status: apparmor is enabled and all features are available
                                            Sep 19 20:47:29 RocketChat snapd[205]: 2018/09/19 20:47:29.318767 helpers.go:119: error trying to compare the snap system key: system-key missing on disk
                                            Sep 19 20:47:29 RocketChat snapd[205]: 2018/09/19 20:47:29.353276 daemon.go:343: started snapd/2.34.2+18.04 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-23-generic.
                                            Sep 19 20:47:29 RocketChat systemd[1]: Started Snappy daemon.
                                            Sep 19 20:47:38 RocketChat snapd[205]: 2018/09/19 20:47:38.862002 api.go:1046: Installing snap "rocketchat-server" revision unset
                                            Sep 19 20:47:45 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                            Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.539246 backend.go:303: cannot create host snap-confine apparmor configuration: cannot synchronize snap-confine apparmor prof
                                            Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.992123 daemon.go:531: gracefully waiting for running hooks
                                            Sep 19 20:47:45 RocketChat snapd[205]: 2018/09/19 20:47:45.992195 daemon.go:533: done waiting for running hooks
                                            Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
                                            Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Scheduled restart job, restart counter is at 1.
                                            Sep 19 20:47:46 RocketChat systemd[1]: Stopped Snappy daemon.
                                            Sep 19 20:47:46 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                            Sep 19 20:47:46 RocketChat systemd[1]: Starting Snappy daemon...
                                            Sep 19 20:47:46 RocketChat snapd[388]: AppArmor status: apparmor is enabled and all features are available
                                            Sep 19 20:47:47 RocketChat snapd[388]: AppArmor status: apparmor is enabled and all features are available
                                            Sep 19 20:47:47 RocketChat snapd[388]: helpers.go:560: cannot retrieve info for snap "rocketchat-server": cannot find installed snap "rocketchat-server" at revision 1324: missing file
                                            Sep 19 20:47:47 RocketChat snapd[388]: helpers.go:560: cannot retrieve info for snap "rocketchat-server": cannot find installed snap "rocketchat-server" at revision 1324: missing file
                                            Sep 19 20:47:48 RocketChat snapd[388]: daemon.go:344: started snapd/2.35 (series 16; classic) ubuntu/18.04 (amd64) linux/4.15.0-23-generic.
                                            Sep 19 20:47:48 RocketChat systemd[1]: Started Snappy daemon.
                                            Sep 19 20:47:59 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                            Sep 19 20:48:01 RocketChat systemd[1]: snapd.service: Failed to reset devices.list: Operation not permitted
                                            

                                            Try...

                                            snap refresh rocketchat-server ?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post