Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Rocket.Chat
  3. Add Deno to Rocket.Chat for Apps to work

Add Deno to Rocket.Chat for Apps to work

Scheduled Pinned Locked Moved Solved Rocket.Chat
19 Posts 10 Posters 5.0k Views 9 Watching
  • 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #10

    Writing to code directory is not allowed and we can't support apps which write code at runtime.

    Does this happen for any Rocket.chat app?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      domi-bue
      wrote on last edited by
      #11

      I tested around 10 different apps, and they all tried to write to /app/code. Looks like that Deno tries to install the dependencies there.

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #12

        @domi-bue I pushed a possible fix, can you update and try?

        1 Reply Last reply
        3
        • D Offline
          D Offline
          domi-bue
          wrote on last edited by
          #13

          Yeah, that fixed it. Thank you for that.

          1 Reply Last reply
          2
          • nebulonN nebulon marked this topic as a question on
          • nebulonN nebulon has marked this topic as solved on
          • Z Offline
            Z Offline
            zigmasdirigeant
            wrote on last edited by zigmasdirigeant
            #14

            Hi guys, I think we need to revive this post again:

            The Rocket.Chat Apps Engine is broken on both Cloudron package versions 3.1.0 (upstream 8.2.1) and 3.2.0 (upstream 8.3.1). No marketplace apps can be installed or run.

            Error logs:

            error: failed reading lockfile '/app/code/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/deno.lock'
            

            Caused by:

            Error getting response at https://registry.npmjs.org/@msgpack/msgpack for package "@msgpack/msgpack": An npm specifier not found in cache: "@msgpack/msgpack", --cached-only is specified.
            

            Root cause:
            The deno.lock file is located in /app/code/, which is on the read-only Docker image layer. When Deno tries to resolve the @msgpack/msgpack npm dependency, it can't find it in cache and can't update the lockfile because the filesystem is read-only (Read-only file system, os error 30).

            This means the Deno runtime can't start app subprocesses, so all marketplace apps (e.g. Giphy) fail with compiler errors and crash-loop.

            Steps to reproduce:
            Install or update to Rocket.Chat 3.1.0 or 3.2.0 on Cloudron
            Go to Admin > Apps > Marketplace
            Try to install any app (e.g. Giphy)
            Installation fails with "The App had compiler errors, can not enable it"

            Suggested fix:
            Either pre-cache the @msgpack/msgpack npm package in the Docker image at build time, or move the Deno cache/lockfile to a writable location (e.g. /app/data/ or /tmp/).

            Thanks!

            1 Reply Last reply
            2
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote on last edited by
              #15

              Hello @zigmasdirigeant

              With version 3.2.2 this issue is resolved.
              Please update your @rocket.chat app and try to install your marketplace module.

              If any issues still persist, please report back here.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Panda
                wrote last edited by
                #16

                App install appears broken again as of Rocket.Chat 8.4.3. Marketplace apps appear to start installing but then hang.

                Error logs:

                Subprocess stderr error: JSR package manifest for '@std/io' failed to load. Specifier not found in cache: "https://jsr.io/@std/io/meta.json", --cached-only is specified.
                at file:///tmp/apps-engine-temp/deno-runtime/lib/metricsCollector.ts:1:26
                

                Reproduce:
                Cloudron: 9.2.0
                Rocket Chat 8.4.3
                Install any app from marketplace.
                Install appears to start but then hangs with the install button circle spinning indefinitely.

                Thank you for taking a look!

                1 Reply Last reply
                1
                • jamesJ Offline
                  jamesJ Offline
                  james
                  Staff
                  wrote last edited by james
                  #17

                  Hello @panda
                  I have reproduced the issue and I am looking into it.

                  Findings:
                  Rocket.Chat 8.4.x added lib/metricsCollector.ts (imported by main.ts:23), which pulls in @std/io via JSR. Earlier bundles didn't exercise that path the same way, so the empty cache went unnoticed the recent RC update is what tripped it.

                  Testing now if we can create that cache in the build time or if this needs to be dynamic read-write.

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #18

                    Hello @panda
                    I have found a solution.
                    An app update will be available soon.

                    P 1 Reply Last reply
                    0
                    • jamesJ james

                      Hello @panda
                      I have found a solution.
                      An app update will be available soon.

                      P Offline
                      P Offline
                      Panda
                      wrote last edited by
                      #19

                      @james said:

                      Hello @panda
                      I have found a solution.
                      An app update will be available soon.

                      Awesome! Thank you!

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search