ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Unifi 5.7 on Ubuntu 18.04

    IT Discussion
    unifi ubnt ubiquiti unifi 5.7 ubuntu ubuntu 18.04 mongodb mongodb 3.6
    8
    23
    7.9k
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Doing a stock install of Unifi 5.7 on Ubuntu 18.04 results in the web page not loading, it is either blank or eventually I get an error. I can see the ports listening, but things just don't work. This is a fresh install.

      If I look under /var/log/unifi/server.log this is repeated ad nauseum:

      [2018-05-30 03:37:13,246] <db-server> INFO  db     - DbServer stopped
      [2018-05-30 03:37:17,293] <db-server> ERROR system - [exec] error, rc=2
      [2018-05-30 03:37:17,296] <db-server> INFO  db     - DbServer stopped
      [2018-05-30 03:37:21,335] <db-server> ERROR system - [exec] error, rc=2
      [2018-05-30 03:37:21,338] <db-server> INFO  db     - DbServer stopped
      [2018-05-30 03:37:25,383] <db-server> ERROR system - [exec] error, rc=2
      [2018-05-30 03:37:25,384] <db-server> INFO  db     - DbServer stopped
      [2018-05-30 03:37:29,413] <db-server> ERROR system - [exec] error, rc=2
      [2018-05-30 03:37:29,417] <db-server> INFO  db     - DbServer stopped
      

      MongoDB is running, however. So this is confusing. Turns out that there is a compatibility issue with Unifi 5.7 and MongoDB 3.6, which is what is included with Ubuntu 18.04.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        There is a pretty simple fix. Just do this...

        systemctl stop unifi
        systemctl stop mongodb
        mv /usr/bin/mongod mongod.bin
        

        Then create a new /usr/bin/mongod with these contents:

        #!/bin/bash
        cleaned_args=$(echo $* | sed -e 's/--nohttpinterface//')
        exec /usr/bin/mongod.bin ${cleaned_args}
        

        And then run:

        chmod +x /usr/bin/mongod
        systemctl start mongodb
        systemctl start unifi
        

        And voila.

        1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch
          last edited by

          Ubiquiti clearly tells you not to use MongoDB 3.6

          0_1527656680581_675bef0f-787d-4881-8e33-2e999958fd65-image.png

          scottalanmillerS 1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller @JaredBusch
            last edited by

            @jaredbusch works great with the simple change, though.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

              @jaredbusch works great with the simple change, though.

              Then you might want to submit it to [email protected] or post on their forums.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @JaredBusch
                last edited by

                @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                @jaredbusch works great with the simple change, though.

                Then you might want to submit it to [email protected] or post on their forums.

                They have the info on their forums too, just not easy to find. It's a configuration issue with 3.6, not an issue with 3.6 itself. Part of the defaults, I believe, were changed so you just have to change how MongoDB 3.6 starts and the Unifi is perfectly happy with it and you get a modern Ubuntu, fully managed and faster MongoDB for it all, too 🙂

                PenguinWranglerP 1 Reply Last reply Reply Quote 2
                • DustinB3403D
                  DustinB3403
                  last edited by DustinB3403

                  I was going to post this over the long weekend as I was doing a distribution update and had the same issue.

                  Once I saw Ubiquity said to not use 3.6 I just reverted to 17.04

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • PenguinWranglerP
                    PenguinWrangler @scottalanmiller
                    last edited by

                    @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                    @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                    @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                    @jaredbusch works great with the simple change, though.

                    Then you might want to submit it to [email protected] or post on their forums.

                    They have the info on their forums too, just not easy to find. It's a configuration issue with 3.6, not an issue with 3.6 itself. Part of the defaults, I believe, were changed so you just have to change how MongoDB 3.6 starts and the Unifi is perfectly happy with it and you get a modern Ubuntu, fully managed and faster MongoDB for it all, too 🙂

                    Not easy to find info in UBNT forums? Wow never heard of that! They need a better way to get important info to the users. I don't know how many times there was an easy solution to a problem I had but I had to DIG through their forums to find it. Not a simple search but dig and read post after post till I found the right one.

                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @PenguinWrangler
                      last edited by JaredBusch

                      @penguinwrangler said in Unifi 5.7 on Ubuntu 18.04:

                      @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                      @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                      @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                      @jaredbusch works great with the simple change, though.

                      Then you might want to submit it to [email protected] or post on their forums.

                      They have the info on their forums too, just not easy to find. It's a configuration issue with 3.6, not an issue with 3.6 itself. Part of the defaults, I believe, were changed so you just have to change how MongoDB 3.6 starts and the Unifi is perfectly happy with it and you get a modern Ubuntu, fully managed and faster MongoDB for it all, too 🙂

                      Not easy to find info in UBNT forums? Wow never heard of that! They need a better way to get important info to the users. I don't know how many times there was an easy solution to a problem I had but I had to DIG through their forums to find it. Not a simple search but dig and read post after post till I found the right one.

                      This was right in the release note highlighted in red. How much more clear do you want?

                      BRRABillB K 2 Replies Last reply Reply Quote 1
                      • BRRABillB
                        BRRABill @JaredBusch
                        last edited by

                        @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                        @penguinwrangler said in Unifi 5.7 on Ubuntu 18.04:

                        @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                        @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                        @scottalanmiller said in Unifi 5.7 on Ubuntu 18.04:

                        @jaredbusch works great with the simple change, though.

                        Then you might want to submit it to [email protected] or post on their forums.

                        They have the info on their forums too, just not easy to find. It's a configuration issue with 3.6, not an issue with 3.6 itself. Part of the defaults, I believe, were changed so you just have to change how MongoDB 3.6 starts and the Unifi is perfectly happy with it and you get a modern Ubuntu, fully managed and faster MongoDB for it all, too 🙂

                        Not easy to find info in UBNT forums? Wow never heard of that! They need a better way to get important info to the users. I don't know how many times there was an easy solution to a problem I had but I had to DIG through their forums to find it. Not a simple search but dig and read post after post till I found the right one.

                        This was right in the release note highlighted in red. How much more clear do you want?

                        What are the options?

                        1 Reply Last reply Reply Quote 0
                        • K
                          krisleslie @JaredBusch
                          last edited by

                          @jaredbusch if they give me a brew of coffee I'd read it 🙂

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @DustinB3403
                            last edited by

                            @dustinb3403 said in Unifi 5.7 on Ubuntu 18.04:

                            I was going to post this over the long weekend as I was doing a distribution update and had the same issue.

                            Once I saw Ubiquity said to not use 3.6 I just reverted to 17.04

                            I thought 17.10 was still 3.4 as well. Maybe not.

                            1 Reply Last reply Reply Quote 0
                            • dbeatoD
                              dbeato
                              last edited by dbeato

                              This worked but make sure that when you say to do this:

                              mv /usr/bin/mongod mongod.bin
                              

                              Be sure to be on the /usr/bin folder when doing so or do the following

                              mv /usr/bin/mongod /usr/bin/mongod.bin
                              
                              JaredBuschJ 1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch @dbeato
                                last edited by

                                @dbeato said in Unifi 5.7 on Ubuntu 18.04:

                                This worked but make sure that when you say to do this:

                                mv /usr/bin/mongod mongod.bin
                                

                                Be sure to be on the /usr/bin folder when doing so or do the following

                                mv /usr/bin/mongod /usr/bin/mongod.bin
                                

                                I know what you are trying to say, but saying it like that is clear as mud..

                                dbeatoD 1 Reply Last reply Reply Quote 0
                                • dbeatoD
                                  dbeato @JaredBusch
                                  last edited by

                                  @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                                  @dbeato said in Unifi 5.7 on Ubuntu 18.04:

                                  This worked but make sure that when you say to do this:

                                  mv /usr/bin/mongod mongod.bin
                                  

                                  Be sure to be on the /usr/bin folder when doing so or do the following

                                  mv /usr/bin/mongod /usr/bin/mongod.bin
                                  

                                  I know what you are trying to say, but saying it like that is clear as mud..

                                  What can I say or add to make it clearer?

                                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @dbeato
                                    last edited by JaredBusch

                                    @dbeato said in Unifi 5.7 on Ubuntu 18.04:

                                    @jaredbusch said in Unifi 5.7 on Ubuntu 18.04:

                                    @dbeato said in Unifi 5.7 on Ubuntu 18.04:

                                    This worked but make sure that when you say to do this:

                                    mv /usr/bin/mongod mongod.bin
                                    

                                    Be sure to be on the /usr/bin folder when doing so or do the following

                                    mv /usr/bin/mongod /usr/bin/mongod.bin
                                    

                                    I know what you are trying to say, but saying it like that is clear as mud..

                                    What can I say or add to make it clearer?

                                    this is a basic file move command. the source and destination are always relative to your pwd.

                                    It is totally poor form to discuss file source and destinations without clearly stating where to start, or explicitly noting them.

                                    You also used the word "on" instead of "in" and did not syntax highlight what you are talking about.

                                    Now based on the OP, and the lack of telling a user to be in the /usr/bin folder, the assumed intention here is to move and rename the existing /usr/bin/mongod to ~/mongod.bin

                                    You are unclearly trying to state that you simply need to rename mongod to mongod.bin while keeping it in the /usr/bin/ folder.

                                    @scottalanmiller needs to clarify his intent in the OP.

                                    1 Reply Last reply Reply Quote 1
                                    • dbeatoD
                                      dbeato
                                      last edited by

                                      Reason for me to revisit this post was due to the following Ubiquiti forum post
                                      https://community.ubnt.com/t5/UniFi-Wireless/Unifi-controller-on-Ubuntu-18-04/td-p/2331657

                                      1 Reply Last reply Reply Quote 0
                                      • CCWTechC
                                        CCWTech
                                        last edited by

                                        Scott, why did you go with Ubuntu vs. Fedora? (Asking for a friend)

                                        dbeatoD scottalanmillerS 2 Replies Last reply Reply Quote 0
                                        • dbeatoD
                                          dbeato @CCWTech
                                          last edited by

                                          @ccwtech said in Unifi 5.7 on Ubuntu 18.04:

                                          Scott, why did you go with Ubuntu vs. Fedora? (Asking for a friend)

                                          There are no official Unifi installers for RHEL or Fedora distributions.

                                          CCWTechC 1 Reply Last reply Reply Quote 0
                                          • CCWTechC
                                            CCWTech @dbeato
                                            last edited by

                                            Sorry, I meant Debian not Fedora.

                                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post