Possible to make this Discourse Events plugin work on Cloudron?
-
I want to use this Discourse plugin:
https://github.com/paviliondev/discourse-eventsI just tried following the instructions as per the Cloudron Discourse docs
But I got an error:
root@50ec0407-be7a-4df2-bd5f-ca4c87815336:/app/code# cd /app/code/plugins root@50ec0407-be7a-4df2-bd5f-ca4c87815336:/app/code/plugins# git clone https://github.com/paviliondev/discourse-events Cloning into 'discourse-events'... remote: Enumerating objects: 4866, done. remote: Counting objects: 100% (394/394), done. remote: Compressing objects: 100% (64/64), done. remote: Total 4866 (delta 349), reused 336 (delta 328), pack-reused 4472 Receiving objects: 100% (4866/4866), 988.25 KiB | 6.86 MiB/s, done. Resolving deltas: 100% (2282/2282), done. root@50ec0407-be7a-4df2-bd5f-ca4c87815336:/app/code/plugins# cd /app/code root@50ec0407-be7a-4df2-bd5f-ca4c87815336:/app/code# gosu cloudron:cloudron bundle exec rake db:migrate gem install uuidtools -v 2.2.0 -i /app/code/plugins/discourse-events/gems/3.2.2 --no-document --ignore-dependencies --no-user-install ERROR: While executing gem ... (Errno::EROFS) Read-only file system @ dir_s_mkdir - /home/cloudron/.local /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:406:in `mkdir' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:406:in `fu_mkdir' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:384:in `block (2 levels) in mkdir_p' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:382:in `reverse_each' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:382:in `block in mkdir_p' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:374:in `each' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:374:in `mkdir_p' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/source.rb:151:in `fetch_spec' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/resolver/api_specification.rb:92:in `spec' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/resolver/installer_set.rb:98:in `add_always_install' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/dependency_installer.rb:322:in `resolve_dependencies' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/commands/install_command.rb:205:in `install_gem' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/commands/install_command.rb:230:in `block in install_gems' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in `each' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in `install_gems' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/commands/install_command.rb:169:in `execute' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/command.rb:327:in `invoke_with_build_args' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/command_manager.rb:252:in `invoke_command' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/command_manager.rb:192:in `process_args' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/command_manager.rb:150:in `run' /home/cloudron/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/gem_runner.rb:51:in `run' /home/cloudron/rbenv/versions/3.2.2/bin/gem:10:in `<main>' You are specifying the gem uuidtools in /app/code/plugins/discourse-events/plugin.rb, however it does not exist! Looked for: - /app/code/plugins/discourse-events/gems/3.2.2/specifications/uuidtools-2.2.0.gemspec - /app/code/plugins/discourse-events/gems/3.2.2/specifications/uuidtools-2.2.0-x86_64-linux.gemspec - /app/code/plugins/discourse-events/gems/3.2.2/specifications/uuidtools-2.2.0-x86_64-linux.gemspec root@50ec0407-be7a-4df2-bd5f-ca4c87815336:/app/code#
I'd really love to use this plugin - might there be a way to make it work on Cloudron?
-
@girish said in Possible to make this Discourse Events plugin work on Cloudron?:
Ah , good catch . Looks like this
.local
has to be symlinked . Missed this in our base image, grr.That sounds positive in that once you symlink
.local
I guess this plugin should probably work too, right? -
@jdaviescoates yes, atleast I can install it after symlinking local. I have fixed the base image already. Tests are running now for the new package.
-
@girish said in Possible to make this Discourse Events plugin work on Cloudron?:
there is a slight change in instruction in the docs (chown -R)
Thanks for the heads up.
I think:
chown -R cloudron:cloudron <plugin-repo>
Could be clearer somehow.
I initially tried:
chown -R cloudron:cloudron https://github.com/paviliondev/discourse-events
But I think what I was supposed to do was:
chown -R cloudron:cloudron discourse-events/
Then, when I got to:
gosu cloudron:cloudron bundle exec install_all_gems
I just got this error:
root@:/app/code# gosu cloudron:cloudron bundle exec install_all_gems bundler: command not found: install_all_gems Install missing gem executables with `bundle install`
-
@jdaviescoates you need to be in /app/data remember!?
-
@robi said in Possible to make this Discourse Events plugin work on Cloudron?:
@jdaviescoates you need to be in /app/data remember!?
The previous step in the docs:
cd /app/code
-
@jdaviescoates said in Possible to make this Discourse Events plugin work on Cloudron?:
gosu cloudron:cloudron bundle exec install_all_gems
I think this one is
gosu cloudron:cloudron bundle exec rake plugin:install_all_gems
! -
@girish said in Possible to make this Discourse Events plugin work on Cloudron?:
I think this one is gosu cloudron:cloudron bundle exec rake plugin:install_all_gems !
That seemed to do the job, I think, maybe.
The plugin seems to have installed:
But when I try to click on Events as shown above (and which links to https://bridport.events/admin/events ) I get this:
️ Error loading route
Caused by plugin 'discourse-events-e0079339aeef4bbe41336a3766e010483478c7374fcb7d7e0574c835848c6e01'
(this message is only shown to site administrators)I also note that when running e.g.
gosu cloudron:cloudron bundle exec rake posts:rebake
I get:fatal: not a git repository (or any of the parent directories): .git
I got that a few times during the install process too.