• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    How To Restore a database backup ?

    Mango Automation Installation
    2
    29
    15.4k
    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.
    • phildunlapP
      phildunlap
      last edited by

      It will recreate itself if there is no database at the path specified in env.properties

      What error are you getting when you start it? It's also possible there's a quick fix using the Mango/bin/h2-web-console.sh script.

      1 Reply Last reply Reply Quote 0
      • P
        Phillip Weeks
        last edited by

        ok I have it starting up
        Ill let you know how I make out
        looks promising

        1 Reply Last reply Reply Quote 0
        • P
          Phillip Weeks
          last edited by

          when I pick the database to restore there are two entries .zip and .zip.zip
          which one is the correct selection??

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            .zip, the .zip.zip issue was recently fixed. If you'll look you're see .zip.zip is 0 bytes.

            1 Reply Last reply Reply Quote 0
            • P
              Phillip Weeks
              last edited by

              do I restart the server immediately or wait a few mins while this unzips?

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                Shouldn't matter. As long as you do not kill -9 the process it will wait for the task to finish.

                1 Reply Last reply Reply Quote 0
                • P
                  Phillip Weeks
                  last edited by

                  I had no success restoring the backup db. I tried several times and also copied the zip to my laptop to see if I could restore it on that system but no either way it hangs on restart.. Is it possible for me to send you the zip file and you send me back a mah2 db that I can just put into that directory?

                  1 Reply Last reply Reply Quote 0
                  • phildunlapP
                    phildunlap
                    last edited by

                    Can you describe what you mean 'hangs on restart' more fully?

                    Do you have an error when starting Mango that prevents Mango from starting?

                    1 Reply Last reply Reply Quote 0
                    • P
                      Phillip Weeks
                      last edited by

                      Okay I was able to get the db up on my laptop by starting it in SAFE mode (thank God) so its a memory issue on the laptop hanging. On the cloud server I have lots of memory. Can I now just copy this mah2.db and mah2.lock to my cloud server's database folder. and start cloud mango?

                      1 Reply Last reply Reply Quote 0
                      • phildunlapP
                        phildunlap
                        last edited by

                        You don't need the lock file.

                        I don't feel like you've provided any of the information I've asked for at any stage. This will quickly disinterest me in this thread.

                        1 Reply Last reply Reply Quote 0
                        • P
                          Phillip Weeks
                          last edited by Phillip Weeks

                          Sorry I must apologize Phil, One month ago I thought mango's were delicious. So I have been learning much every day and you have provided me with much insightful help and instruction thus far. Joel's methodology worked for me to restore the backup db. It was more my misunderstanding about what was happening on my pc that was confusing me and I am not yet comfortable working in terminal window on linux so I try the stuff on the pc first. Anyhow, every issue we have been experiencing has been a result of running out of memory as the root issue. We get frozen out or it crashes. Growing pains. Tomorrow we shall have 8gb and 4 cpu's to play with and life should return to happy. A while ago you helped me with scripting the missing point interpolation and deleting outliers. Scripting is fine but I found that exporting specific data value ranges from watchlists and then importing back in through excel permits me the best control over deletion and adding points. Which was a brilliant suggestion you made to another user with same issue.
                          I have abandoned my scripting efforts on interpolating points. Thankfully you say :) lol
                          Anyway thanks again for your support and sorry for the disconnect..
                          Mango Rocks
                          I Love it :)

                          1 Reply Last reply Reply Quote 0
                          • phildunlapP
                            phildunlap
                            last edited by

                            It is alright. I'm sure you can understand that to provide the best support I have to assess what information is probably relevant and available, and then get that information. I try to keep some eye to the long term for threads, and if our exchanges contain things like the text of the exact error the user encounters or simple descriptions of exact symptoms makes everything more searchable.

                            Best of luck on the new computer! I wonder, have you been setting a heap limit with an ext-enabled script?

                            1 Reply Last reply Reply Quote 0
                            • P
                              Phillip Weeks
                              last edited by Phillip Weeks

                              Ha ha you got it I was just messaging you back about the heap size and how I go about that . We have 8gb like this... What do you recommend and how to do it. Please and thanks. I'll start including some of the data from now on # top :)
                              I'm in a different time zone than our servers in case you were wondering.

                              0_1493918548296_upload-80e46e66-e4f6-4528-81c2-3edf09187950

                              This is from inside.. Our ES is much snappier than this system right now as its configured.

                              0_1493917951405_upload-0e9568a9-949e-4575-b997-87c7f12e6938

                              1 Reply Last reply Reply Quote 0
                              • P
                                Phillip Weeks
                                last edited by Phillip Weeks

                                Hard to see so

                                0_1493920376766_upload-a5e2f1e2-1fb9-420e-b28b-f705e77eabc3

                                0_1493920265579_upload-b144a72e-c472-4f05-8eca-650121274d19

                                1 Reply Last reply Reply Quote 0
                                • phildunlapP
                                  phildunlap
                                  last edited by

                                  You can simply move a script for a correct size from Mango/bin/ext-avialable into Mango/bin/ext-enabled like memory-medium.sh, which sets a static heap of 5 Gb.

                                  For 8 you could consider modifying it to 6 Gb, like,

                                  #!/bin/bash
                                  case "$1" in
                                      init)
                                          # Startup with Java Memory setup for Medium size installation
                                          # The heap is set to non-expanding for increased performance.  If memory use is a factor
                                          # set the Minimum heap size to a lower number and let the JVM adjust when necessary.
                                          JAVAOPTS="$JAVAOPTS -Xms6g -Xmx6g"
                                          ;;
                                  esac
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Phillip Weeks
                                    last edited by

                                    That was easy .. Do I restart mango or the server to activate this configuration?

                                    1 Reply Last reply Reply Quote 0
                                    • phildunlapP
                                      phildunlap
                                      last edited by

                                      Yes, it won't take effect until the next startup, so that might mean restarting.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        Phillip Weeks
                                        last edited by

                                        OK thanks

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          Phillip Weeks
                                          last edited by Phillip Weeks

                                          I restarted and JVM max memory is still about where it was at 1775mb before the change and the server says over 2 gb free does this look right for a 6gb heap?

                                          0_1493933851254_upload-bab1380e-3642-494f-8a54-4d4d3515c14d

                                          1 Reply Last reply Reply Quote 0
                                          • phildunlapP
                                            phildunlap
                                            last edited by

                                            Looks alright. If you do a ps $(pidof java) you can see if the command line options are set.

                                            If you're getting the 1775Mb number from within Mango (i.e. internal metrics) know that Java is able to be more clever about its reporting, and even if it's allocated itself a minimum and maximum against the operating system it can expand and contract what's available for use in its own runtime.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post