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 Plugins do not work well

    Grav CMS
    5
    8
    364
    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.
    • J
      jkimmerling last edited by

      I have just installed Grav CMS on my cloudron droplet, and I am having issues. Many of the plugins are unable to save settings, they give me back errors like:

      Failed to save file /app/code/config/plugins/aboutme.yaml

      I have had this happen with several plugins.

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

        I'm wondering if this has to do with file permissions in Cloudron. Or could it just be the app itself is broken? I could not find any similar issues when doing a web search, so I am thinking it is on the cloudron side.

        jdaviescoates 1 Reply Last reply Reply Quote 0
        • jdaviescoates
          jdaviescoates @jkimmerling last edited by

          @jkimmerling said in Plugins do not work well:

          I'm wondering if this has to do with file permissions in Cloudron.

          Probably.

          I've not used Grav but on Cloudron you often need to use the web terminal to install plugins and stuff see https://cloudron.io/documentation/apps/grav/

          I use Cloudron with Gandi & Hetzner

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

            I tried to reproduce this, but the aboutme and other plugins work fine. In the cases I've tried from a fresh install, the configs are saved to /app/code/user/config/plugins/ which is symlinked into the writeable /app/data/

            @jkimmerling do you have made any special configuration which could affect those paths being different?

            J 1 Reply Last reply Reply Quote 0
            • J
              jkimmerling @nebulon last edited by

              @nebulon said in Plugins do not work well:

              is, but the aboutme and other plugins work fine. In the cases I've tried from a fresh install, the configs are sa

              no i did not. I will try to nuke the setup and start fresh.

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

                I think Grav has two ways of installing plugins - one via CLI and another via the UI. Both should be the same but maybe there is a difference we are not aware of. @nebulon @jkimmerling How did you guys install plugins?

                1 Reply Last reply Reply Quote 0
                • marcusquinn
                  marcusquinn last edited by marcusquinn

                  Does sound like a potential file-permissions issue.

                  I know in Wordpress you don't definitely don't want the /plugins directory writeable and only the /uploads dir should be.

                  Grav I'm guessing could be different if they are all non-executable files?

                  Maybe a Cloudron button for Reset File Permissions... might at-least help solve or diagnose this as the issue in most cases.

                  I can't speak for Grav - but with Wordpress any plugin that is writing data to anywhere other than /uploads should be reported back to the developer as bad security practice because otherwise any plugin could pull and save executable code in /plugins that isn't vetted by the usually transparent, monitored and tested processes they would go through.

                  Be interested to see how this issue plays out as both curious about Grav and certainly very interested in file-permissions maintenance being as tight as possible for app security from rogue plugins.

                  We're not here for a long time - but we are here for a good time :)
                  Jersey/UK
                  Work & Ecommerce Advice: https://brandlight.org
                  Personal & Software Tips: https://marcusquinn.com

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

                    In my case I was installing the plugin via the webinterface.
                    To reset the permissions usually in all apps an app restart does this already. So maybe indeed a simply app restart fixes that.

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