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. App Wishlist
  3. ERPNext - cost-effective ERP solution

ERPNext - cost-effective ERP solution

Scheduled Pinned Locked Moved App Wishlist
122 Posts 36 Posters 70.9k Views 41 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.
  • njN nj

    To be honest I started packaging the most voted apps and ERPNext happened to be one of them. Also it saves me from installing 99 other apps now. 🙂

    The good things about this package are:

    • I don’t need to update it anymore; I can simply update the entire system without reinstalling this package

    • I’m still working to bring multi-domain to it. For now dns based multi-tenancy is showing some issues but I will fix it soon

    • If everything goes south, I can create a backup and move it to another ErpNext installation without an issue

    • Cloudron totally takes care of backup and restore and I have already tested it

    The bad things are:

    • There are two processes running (mariadb and supervisor) and cloudron will only restart the container if supervisor goes out; but maybe I’ll add a mechanism to restart mariadb myself

    • the backup size will be >1GB but if I’m using incremental backup this isn’t a big issue

    • this app is not in the app store; but I’m going to keep the package maintained, because managing an instance of Erpnext on another VPS is going to be harder than maintaining it on Cloudron because I don’t have to care about ssl, redis, backups, ldap, etc.

    So, guys, I’ll leave it here. Will let you know when an update is out.

    MooCloud_MattM Offline
    MooCloud_MattM Offline
    MooCloud_Matt
    wrote on last edited by
    #89

    @nj said in ERPNext - cost-effective ERP solution:

    Cloudron totally takes care of backup and restore and I have already tested it

    Not really, cloudron takes a snapshot of /app/data, and your database I guess don't create a dump before that happened.
    That's not really stable as a solution.

    If you could like get a dump every x time, that could be a solution, even if not perfect

    Matteo. R.
    Founder and Tech-Support Manager.
    MooCloud MSP
    Swiss Managed Service Provider

    njN 1 Reply Last reply
    1
    • MooCloud_MattM MooCloud_Matt

      @nj said in ERPNext - cost-effective ERP solution:

      Cloudron totally takes care of backup and restore and I have already tested it

      Not really, cloudron takes a snapshot of /app/data, and your database I guess don't create a dump before that happened.
      That's not really stable as a solution.

      If you could like get a dump every x time, that could be a solution, even if not perfect

      njN Offline
      njN Offline
      nj
      wrote on last edited by nj
      #90

      @MooCloud_Matt you don’t need to take a database dump because the entire mariadb database lies inside the /app/data folder.

      Founder / Coder • My Apps

      MooCloud_MattM L 2 Replies Last reply
      0
      • njN nj

        @MooCloud_Matt you don’t need to take a database dump because the entire mariadb database lies inside the /app/data folder.

        MooCloud_MattM Offline
        MooCloud_MattM Offline
        MooCloud_Matt
        wrote on last edited by
        #91

        @nj
        that is correct if you have ZFS or BTRFS, that can do a snapshot instantaneity.
        But cloudron uses a simple compression or rsync, which means that from when it starts and when it stops it takes time and in that time, data could be changed and the relationship could come out corrupted.

        postgress in their documentation, for example, suggests that if you want to use an fs snapshot you should stop the DB.

        Matteo. R.
        Founder and Tech-Support Manager.
        MooCloud MSP
        Swiss Managed Service Provider

        1 Reply Last reply
        2
        • njN nj

          @MooCloud_Matt you don’t need to take a database dump because the entire mariadb database lies inside the /app/data folder.

          L Offline
          L Offline
          LoudLemur
          wrote on last edited by
          #92

          @nj I do not know if it is permissable or even possible but how about trying to use the Cloudron Demo to setup uour ERPNext?
          We could take a look at it there.

          @girish ?

          njN 1 Reply Last reply
          0
          • L LoudLemur

            @nj I do not know if it is permissable or even possible but how about trying to use the Cloudron Demo to setup uour ERPNext?
            We could take a look at it there.

            @girish ?

            njN Offline
            njN Offline
            nj
            wrote on last edited by nj
            #93

            @LoudLemur you are right in that case. I didn’t worry because my backup schedule is at 3:00AM when nobody really used the app. If you expect people to write to the database during backup that’s an issue for sure.

            Fortunately, ErpNext has a solution for that. We can put the app in maintenance mode for a while, and as I have already setup this ErpNext package to allow database read operations during maintenance, only writes will fail, which means websites etc will still be working fine.

            Unfortunately, Cloudron doesn’t have a scheduler or cron system that can trigger a script before starting to backup and another script after backup success / failure. If @girish added a cron format like @prebackup @postbackup and @onbackupfail or simply added those options to the scheduler manifest, it would be perfect.

            Either we could put the app in maintenance mode right before backup and put the site back on afterwards . I could even run mariadb inside /run/mariadb instead of /app/data ; I would only create database backup at /app/data/mariadb-dump-datetime.sql right before backup and delete it when backup task completes.

            Also I’d like to see/know how the database addon handles backups and restoration.

            Founder / Coder • My Apps

            robiR 1 Reply Last reply
            3
            • njN nj

              @LoudLemur you are right in that case. I didn’t worry because my backup schedule is at 3:00AM when nobody really used the app. If you expect people to write to the database during backup that’s an issue for sure.

              Fortunately, ErpNext has a solution for that. We can put the app in maintenance mode for a while, and as I have already setup this ErpNext package to allow database read operations during maintenance, only writes will fail, which means websites etc will still be working fine.

              Unfortunately, Cloudron doesn’t have a scheduler or cron system that can trigger a script before starting to backup and another script after backup success / failure. If @girish added a cron format like @prebackup @postbackup and @onbackupfail or simply added those options to the scheduler manifest, it would be perfect.

              Either we could put the app in maintenance mode right before backup and put the site back on afterwards . I could even run mariadb inside /run/mariadb instead of /app/data ; I would only create database backup at /app/data/mariadb-dump-datetime.sql right before backup and delete it when backup task completes.

              Also I’d like to see/know how the database addon handles backups and restoration.

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #94

              @nj said in ERPNext - cost-effective ERP solution:

              Unfortunately, Cloudron doesn’t have a scheduler or cron system that can trigger a script before starting to backup and another script after backup success / failure. If @girish added a cron format like @prebackup @postbackup and @onbackupfail or simply added those options to the scheduler manifest, it would be perfect.

              File a feature request for this to get it in their queue.

              Conscious tech

              1 Reply Last reply
              2
              • yusfY Offline
                yusfY Offline
                yusf
                wrote on last edited by yusf
                #95

                @nj Thanks for packaging ERPNext. Its potential is vast.

                Trying out different features of it I notice that there seem to be several modules missing when compared to the ERPNext docs.

                For example Automation is missing. (Though I can reach and use event producers by searching for it, or reaching /app/event-producer directly)

                Perhaps that's all in order if your app is packing the core app only?

                njN 1 Reply Last reply
                2
                • yusfY yusf

                  @nj Thanks for packaging ERPNext. Its potential is vast.

                  Trying out different features of it I notice that there seem to be several modules missing when compared to the ERPNext docs.

                  For example Automation is missing. (Though I can reach and use event producers by searching for it, or reaching /app/event-producer directly)

                  Perhaps that's all in order if your app is packing the core app only?

                  njN Offline
                  njN Offline
                  nj
                  wrote on last edited by nj
                  #96

                  @yusf I have setup frappe to install ErpNext only. If Automation is an app, you can add any apps you like. Instructions on Github. I also installed other apps after installing this package on my cloudron. Or maybe Automation module is hidden by default and you can show it from Settings, I don’t know.

                  Founder / Coder • My Apps

                  1 Reply Last reply
                  3
                  • njN Offline
                    njN Offline
                    nj
                    wrote on last edited by
                    #97

                    I spent several days to make ErpNext work with Cloudron MySQL or Postgres. Unfortunately, postgres support is still a work in progress in ErpNext upstream and the project uses some features like CREATE SEQUENCE that are only available in MySQL, not in MariaDB. That's why the current version of this package is the most stable one.

                    My suggestion to @staff if you can, please add the MariaDB addon alongside the MySQL addon. It should be extremely easy to add because of the similarity with MySQL. There are so many open source software that use MariaDB, and will sooner or later be incompatible with MySQL.

                    Founder / Coder • My Apps

                    1 Reply Last reply
                    7
                    • girishG girish referenced this topic on
                    • L LoudLemur referenced this topic on
                    • J Offline
                      J Offline
                      JLX89
                      wrote on last edited by
                      #98

                      @staff anything further thoughts on this?

                      girishG 1 Reply Last reply
                      1
                      • J JLX89

                        @staff anything further thoughts on this?

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

                        @JLX89 doesn't seem like it's easy to host this on Cloudron yet. TBH, I don't think we will be able to support this sort of selfhosting complexity.

                        L J 2 Replies Last reply
                        0
                        • girishG girish

                          @JLX89 doesn't seem like it's easy to host this on Cloudron yet. TBH, I don't think we will be able to support this sort of selfhosting complexity.

                          L Offline
                          L Offline
                          LoudLemur
                          wrote on last edited by
                          #100

                          @girish said in ERPNext - cost-effective ERP solution:

                          TBH, I don't think we will be able to support this sort of selfhosting complexity.

                          Cloudron does brilliantly at hosting Nextcloud, which I think is a somewhat similar, complex application. What is it about Nextcloud which makes it possible where ERPnext is too tricky?

                          girishG 1 Reply Last reply
                          0
                          • L LoudLemur

                            @girish said in ERPNext - cost-effective ERP solution:

                            TBH, I don't think we will be able to support this sort of selfhosting complexity.

                            Cloudron does brilliantly at hosting Nextcloud, which I think is a somewhat similar, complex application. What is it about Nextcloud which makes it possible where ERPnext is too tricky?

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

                            @LoudLemur you can see this post by @nj who already spent 100+ hours on this. The app also (when previously investigated) required database admin credentials and had restrictions on how username/password is created etc. All this makes it basically unviable for selfhosting imo, in general. I am sure it can be made to run with Cloudron with a lot of effort , but it's not worth it (for us).

                            1 Reply Last reply
                            3
                            • girishG girish referenced this topic on
                            • timconsidineT Offline
                              timconsidineT Offline
                              timconsidine
                              App Dev
                              wrote on last edited by
                              #102

                              Totally understand @girish
                              My 2p : "big" systems deserve their own dedicated deployment, e.g. own VPS

                              1 Reply Last reply
                              3
                              • girishG girish

                                @JLX89 doesn't seem like it's easy to host this on Cloudron yet. TBH, I don't think we will be able to support this sort of selfhosting complexity.

                                J Offline
                                J Offline
                                JLX89
                                wrote on last edited by
                                #103

                                @girish Thank you for following up! Yes, that makes total sense.

                                1 Reply Last reply
                                2
                                • N Offline
                                  N Offline
                                  nilesh
                                  wrote on last edited by
                                  #104

                                  @girish Were these issues ever reported to ERPNext? I couldn't find any mention of cloudron ever in their repository: https://github.com/frappe/erpnext/issues?q=is%3Aissue+is%3Aopen+cloudron

                                  1 Reply Last reply
                                  2
                                  • N Offline
                                    N Offline
                                    nilesh
                                    wrote on last edited by
                                    #105

                                    image.png

                                    1 Reply Last reply
                                    2
                                    • M makemrproper referenced this topic on
                                    • Z Offline
                                      Z Offline
                                      zonzonzon
                                      wrote on last edited by
                                      #106

                                      Is the ERPNext package on Cloudron still operational at this point? It has been a long time since I’ve seen any updates on this topic @nj

                                      1 Reply Last reply
                                      0
                                      • njN Offline
                                        njN Offline
                                        nj
                                        wrote on last edited by nj
                                        #107

                                        Yes, the package still works.

                                        New Installation using my image

                                        To directly install ERPNext if you haven't previously, use this command:
                                        Remember to replace <yourdomain.com> with youre actual domain.

                                        cloudron login my.<yourdomain.com>
                                        cloudron install --image njsubedi/cloudron-erpnext -l erp.<yourdomain.com>

                                        Open the file manager to look for the credentials.

                                        If you need to login with LDAP, you can do that by using the terminal of this app, and run /app/pkg/setup-ldap.sh add

                                        Otherwise, that's all you need to do.

                                        Updating

                                        If you previously used ths app and want to continue using version-14, you need to do is run gosu cloudron bench update --reset once in a while to keep things up to date.

                                        Now, I have upgraded the code to use version-15 by default.

                                        If you were previously running on version-14 and now need to update to version-15 that's pretty easy too.

                                        Just run gosu cloudron bench switch-to-branch version-15 frappe erpnext --upgrade

                                        Then run gosu cloudron bench migrate

                                        Founder / Coder • My Apps

                                        B 1 Reply Last reply
                                        4
                                        • Z Offline
                                          Z Offline
                                          zonzonzon
                                          wrote on last edited by
                                          #108

                                          @nj Hello, what is the most optimal method for backing up data from Cloudron currently, especially for ERPNext on Cloudron? Thank you.

                                          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