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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved How to rebuild the container from the Web Terminal?

    Discourse
    discourse
    3
    8
    384
    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.
    • dev_nikema
      dev_nikema last edited by girish

      I've been installing plugins on discourse according to the instructions here. I'm having a problem where I'm not able to see the settings for installed plugins.

      For example, I installed discourse-subscriptions and added my stripe information but I can't get to the settings to set up the products and subscriptions.

      The discourse instructions say to rebuild the container after installing plugins. How do I do that within cloudron?

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @dev_nikema Have you tried restarting the app already? Under Console -> Restart App. This is required for new plugins to load after installation.

        dev_nikema 1 Reply Last reply Reply Quote 0
        • dev_nikema
          dev_nikema @girish last edited by

          @girish Yes, I've restarted many times.

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            @dev_nikema I was able to reproduce it. I think the issue is that a recent package introduced asset caching. The assets have to be cleared manually before the restart. In the terminal, run:

            rm -rf /run/discourse/public/assets/*
            

            Then restart the app. You should see the Subscriptions view after that (maybe refresh the browser if required).

            c3a4f964-b305-4b4f-825c-31ffae436058-image.png

            1 Reply Last reply Reply Quote 1
            • girish
              girish Staff last edited by

              Fixed the docs as well - https://cloudron.io/documentation/apps/discourse/#installing-plugins

              1 Reply Last reply Reply Quote 1
              • J
                jfrey last edited by

                Hello,

                I am facing the same issue, my plugins are not listed anymore in the admin "plugins" section, which prevent me to configure them properly. Running the command to remove the assets did not do anything (I tried it, repeatedly, restarting the app, installing new plugins, etc.). Everything is up to date as of today (discourse 2.5.0, cloudron 5.3.3). I am not sure when the page broke, it was working a couple months ago when I tuned the configuration of "discourse-chat-interaction" (this plugin, and the others, still work, their settings still appearing in other admin pages). I did nothing unusual since then on either the discourse or cloudron install.

                Is there a new step to perform since one of the latest discourse update?

                1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff last edited by

                  @jfrey So, a way to reproduce this is to install discourse, then install discourse-chat-interaction and then the plugin does not appear anymore in the admin "plugins" section?

                  1 Reply Last reply Reply Quote 0
                  • J
                    jfrey last edited by

                    I finally tested on a fresh install... and it works. So I dug some more, comparing the two installations, and realized at some point is a JS error on my regular install, linked to the chat integration plugin. In the end the code was outdated (it relied on a deprecated API), so I pulled the last version from git and... it worked.

                    Long story short: this was a plugin bug 🤷 Sorry for the noise, and thanks for suggesting testing a separate install!

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB