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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Announcements
  3. Grav CMS

Grav CMS

Scheduled Pinned Locked Moved Announcements
20 Posts 7 Posters 3.5k Views 8 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
    #4

    @yusf Does look like a packaging issue, will look into it.

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

      Investigated this a bit and this is just a plugin related issue. https://github.com/jgonyea/grav-plugin-get-id3/blob/develop/get-id3.php#L174 is trying to install the get-id3 library and failing. It's unclear why because there is no logs about why it's failing. The workaround is to follow https://github.com/jgonyea/grav-plugin-get-id3#post-installation. Just need to:

      cp -r /app/data/user/plugins/get-id3/tmp/extracted/getID3-1.9.15/getid3/* /app/data/user/plugins/get-id3/library
      
      P 1 Reply Last reply
      0
      • girishG girish

        Investigated this a bit and this is just a plugin related issue. https://github.com/jgonyea/grav-plugin-get-id3/blob/develop/get-id3.php#L174 is trying to install the get-id3 library and failing. It's unclear why because there is no logs about why it's failing. The workaround is to follow https://github.com/jgonyea/grav-plugin-get-id3#post-installation. Just need to:

        cp -r /app/data/user/plugins/get-id3/tmp/extracted/getID3-1.9.15/getid3/* /app/data/user/plugins/get-id3/library
        
        P Offline
        P Offline
        paulhibbitts
        wrote on last edited by
        #6

        @girish Thanks so much for getting Grav on Cloudron! I've been having several issues which I think are related to permissions and I've posted the details at https://git.cloudron.io/cloudron/grav-app/issues/1

        Happy to help test etc. if helpful.

        Thanks again,
        Paul

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

          @paulhibbitts The issue is related to permissions indeed. When you ran bin/gpm install bootstrap4-open-matter this installed the files as root. You have to make sure the files are owned by www-data user. You can fix this in two way:

          sudo -u www-data -- bin/gpm install bootstrap4-open-matter
          

          Alternately, just restart the app (from Console -> Restart). Restarting the app will run the packages startup script again which fixes up the ownership.

          yusfY 1 Reply Last reply
          1
          • girishG girish

            @paulhibbitts The issue is related to permissions indeed. When you ran bin/gpm install bootstrap4-open-matter this installed the files as root. You have to make sure the files are owned by www-data user. You can fix this in two way:

            sudo -u www-data -- bin/gpm install bootstrap4-open-matter
            

            Alternately, just restart the app (from Console -> Restart). Restarting the app will run the packages startup script again which fixes up the ownership.

            yusfY Offline
            yusfY Offline
            yusf
            wrote on last edited by
            #8

            @girish Is this similar to the gosu command used for the, say, NodeBB app? Please document it if you haven't already. 🙂

            I'm thinking there should be some wrapper command for each app that needs custom command line stuff like this so that the command looks and feels similar across apps. What do you think?

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

              Yup, exactly. Similar to gosu. For now, I pushed a simple doc page at https://cloudron.io/documentation/apps/grav/ . One can also do:

              /usr/local/bin/gosu www-data:www-data bin/gpm install bootstrap4-open-matter
              
              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by A Former User
                #10

                Hi @girish

                I don't understand why but I after installing the plugins gitsync had to chown the plugins dir again

                chown 33:33 -R /app/data/user/plugins
                

                unless gitsync plugin was unable to save his configuration file

                all the rest in /app/data/user was fine.

                maybe a sticky bit could fix this

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

                  @jdmnt I see. Did you install the plugin using the CLI or via the Grav admin UI?

                  JOduMonTJ 1 Reply Last reply
                  0
                  • girishG girish

                    @jdmnt I see. Did you install the plugin using the CLI or via the Grav admin UI?

                    JOduMonTJ Offline
                    JOduMonTJ Offline
                    JOduMonT
                    wrote on last edited by
                    #12

                    @girish said in Grav CMS:

                    Did you install the plugin using the CLI or via the Grav admin UI?

                    My Bad; I thought I installed through the UI but apparently not, since I installed a second GravCMS and it didn't happened.

                    1 Reply Last reply
                    1
                    • JOduMonTJ Offline
                      JOduMonTJ Offline
                      JOduMonT
                      wrote on last edited by JOduMonT
                      #13

                      @girish a new version of Grav is out
                      I cant install plugin (such as autodate) because it required the new version
                      their is a way to bypass this, such as temporary removing the read-only option on the container do the update than putting it back ?

                      JOduMonTJ 1 Reply Last reply
                      0
                      • JOduMonTJ JOduMonT

                        @girish a new version of Grav is out
                        I cant install plugin (such as autodate) because it required the new version
                        their is a way to bypass this, such as temporary removing the read-only option on the container do the update than putting it back ?

                        JOduMonTJ Offline
                        JOduMonTJ Offline
                        JOduMonT
                        wrote on last edited by
                        #14

                        @JOduMonT ok I trick it by copying the plugin from another grav 😉

                        1 Reply Last reply
                        0
                        • JOduMonTJ Offline
                          JOduMonTJ Offline
                          JOduMonT
                          wrote on last edited by
                          #15

                          @girish I'm sorry but the update really botter me, I can't install this theme because it require an update

                          perhaps, since I'll use extensively this apps, maybe I should propose you to take over the control of this apps no ?

                          yusfY 1 Reply Last reply
                          0
                          • JOduMonTJ JOduMonT

                            @girish I'm sorry but the update really botter me, I can't install this theme because it require an update

                            perhaps, since I'll use extensively this apps, maybe I should propose you to take over the control of this apps no ?

                            yusfY Offline
                            yusfY Offline
                            yusf
                            wrote on last edited by
                            #16

                            @JOduMonT There's always the option of installing Grav inside a LAMP app, which should give more freedom.

                            fbartelsF 1 Reply Last reply
                            0
                            • yusfY yusf

                              @JOduMonT There's always the option of installing Grav inside a LAMP app, which should give more freedom.

                              fbartelsF Offline
                              fbartelsF Offline
                              fbartels
                              App Dev
                              wrote on last edited by
                              #17

                              @yusf or running your own version of the grav app.

                              1 Reply Last reply
                              0
                              • JOduMonTJ Offline
                                JOduMonTJ Offline
                                JOduMonT
                                wrote on last edited by
                                #18

                                @yusf and @fbartels Yes I could also run my own server as I was doing before and not participating to this community 😛

                                @girish I was able to reproduce the issue with the permission in ./user/config/plugins by installing via the WebAdmin the theme: Quark Open Publishing so I believe sticking the permission would be a good idea

                                fbartelsF 1 Reply Last reply
                                0
                                • JOduMonTJ JOduMonT

                                  @yusf and @fbartels Yes I could also run my own server as I was doing before and not participating to this community 😛

                                  @girish I was able to reproduce the issue with the permission in ./user/config/plugins by installing via the WebAdmin the theme: Quark Open Publishing so I believe sticking the permission would be a good idea

                                  fbartelsF Offline
                                  fbartelsF Offline
                                  fbartels
                                  App Dev
                                  wrote on last edited by
                                  #19

                                  @JOduMonT said in Grav CMS:

                                  Yes I could also run my own server as I was doing before and not participating to this community

                                  that was not at all what we were suggesting

                                  But if you have special requirements or always immediately want to run the latest version if may be a benefit to look at the app source and simply deploy your own customised version. Your customisations and updates can then of course be made available via pull requests to the main app.

                                  1 Reply Last reply
                                  2
                                  • girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #20

                                    Pushed the update out for Grav CMS and the admin panel. Are you able to install the other plugin now?

                                    1 Reply Last reply
                                    1
                                    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