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. Discourse
  3. Possible to make this Discourse Events plugin work on Cloudron?

Possible to make this Discourse Events plugin work on Cloudron?

Scheduled Pinned Locked Moved Discourse
discourseeventsplugins
12 Posts 3 Posters 1.8k Views 3 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.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote on last edited by
    #1

    I want to use this Discourse plugin:
    https://github.com/paviliondev/discourse-events

    I 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?

    I use Cloudron with Gandi & Hetzner

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

      Ah , good catch . Looks like this .local has to be symlinked . Missed this in our base image, grr.

      jdaviescoatesJ 1 Reply Last reply
      1
      • girishG girish

        Ah , good catch . Looks like this .local has to be symlinked . Missed this in our base image, grr.

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #3

        @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? 🙏 🙂

        I use Cloudron with Gandi & Hetzner

        girishG 1 Reply Last reply
        0
        • jdaviescoatesJ jdaviescoates

          @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? 🙏 🙂

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @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.

          jdaviescoatesJ 1 Reply Last reply
          1
          • girishG girish

            @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.

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #5

            @girish great, thanks, I'll give it a try again once the update is available

            I use Cloudron with Gandi & Hetzner

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

              @jdaviescoates updated. there is a slight change in instruction in the docs (chown -R)

              jdaviescoatesJ 1 Reply Last reply
              1
              • girishG girish

                @jdaviescoates updated. there is a slight change in instruction in the docs (chown -R)

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #7

                @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`
                

                I use Cloudron with Gandi & Hetzner

                robiR girishG 2 Replies Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @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`
                  
                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #8

                  @jdaviescoates you need to be in /app/data remember!?

                  Conscious tech

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • robiR robi

                    @jdaviescoates you need to be in /app/data remember!?

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #9

                    @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

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    0
                    • robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by robi
                      #10

                      That doesn't sound right unless /app/code/plugins is symlinked to /app/data/somewhere

                      /app/code is readonly

                      Conscious tech

                      1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @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`
                        
                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by girish
                        #11

                        @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 !

                        jdaviescoatesJ 1 Reply Last reply
                        1
                        • girishG girish

                          @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 !

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #12

                          @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:

                          f2a7dd2f-3d7e-4a27-9a8e-32b3881cf1e0-image.png

                          But when I try to click on Events as shown above (and which links to https://bridport.events/admin/events ) I get this:

                          c9f35c86-a31e-46a5-92fb-84c08a968e61-image.png

                          ⚠️ 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. 🤔

                          I use Cloudron with Gandi & Hetzner

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