I have just published Grav CMS as an unstable app. Most of the packaging work was done by @jimcavoli . Thanks a lot, Jim!
The app is not integrated with Cloudron LDAP yet, I expect that to be added soonish. I am in the process of writing the tests, it will become a stable app after that.
cough bitwarden cough
Hi, I get this when trying to install a plugin:
Unable to move the library files to /app/data/user/plugins/get-id3/library/ Files are missing from the getID3 library. Please see the grav log files for more information Please manually download the library from http://www.getid3.org/ and follow the installation instructions in the README.md file for this plugin.
Grav log file only says:
[2019-12-20 23:39:44] grav.INFO: Unable to move the library files to /app/data/user/plugins/get-id3/library/  
Not sure if Cloudron related though, but it sounds like a directory permissions issue.
@yusf Does look like a packaging issue, will look into it.
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
@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.
@paulhibbitts The issue is related to permissions indeed. When you ran
bin/gpm install bootstrap4-open-matterthis installed the files as root. You have to make sure the files are owned by
www-datauser. 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.
@girish Is this similar to the
gosucommand 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?
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
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
@jdmnt I see. Did you install the plugin using the CLI or via the Grav admin UI?
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.
JOduMonT last edited by 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 ?
@JOduMonT ok I trick it by copying the plugin from another grav
perhaps, since I'll use extensively this apps, maybe I should propose you to take over the control of this apps no ?
@JOduMonT There's always the option of installing Grav inside a LAMP app, which should give more freedom.
fbartels last edited by
@yusf or running your own version of the grav app.
@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
fbartels last edited by
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.
Pushed the update out for Grav CMS and the admin panel. Are you able to install the other plugin now?