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. Mautic
  3. Installation of plugins is broken in Mautic package

Installation of plugins is broken in Mautic package

Scheduled Pinned Locked Moved Mautic
22 Posts 6 Posters 1.6k Views 6 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.
  • dsp76D Offline
    dsp76D Offline
    dsp76
    wrote on last edited by
    #13

    @girish I will need to check with our devs. I fear that the composer requires some write access in protected directories - so if it changes or adds something, for instance in the /vendor directory, this will be in the protected environment in Cloudron, right?

    Looking forward to your experiences. Thanks a lot!

    (I promoted the Cloudron approach in a recent community call in D/A/CH... so I could imagine there are some people watching the progress too. No pressure 😄 )

    (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

    1 Reply Last reply
    0
    • dsp76D dsp76 referenced this topic on
    • dsp76D Offline
      dsp76D Offline
      dsp76
      wrote on last edited by
      #14

      @girish no that won't work, as the installation needs the central composer.json and also update it. It also loads more directories into the vendor directory, which is read-only in Cloudron. Did you come to some conclusion with your experiments?

      Looks to me like the Mautic plugin concept doesn't work well with the Cloudron way of things.

      Potential Scenarios:

      1. Plugins should be installed with composer, a lot of directories and the central composer.json would need to be writable... not good.
      2. Cloudron Mautic image would have some basic required plugins preinstalled, how to decide which? For me it would be (AWS)Mail, Custom Objects, Multi Domain plugins. Probably it would need to be different mailers. But this would increase maintenance, as plugins may have urgent updates outside of release cycles of Mautic.
      3. Cloudron set up like WordPress (Dev) - like a preinstall but without continuous updates of core (because that would kill customizations). A little improvement, as the initial installation is fine and working (at least causing 50% of Mautic beginners trouble otherwise).
      4. Cloudron self maintained on LAMP stack. Almost all the benefits of Cloudron lost.

      Which other options did I miss?

      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

      girishG 1 Reply Last reply
      3
      • dsp76D dsp76

        @girish no that won't work, as the installation needs the central composer.json and also update it. It also loads more directories into the vendor directory, which is read-only in Cloudron. Did you come to some conclusion with your experiments?

        Looks to me like the Mautic plugin concept doesn't work well with the Cloudron way of things.

        Potential Scenarios:

        1. Plugins should be installed with composer, a lot of directories and the central composer.json would need to be writable... not good.
        2. Cloudron Mautic image would have some basic required plugins preinstalled, how to decide which? For me it would be (AWS)Mail, Custom Objects, Multi Domain plugins. Probably it would need to be different mailers. But this would increase maintenance, as plugins may have urgent updates outside of release cycles of Mautic.
        3. Cloudron set up like WordPress (Dev) - like a preinstall but without continuous updates of core (because that would kill customizations). A little improvement, as the initial installation is fine and working (at least causing 50% of Mautic beginners trouble otherwise).
        4. Cloudron self maintained on LAMP stack. Almost all the benefits of Cloudron lost.

        Which other options did I miss?

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

        @dsp76 I think your analysis is spot on. I don't really have a solution. I think people who want to use custom plugins/marketplace will have to use the LAMP app and install mautic themselves.

        Just my 2c . As it stands, mautic's marketplace/plugin mechanism is untenable. Basically, a plugin can have random requirements, and it can change the dependencies that mautic was actually tested and released with. If you install multiple plugins.. forget updates, even the installation is at best in an unknown state and one has to go with "it worked when i clicked around". I doubt Mautic upstream devs have the resources to debug such setups. Indeed, I don't know who this system is intended for. I am not part of Mautic community, so I might be completely missing the point of plugins.

        About the actual plugins themselves:

        • Multi Domain plugins does not work with Mautic 5 .
        • For the AWS bounce processing, this thread suggests some plugins. Those plugins don't even have 5 stars. In fact, one of them has 0 stars. I think pre-bundling such code is out of question.
        • Custom Objects - is actually maintained. And tbh, it's the only plugin which is developed in entire Mautic it seems 😉 Maybe because this is also by the authors of Mautic.

        This is not a critique of Mautic, we use Mautic ourselves. Just that one has to limit oneself to using it without plugins.

        1 Reply Last reply
        2
        • Dave SwiftD Offline
          Dave SwiftD Offline
          Dave Swift
          wrote on last edited by
          #16

          I've been trying to install Mautic via the LAMP app and it seems like it won't work. Has anyone been able to do this successfully?

          1 Reply Last reply
          0
          • dsp76D Offline
            dsp76D Offline
            dsp76
            wrote on last edited by
            #17

            @Dave-Swift I did. I needed to tweak composer a bit. I think I needed to change some environment variable, as composer did expect to write to a read only directory. I wanted to look it up in my shell history, but thats empty now...

            (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

            micmcM 1 Reply Last reply
            2
            • Dave SwiftD Offline
              Dave SwiftD Offline
              Dave Swift
              wrote on last edited by
              #18

              Thanks @dsp76. I figured it was something like that.

              It would be great to have a one-click Mautic Dev install, like we have for WordPress!

              1 Reply Last reply
              2
              • dsp76D dsp76

                @Dave-Swift I did. I needed to tweak composer a bit. I think I needed to change some environment variable, as composer did expect to write to a read only directory. I wanted to look it up in my shell history, but thats empty now...

                micmcM Offline
                micmcM Offline
                micmc
                wrote on last edited by
                #19

                @dsp76 said in Installation of plugins is broken in Mautic package:

                @Dave-Swift I did. I needed to tweak composer a bit. I think I needed to change some environment variable, as composer did expect to write to a read only directory. I wanted to look it up in my shell history, but thats empty now...

                So, how does it sounds like until now would that be sustainable?

                And, is it just me or it seems like since Mautic 5 and Cloudron 8.x it is incredibly slooow to save things in configuration sometimes it takes up to a minute?
                And I run A BIG server. Anyone has noticed such thing or would be aware of the reason for this slow configuration saving?

                Ignorance is not an excuse anymore!
                https://AutomateKit.com

                J 1 Reply Last reply
                0
                • micmcM micmc

                  @dsp76 said in Installation of plugins is broken in Mautic package:

                  @Dave-Swift I did. I needed to tweak composer a bit. I think I needed to change some environment variable, as composer did expect to write to a read only directory. I wanted to look it up in my shell history, but thats empty now...

                  So, how does it sounds like until now would that be sustainable?

                  And, is it just me or it seems like since Mautic 5 and Cloudron 8.x it is incredibly slooow to save things in configuration sometimes it takes up to a minute?
                  And I run A BIG server. Anyone has noticed such thing or would be aware of the reason for this slow configuration saving?

                  J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #20

                  @micmc said in Installation of plugins is broken in Mautic package:

                  And, is it just me or it seems like since Mautic 5 and Cloudron 8.x it is incredibly slooow to save things in configuration sometimes it takes up to a minute?

                  Can you maybe open a separate thread about this? Are you able to reproduce this with the demo instance?

                  micmcM 1 Reply Last reply
                  0
                  • J joseph

                    @micmc said in Installation of plugins is broken in Mautic package:

                    And, is it just me or it seems like since Mautic 5 and Cloudron 8.x it is incredibly slooow to save things in configuration sometimes it takes up to a minute?

                    Can you maybe open a separate thread about this? Are you able to reproduce this with the demo instance?

                    micmcM Offline
                    micmcM Offline
                    micmc
                    wrote on last edited by
                    #21

                    @joseph Yeah, I'll open a new thread about this, right.
                    Thanks and I tried with the DEMO as you suggested, and on the demo it's quite fast as it should be however since I'm referring to the saving in configuration section which can take up to a minute, I do not think in the DEMO version changes made really save whatever to the database, hence likely why it is fast.

                    Ignorance is not an excuse anymore!
                    https://AutomateKit.com

                    1 Reply Last reply
                    1
                    • dsp76D Offline
                      dsp76D Offline
                      dsp76
                      wrote on last edited by
                      #22

                      Here is the tweak, to use composer with NPM in the LAMP stack (@girish might be interesting for other apps in the LAMP stack as well, if someone with knowledge can confirm this approach):

                      export NPM_CONFIG_CACHE=/tmp/npm_cache
                      export NPM_CONFIG_USERCONFIG=/tmp/.npmrc
                      

                      then

                      mkdir -p /tmp/npm_cache
                      touch /tmp/.npmrc
                      
                      npm ci --prefer-offline --no-audit
                      

                      probably better prefix it with

                      sudo -E -u www-data ...
                      

                      otherwise new created directories have the wrong ownership and need to be adjusted with

                      chown www-data:www-data MailjetBundle/ -R
                      

                      "MailjetBundle" was the example I used it for.

                      (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                      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