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. Redmine
  3. Failure installing "additionals" plugin due to RO filesystem

Failure installing "additionals" plugin due to RO filesystem

Scheduled Pinned Locked Moved Solved Redmine
9 Posts 2 Posters 1.3k Views 2 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.
    • I Offline
      I Offline
      iets247
      wrote on last edited by
      #1

      Hi,

      I've tried to install the "additionals" plugin for Redmine on the latest available Cloudron Redmine version using the following commands in app/code:

      git clone -b main https://github.com/AlphaNodes/additionals.git plugins/additionals
      bundle config set --local without 'development test'
      bundle install
      bundle exec rake redmine:plugins:migrate RAILS_ENV=production

      However, the rake fails with:
      rake aborted!
      Could not create directory /app/code/public/images/emojis: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis
      ...
      Caused by:
      Errno::EROFS: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis
      /app/code/plugins/additionals/lib/additionals/gemify.rb:15:in `install_emoji_assets'

      Looking at the listing of app/code suggests that ./public OR at least ./public/images should be symbolic linked to the equivalent writeable item in app/data much like app/code/plugins and app/code/public/plugin_assets

      At minimum, please consider exposing ./public/images through app/data/public/images.

      Preferably please consider exposing ./public through app/data/public for more flexibility - it's understood that modifications made to these files directly may be overwritten/negated by an update, but at least the modifications could be re-applied as necessary and added files would remain unaffected across updates?

      Kindly advise the way forward...

      Thanks in advance!

      girishG 1 Reply Last reply
      0
      • I iets247

        Hi,

        I've tried to install the "additionals" plugin for Redmine on the latest available Cloudron Redmine version using the following commands in app/code:

        git clone -b main https://github.com/AlphaNodes/additionals.git plugins/additionals
        bundle config set --local without 'development test'
        bundle install
        bundle exec rake redmine:plugins:migrate RAILS_ENV=production

        However, the rake fails with:
        rake aborted!
        Could not create directory /app/code/public/images/emojis: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis
        ...
        Caused by:
        Errno::EROFS: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis
        /app/code/plugins/additionals/lib/additionals/gemify.rb:15:in `install_emoji_assets'

        Looking at the listing of app/code suggests that ./public OR at least ./public/images should be symbolic linked to the equivalent writeable item in app/data much like app/code/plugins and app/code/public/plugin_assets

        At minimum, please consider exposing ./public/images through app/data/public/images.

        Preferably please consider exposing ./public through app/data/public for more flexibility - it's understood that modifications made to these files directly may be overwritten/negated by an update, but at least the modifications could be re-applied as necessary and added files would remain unaffected across updates?

        Kindly advise the way forward...

        Thanks in advance!

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

        @iets247 I have to try this out myself but have you see https://docs.cloudron.io/apps/redmine/#installing-plugins already ? You have to extract the plugin into /app/data/plugins

        I 1 Reply Last reply
        0
        • girishG girish

          @iets247 I have to try this out myself but have you see https://docs.cloudron.io/apps/redmine/#installing-plugins already ? You have to extract the plugin into /app/data/plugins

          I Offline
          I Offline
          iets247
          wrote on last edited by
          #3

          @girish yes, I read those instructions...executing
          git clone -b main https://github.com/AlphaNodes/additionals.git plugins/additionals

          from app/code or app/data effectively does the same "extract" the plugin into /app/data/plugins/additionals

          except the new folder "additionals" and its sub-folders and files are owned by root:root
          I executed chown -hR cloudron:cloudron ./additionals to match with existing folders/files in /app/data/plugins

          The rake fails as follows due to /app/code/public/images being read-only:

          Could not create directory /app/code/public/images/emojis: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis

          Thanks for looking into this...

          girishG 1 Reply Last reply
          0
          • I iets247

            @girish yes, I read those instructions...executing
            git clone -b main https://github.com/AlphaNodes/additionals.git plugins/additionals

            from app/code or app/data effectively does the same "extract" the plugin into /app/data/plugins/additionals

            except the new folder "additionals" and its sub-folders and files are owned by root:root
            I executed chown -hR cloudron:cloudron ./additionals to match with existing folders/files in /app/data/plugins

            The rake fails as follows due to /app/code/public/images being read-only:

            Could not create directory /app/code/public/images/emojis: Read-only file system @ dir_s_mkdir - /app/code/public/images/emojis

            Thanks for looking into this...

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

            @iets247 I think this is a bug in the plugin. I have reported it upstream - https://github.com/AlphaNodes/additionals/issues/138

            I 1 Reply Last reply
            0
            • girishG girish

              @iets247 I think this is a bug in the plugin. I have reported it upstream - https://github.com/AlphaNodes/additionals/issues/138

              I Offline
              I Offline
              iets247
              wrote on last edited by
              #5

              @girish thanks, while pending on upstream investigation of the plugin, what's the feasibility to change /public to be a symbolic link from /app/data so it is by default no longer read-only or at least as an interim "workaround"?

              girishG 1 Reply Last reply
              0
              • I iets247

                @girish thanks, while pending on upstream investigation of the plugin, what's the feasibility to change /public to be a symbolic link from /app/data so it is by default no longer read-only or at least as an interim "workaround"?

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

                @iets247 We can't symlink because it will cause issues when we provide updates. The files in public are readonly because those files come from upstream and they will change in upcoming releases.

                Note that the plugin files are very much editable. So, as a hack, can you try disabling this line of code in the plugin https://github.com/AlphaNodes/additionals/blob/55312e4fa591d1f6efb0f1cf1705c0200fbc4f70/lib/additionals.rb#L174 ? Basically:

                      # Additionals::Gemify.install_emoji_assets
                

                I don't know what is the effect of not having emoji assets though.

                I 1 Reply Last reply
                0
                • girishG girish

                  @iets247 We can't symlink because it will cause issues when we provide updates. The files in public are readonly because those files come from upstream and they will change in upcoming releases.

                  Note that the plugin files are very much editable. So, as a hack, can you try disabling this line of code in the plugin https://github.com/AlphaNodes/additionals/blob/55312e4fa591d1f6efb0f1cf1705c0200fbc4f70/lib/additionals.rb#L174 ? Basically:

                        # Additionals::Gemify.install_emoji_assets
                  

                  I don't know what is the effect of not having emoji assets though.

                  I Offline
                  I Offline
                  iets247
                  wrote on last edited by
                  #7

                  @girish noted and understood, thank you.

                  girishG 1 Reply Last reply
                  0
                  • I iets247

                    @girish noted and understood, thank you.

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

                    @iets247 The author has made a fix upstream.

                    I 1 Reply Last reply
                    0
                    • girishG girish

                      @iets247 The author has made a fix upstream.

                      I Offline
                      I Offline
                      iets247
                      wrote on last edited by
                      #9

                      @girish thanks for the update...I confirm the installation now succeeds on the current version of Cloudron's bundledRedmine application when using the latest main branch of the plugin which includes the author's fix...

                      1 Reply Last reply
                      1
                      • nebulonN nebulon marked this topic as a question on
                      • nebulonN nebulon has marked this topic as solved on
                      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