Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved HumHub - social network software

    App Wishlist
    17
    126
    15399
    Loading More Posts
    • 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.
    • jdaviescoates
      jdaviescoates last edited by jdaviescoates

      I think this is probably the best current open source self-hosted alternative to Facebook Groups, would be great to have it on Cloudron!

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply Reply Quote 1
      • fbartels
        fbartels App Dev last edited by

        I recently talked to the CEO of Humhub and also made him aware of Cloudron and this topic. He said that they are currently busy with investigating ways to automate deployments in container scenarios and once that is solved they would be open to collaborate on an app for Cloudron.

        jdaviescoates 1 Reply Last reply Reply Quote 8
        • jdaviescoates
          jdaviescoates @fbartels last edited by

          @fbartels nice one, keep us posted! 🙂

          I use Cloudron with Gandi & Hetzner

          Sam_uk 1 Reply Last reply Reply Quote 1
          • kaxline
            kaxline last edited by

            I was able to migrate a Humhub instance to Cloudron inside the LAMP app. If anyone comes here wanting to do the same and is running into trouble, feel free to ping me.

            doodlemania2 1 Reply Last reply Reply Quote 6
            • Sam_uk
              Sam_uk @nebulon last edited by

              @nebulon I'd be potentially interested in this. How much work would it be do you think?

              1 Reply Last reply Reply Quote 1
              • Sam_uk
                Sam_uk @jdaviescoates last edited by

                @jdaviescoates @fbartels Yes I'm interested in this too.

                1 Reply Last reply Reply Quote 1
                • doodlemania2
                  doodlemania2 App Dev @kaxline last edited by

                  @kaxline I might could package this for you if you send me the instructions for how you did it in LAMP stack!

                  kaxline Sam_uk 2 Replies Last reply Reply Quote 6
                  • kaxline
                    kaxline @doodlemania2 last edited by

                    @doodlemania2 Ah OK, cool! I'll see if I can write down my process.

                    jdaviescoates Sam_uk 2 Replies Last reply Reply Quote 2
                    • jdaviescoates
                      jdaviescoates @kaxline last edited by

                      @kaxline said in HumHub - social network software:

                      I'll see if I can write down my process.

                      Did you manage to do that? I'd love to be able to use HumHub on Cloudon 🙂

                      Thanks!

                      I use Cloudron with Gandi & Hetzner

                      scooke Sam_uk 2 Replies Last reply Reply Quote 0
                      • scooke
                        scooke @jdaviescoates last edited by

                        @jdaviescoates Does it not install easily in the LAMP app?

                        A life lived in fear is a life half-lived

                        jdaviescoates 1 Reply Last reply Reply Quote 0
                        • jdaviescoates
                          jdaviescoates @scooke last edited by jdaviescoates

                          @scooke I don't know, I've not tried it (I've not tried installing on anything on LAMP stack because in my eyes that kinda defeats the purpose of Cloudron 🙂 although it's great it's an option)

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply Reply Quote 1
                          • Sam_uk
                            Sam_uk @kaxline last edited by

                            @kaxline Did you get a chance to do this yet?

                            1 Reply Last reply Reply Quote 1
                            • L
                              Lealda last edited by

                              Many local companies are adopting it, any news about being added?

                              scooke 1 Reply Last reply Reply Quote 1
                              • scooke
                                scooke @Lealda last edited by

                                @lealda Really? Could you share some links please? I'm interested in how it looks, how it is presented, etc.

                                A life lived in fear is a life half-lived

                                L 1 Reply Last reply Reply Quote 1
                                • Sam_uk
                                  Sam_uk @doodlemania2 last edited by

                                  @doodlemania2 Would it be a lot of work to start from scratch?

                                  doodlemania2 1 Reply Last reply Reply Quote 0
                                  • L
                                    Lealda @scooke last edited by Lealda

                                    @sam_uk said in HumHub - social network software:

                                    @doodlemania2 Would it be a lot of work to start from scratch?

                                    I am trying to run it, but cron is failing and some other errors. I noticed that on docker they use 1.6.
                                    https://hub.docker.com/r/mriedmann/humhub

                                    1 Reply Last reply Reply Quote 0
                                    • doodlemania2
                                      doodlemania2 App Dev @Sam_uk last edited by

                                      @sam_uk well it could be - if you can share the instructions for how to install it on LAMP app, I might could back port that into a custom full blown app.

                                      Sam_uk L 3 Replies Last reply Reply Quote 1
                                      • Sam_uk
                                        Sam_uk @doodlemania2 last edited by

                                        @doodlemania2 I have no experience of running it I'm afraid.

                                        The Lamp instructions are here: https://docs.humhub.org/docs/admin/server-setup/

                                        1 Reply Last reply Reply Quote 1
                                        • L
                                          Lealda @doodlemania2 last edited by

                                          @doodlemania2
                                          It would be wonderful if you could.

                                          1 Reply Last reply Reply Quote 1
                                          • Sam_uk
                                            Sam_uk @doodlemania2 last edited by

                                            I wonder if Gitcoin could be useful for app bounties?

                                            I posted here: https://forum.cloudron.io/topic/4951/gitcoin-for-app-bounties

                                            I couldn't commit to putting funds in from my organisation yet, but it's something I could explore if there was a transparent way of handling payments.

                                            1 Reply Last reply Reply Quote 0
                                            • Sam_uk
                                              Sam_uk @jdaviescoates last edited by

                                              @jdaviescoates @doodlemania2 @kaxline Has anyone done any work on Humhub? I'm pretty keen and may be able to pay if I had an idea of how much work it would be.

                                              doodlemania2 1 Reply Last reply Reply Quote 2
                                              • doodlemania2
                                                doodlemania2 App Dev @Sam_uk last edited by

                                                @sam_uk I'm going to try next week when things at work calm down a bit.

                                                Sam_uk 1 Reply Last reply Reply Quote 7
                                                • Sam_uk
                                                  Sam_uk @doodlemania2 last edited by

                                                  @doodlemania2 Great stuff, thanks..

                                                  doodlemania2 1 Reply Last reply Reply Quote 1
                                                  • doodlemania2
                                                    doodlemania2 App Dev @Sam_uk last edited by

                                                    All - I wanted to report back and not just be a flake - I've been saddled with a crazy go nuts project at work and won't be able to work on this for a while. I've really very sorry, I had gotten everything loaded and was about to start 😞

                                                    I hope another app_dev person can pick this up!

                                                    Sam_uk 1 Reply Last reply Reply Quote 4
                                                    • Sam_uk
                                                      Sam_uk @doodlemania2 last edited by

                                                      @doodlemania2 Ah no worries, thanks for letting us know.

                                                      I wonder if @ATRILAHIJI could take a look at it and estimate the work involved?

                                                      Sam_uk 1 Reply Last reply Reply Quote 0
                                                      • Sam_uk
                                                        Sam_uk @Sam_uk last edited by

                                                        @sam_uk Just to update @atrilahiji is going to take a look at this one over the next couple of weeks.

                                                        1 Reply Last reply Reply Quote 2
                                                        • ?
                                                          A Former User last edited by

                                                          I have it "working" as in it deploys just fine, but it will need manual DB, SMTP, and LDAP config at the moment.

                                                          They seem to prefer to route everyone through web UI configuration instead of easy CLI config. Looks like I gotta find what DB entries the config makes and do it manually 👀

                                                          doodlemania2 1 Reply Last reply Reply Quote 0
                                                          • doodlemania2
                                                            doodlemania2 App Dev @Guest last edited by

                                                            @atrilahiji Make sure to take advantage of the environment vars inside the container for all CR apps which provide you with full connection details of all associated resources from your manifest.

                                                            ? 1 Reply Last reply Reply Quote 1
                                                            • ?
                                                              A Former User @doodlemania2 last edited by

                                                              @doodlemania2 Yeah for sure, I'm going to make use of those.

                                                              1 Reply Last reply Reply Quote 2
                                                              • ?
                                                                A Former User last edited by

                                                                I got permission from @Sam_uk to make the repo public:
                                                                https://git.atrilahiji.dev/Alt-Ron/cloudron-humhub-app

                                                                Todo:

                                                                1. Properly address the update process
                                                                2. See if its possible to config LDAP and SMTP automatically (this is the part I am really struggling with right now.
                                                                fbartels Sam_uk 2 Replies Last reply Reply Quote 2
                                                                • fbartels
                                                                  fbartels App Dev @Guest last edited by

                                                                  @atrilahiji said in HumHub - social network software:

                                                                  this is the part I am really struggling with right now

                                                                  Did you already have a look at https://github.com/humhub/docker/blob/master/docker-entrypoint.sh ?

                                                                  ? 1 Reply Last reply Reply Quote 1
                                                                  • ?
                                                                    A Former User @fbartels last edited by A Former User

                                                                    @fbartels Wowee nope. Good catch lol

                                                                    EDIT: You know, I have no clue why it never occurred to me that I can look for a docker version of the app.

                                                                    1 Reply Last reply Reply Quote 1
                                                                    • ?
                                                                      A Former User last edited by

                                                                      I have finished getting things automated (sort of). The DB is set up on the first install, and the LDAP and SMTP configuration is set up after a re-start (and is updated after every restart).

                                                                      1 Reply Last reply Reply Quote 4
                                                                      • ?
                                                                        A Former User last edited by A Former User

                                                                        Encountering a snag:

                                                                        The ONLYOFFICE integration seems to fail to send the JWT token to an ONLYOFFICE instance. My best guess rn is its an issue with apache -> nginx -> ONLYOFFICE. Is anyone else more familiar with this sort of reverse proxy issue?

                                                                        Edit: Fixed it. Testing and pushing a new release.

                                                                        Edit 2: I am tempted to leave updating to the app, similar to Wordpress Developer Edition. I auto install the Updater module. If @staff want to take a look at this let me know. Repo is here: https://git.atridad.dev/CTPR/cloudron-humhub-app. It was a sponsored app. If you need an instance to take a look at it let me know via a direct message and I can let you in @staff.

                                                                        girish 1 Reply Last reply Reply Quote 4
                                                                        • girish
                                                                          girish Staff @Guest last edited by

                                                                          @atrilahiji ah, great stuff! Ideally, the app shouldn't update itself and the code should be readonly. Is that possible? It's best to keep updates consistent i.e from Cloudron dashboard.

                                                                          ? 1 Reply Last reply Reply Quote 0
                                                                          • ?
                                                                            A Former User @girish last edited by

                                                                            @girish I can definitely try. Much like Moodle, it has a lot of plugins or "modules" people use. I think in this instance they are all in a single directory though. I'll take a look.

                                                                            girish 1 Reply Last reply Reply Quote 0
                                                                            • girish
                                                                              girish Staff @Guest last edited by

                                                                              @atrilahiji thanks! let me know if you hit any bumps and I can take a look as well.

                                                                              ? 2 Replies Last reply Reply Quote 1
                                                                              • ?
                                                                                A Former User @girish last edited by

                                                                                @girish Sure, thanks! I'll shuffle some things around in the package and see what I can do. My hope is I can just symlink everything that is needed in a migration to /app/data, which will also make updates a lot easier.

                                                                                1 Reply Last reply Reply Quote 1
                                                                                • ?
                                                                                  A Former User @girish last edited by A Former User

                                                                                  @girish Actually, I just thought of something. If the modules folder is symlinked and the app is expecting to write to the modules folder in /app/code, it will error right? I imagine it wouldn't just look at the actual folder in /app/data. The trouble here is there is a "module store" of sorts built right into the app.

                                                                                  girish 1 Reply Last reply Reply Quote 0
                                                                                  • girish
                                                                                    girish Staff @Guest last edited by

                                                                                    @atrilahiji maybe you can symlink /app/code/modules to /app/data/modules and that way it will become writable.

                                                                                    To give a high level idea, let's say humhub app comes with some default modules. Then, in Dockerfile, you would move them to some other location like:

                                                                                    RUN mv /app/code/modules /app/code/modules_orig && ln -s /app/data/modules /app/code/modules

                                                                                    Then in start.sh:

                                                                                    mkdir -p /app/code/modules
                                                                                    cp -r /app/code/modules_orig/* /app/data/modules
                                                                                    

                                                                                    In many apps, instead of the blind copy above, we try to symlink each "module". So, there will be a symlink from /app/data/modules/x to /app/code/modules_orig/x . This sometimes works or not depending on the app. But hopefully you get the idea!

                                                                                    ? 2 Replies Last reply Reply Quote 2
                                                                                    • ?
                                                                                      A Former User @girish last edited by

                                                                                      @girish my confusion here is if the app still tries to write to /app/code/modules it would hit permissions issues no?

                                                                                      fbartels 1 Reply Last reply Reply Quote 0
                                                                                      • ?
                                                                                        A Former User @girish last edited by A Former User

                                                                                        @girish Running into issues here: https://docs.humhub.org/docs/admin/installation/#file-permissions

                                                                                        There appears to be no way to configure where Hubhub looks for those files, so it will just keep trying to write to the symlink in /app/code and fail. In fact, you cant even get the site to load after installation without having the assets directory writable. This is something it has to do on startup. I can still make an update script for this, but I think it will have to sit in /app/data just based on how this was written. Unless I'm missing something?

                                                                                        1 Reply Last reply Reply Quote 0
                                                                                        • fbartels
                                                                                          fbartels App Dev @Guest last edited by

                                                                                          @atrilahiji said in HumHub - social network software:

                                                                                          if the app still tries to write to /app/code/modules it would hit permissions issues no?

                                                                                          no, that should not be the case (at least when the symlinked dir has proper permissions for this).

                                                                                          ? 1 Reply Last reply Reply Quote 0
                                                                                          • ?
                                                                                            A Former User @fbartels last edited by

                                                                                            @fbartels Weird... it seemed to think it didn't have permission to write...

                                                                                            ? 1 Reply Last reply Reply Quote 0
                                                                                            • ?
                                                                                              A Former User @Guest last edited by

                                                                                              319b926a-e20f-46d8-973d-27592726f97b-image.png

                                                                                              scooke fbartels 2 Replies Last reply Reply Quote 1
                                                                                              • scooke
                                                                                                scooke @Guest last edited by

                                                                                                @atrilahiji Never stop never stopping! You're doing great!

                                                                                                A life lived in fear is a life half-lived

                                                                                                1 Reply Last reply Reply Quote 1
                                                                                                • fbartels
                                                                                                  fbartels App Dev @Guest last edited by

                                                                                                  @atrilahiji can you push your current wip? I'd like to give the code a look.

                                                                                                  ? 1 Reply Last reply Reply Quote 1
                                                                                                  • ?
                                                                                                    A Former User @fbartels last edited by A Former User

                                                                                                    @fbartels Sure thing: https://git.atridad.dev/alt-ron/cloudron-humhub-app/-/tree/harden-app-code

                                                                                                    Thanks! I'm convinced this is 1) impossible or 2) something so simple yet I have not noticed it somehow

                                                                                                    fbartels 1 Reply Last reply Reply Quote 1
                                                                                                    • fbartels
                                                                                                      fbartels App Dev @Guest last edited by

                                                                                                      @atrilahiji for me this works with

                                                                                                      ➜  cloudron-humhub-app git:(harden-app-code) git rev-parse --short HEAD
                                                                                                      0b5df1c
                                                                                                      

                                                                                                      Steps I tried:

                                                                                                      • Install app (in debug mode, but only so that i could override and start the start.sh manually)
                                                                                                      • finished Humhub installation
                                                                                                      • went into admin and selected modules
                                                                                                      • installed a module
                                                                                                      • activated a module
                                                                                                      • no php error can be seen
                                                                                                      ? 1 Reply Last reply Reply Quote 1
                                                                                                      • ?
                                                                                                        A Former User @fbartels last edited by

                                                                                                        @fbartels Huh so you manually started start.sh from the terminal in recovery mode? I get the exact same error doing that. Did you do something else to modify the permissions?

                                                                                                        fbartels 1 Reply Last reply Reply Quote 0
                                                                                                        • fbartels
                                                                                                          fbartels App Dev @Guest last edited by

                                                                                                          @atrilahiji no, no changes at all. maybe some leftovers from a previous installation of yours?

                                                                                                          Yes, you can run cloudron install --debug where then the init script is not run. you then need to exec into the app and run it manually.

                                                                                                          ? 2 Replies Last reply Reply Quote 1
                                                                                                          • ?
                                                                                                            A Former User @fbartels last edited by

                                                                                                            @fbartels ahhh I see what you mean. I'll try that.

                                                                                                            1 Reply Last reply Reply Quote 0
                                                                                                            • ?
                                                                                                              A Former User @fbartels last edited by A Former User

                                                                                                              @fbartels Oh weird yeah that works... no clue why it wouldn't work if the start.sh is run normally during an install...

                                                                                                              IDK if you saw the same error but if I don't start in debug mode and switch to Recovery Mode, running start.sh results in a permission error for PHP again.

                                                                                                              EDIT: Nvm I think I figured it out...

                                                                                                              fbartels 2 Replies Last reply Reply Quote 0
                                                                                                              • fbartels
                                                                                                                fbartels App Dev @Guest last edited by

                                                                                                                @atrilahiji ah nevermind, i forgot that part of debug is that the container is not read-only. Looking at the code now a bit closer.

                                                                                                                1 Reply Last reply Reply Quote 1
                                                                                                                • fbartels
                                                                                                                  fbartels App Dev @Guest last edited by

                                                                                                                  @atrilahiji the modules directory does not exist at all in /app/code and then it fails at creating it in the first place. You have to prepare this in a similar way to https://git.atridad.dev/alt-ron/cloudron-humhub-app/-/blob/harden-app-code/Dockerfile#L78-80 where the folder symlink needs to already be created during docker build and then in start.sh you need to make sure that the folder and its default contents exist.

                                                                                                                  ? 1 Reply Last reply Reply Quote 1
                                                                                                                  • ?
                                                                                                                    A Former User @fbartels last edited by

                                                                                                                    @fbartels I think I got it working finally. I'll test it one more time and then push the code up.

                                                                                                                    1 Reply Last reply Reply Quote 1
                                                                                                                    • ?
                                                                                                                      A Former User last edited by A Former User

                                                                                                                      This should work now: https://git.atridad.dev/alt-ron/cloudron-humhub-app/-/releases/0.8.0

                                                                                                                      Now to tackle updates. With everything we need in /app/data now it should be a piece of cake. Thanks for the help @fbartels !

                                                                                                                      fbartels 1 Reply Last reply Reply Quote 1
                                                                                                                      • fbartels
                                                                                                                        fbartels App Dev @Guest last edited by

                                                                                                                        @atrilahiji yes, now it also starts in normal (non debug) mode. A nice addition would be auto configuration of ldap.

                                                                                                                        ? 2 Replies Last reply Reply Quote 1
                                                                                                                        • ?
                                                                                                                          A Former User @fbartels last edited by

                                                                                                                          @fbartels I thought I had that set up, but I might have broken it. I'll look into it.

                                                                                                                          1 Reply Last reply Reply Quote 1
                                                                                                                          • ?
                                                                                                                            A Former User @fbartels last edited by A Former User

                                                                                                                            @fbartels AH so it does, but on restart. The reason being is it does not let me configure LDAP until the app is installed in the ui on first boot.

                                                                                                                            Testing both new installs and updates right now for a 1.0.0 release.

                                                                                                                            1 Reply Last reply Reply Quote 3
                                                                                                                            • First post
                                                                                                                              Last post
                                                                                                                            Powered by NodeBB