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

    Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80

    IT Discussion
    meshcentral ubuntu 19.04 lets encrypt port 80
    5
    38
    2.5k
    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.
    • DustinB3403D
      DustinB3403 @pmoncho
      last edited by

      @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

      @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

      @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

      @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

      @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

      MC configs.

      I was wondering if it could be something with npm or node?

      Odd but seems the more likely problem point.

      I will keep hunting.......

      What version of npm and node are you running?

      I get npm WARN npm npm does not support Node.js v10.15.2 when reinstalling npm

      Use N instead.

      pmonchoP 1 Reply Last reply Reply Quote 0
      • pmonchoP
        pmoncho @DustinB3403
        last edited by

        @DustinB3403 said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

        MC configs.

        I was wondering if it could be something with npm or node?

        Odd but seems the more likely problem point.

        I will keep hunting.......

        What version of npm and node are you running?

        I get npm WARN npm npm does not support Node.js v10.15.2 when reinstalling npm

        Use N instead.

        What is "N?" Willing to give it shot.

        DustinB3403D 1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @pmoncho
          last edited by

          @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @DustinB3403 said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

          MC configs.

          I was wondering if it could be something with npm or node?

          Odd but seems the more likely problem point.

          I will keep hunting.......

          What version of npm and node are you running?

          I get npm WARN npm npm does not support Node.js v10.15.2 when reinstalling npm

          Use N instead.

          What is "N?" Willing to give it shot.

          https://github.com/tj/n

          pmonchoP 1 Reply Last reply Reply Quote 0
          • pmonchoP
            pmoncho @DustinB3403
            last edited by

            @DustinB3403 said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @DustinB3403 said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

            MC configs.

            I was wondering if it could be something with npm or node?

            Odd but seems the more likely problem point.

            I will keep hunting.......

            What version of npm and node are you running?

            I get npm WARN npm npm does not support Node.js v10.15.2 when reinstalling npm

            Use N instead.

            What is "N?" Willing to give it shot.

            https://github.com/tj/n

            Thanks, I will look into that.

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

              @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

              What version of npm and node are you running?

              v11.4.0 for Node
              6.9.0 for NPM

              pmonchoP 2 Replies Last reply Reply Quote 0
              • pmonchoP
                pmoncho @scottalanmiller
                last edited by

                @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                What version of npm and node are you running?

                v11.4.0 for Node
                6.9.0 for NPM

                v10.15.2 for Node
                5.8.0 for NPM

                hmmmm. apt tells me I have the newest versions. how do I get the updated version of NPM?

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

                  @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                  hmmmm. apt tells me I have the newest versions. how do I get the updated version of NPM?

                  You install using NVM rather than the OS versions. This is pretty standard for Node across the board because it is so new.

                  pmonchoP 1 Reply Last reply Reply Quote 1
                  • pmonchoP
                    pmoncho @scottalanmiller
                    last edited by

                    @scottalanmiller

                    Don't understand why it won't update????

                    mcuser:~/mc$ npm install npm
                    npm WARN npm npm does not support Node.js v10.15.2
                    npm WARN npm You should probably upgrade to a newer version of node as we
                    npm WARN npm can't make any promises that npm will work with this version.
                    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
                    npm WARN npm You can find the latest version at https://nodejs.org/
                    npm WARN mc No description
                    npm WARN mc No repository field.
                    npm WARN mc No license field.
                    
                    + [email protected]
                    updated 1 package in 9.101s
                    mcuser:~/mc$ npm -v
                    5.8.0
                    mcuser:~/mc$
                    
                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @pmoncho
                      last edited by

                      @pmoncho maybe because you are not on a supported version of Node, and NPM is based on Node version, so you need to update Node to update NPM.

                      1 Reply Last reply Reply Quote 0
                      • pmonchoP
                        pmoncho @scottalanmiller
                        last edited by

                        @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                        @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                        hmmmm. apt tells me I have the newest versions. how do I get the updated version of NPM?

                        You install using NVM rather than the OS versions. This is pretty standard for Node across the board because it is so new.

                        I just followed the instructions in the MC guide.

                        I will look into NVM too.

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

                          @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                          I just followed the instructions in the MC guide.

                          Which is fine on its own, but limits you to the versions of NodeJS and NPM that come with the OS. You want one that is newer, which is not something that MC sets up for you. So in the one case you are following the instructions, but now you are not, so the mix is causing an issue. I never use NodeJS from the OS because it always causes problems for me (any OS, nothing to do with Ubuntu.) I've found that having version control is critical in the Node ecosystem. But MCs goal is to walk you through only enough ecosystem setup to get their app running.

                          pmonchoP 1 Reply Last reply Reply Quote 1
                          • pmonchoP
                            pmoncho @scottalanmiller
                            last edited by

                            @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                            @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                            I just followed the instructions in the MC guide.

                            Which is fine on its own, but limits you to the versions of NodeJS and NPM that come with the OS. You want one that is newer, which is not something that MC sets up for you. So in the one case you are following the instructions, but now you are not, so the mix is causing an issue. I never use NodeJS from the OS because it always causes problems for me (any OS, nothing to do with Ubuntu.) I've found that having version control is critical in the Node ecosystem. But MCs goal is to walk you through only enough ecosystem setup to get their app running.

                            I will keep this in mind for future deployments.

                            I have NVM installed, now using 6.9 of NVM and v12.2.0 of node. The npm error is now gone but the original problem still exists.

                            Will continue hunting.

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

                              Let's see the config file.

                              pmonchoP 1 Reply Last reply Reply Quote 0
                              • pmonchoP
                                pmoncho @scottalanmiller
                                last edited by

                                @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                                Let's see the config file.

                                I believe you want the config.json file. Its a pretty generic file.

                                {
                                  "__comment__" : "This is a sample configuration file, edit a section and remove the _ in front of the name. Refer to the user's guide for details.",
                                  "settings": {
                                    "WANonly": true,
                                    "_Minify": 1,
                                    "SessionTime": 30,
                                    "Port": 443,
                                    "RedirPort": 80,
                                    "_SelfUpdate": true,
                                    "newAccounts": 0,
                                    "UserAllowedIP": "External IP addresses",
                                    "_WebRtConfig": { "iceServers": [ { "urls": "stun:stun.services.mozilla.com" }, { "urls": "stun:stun.l.google.com:19302" } ] }
                                  },
                                  "letsencrypt": {
                                    "email": "emailaddress",
                                    "names": "domainname.net",
                                    "rsaKeySize": 3072,
                                    "production": true
                                  },
                                  "smtp": {
                                    "host": "smtp.gmail.com",
                                    "port": 465,
                                    "from": "from address",
                                    "user": "to address",
                                    "pass": "password",
                                    "tls": true
                                  }
                                }
                                
                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @pmoncho
                                  last edited by

                                  @pmoncho in your original post, you said that MC was moving itself to a different port. But in your netstat, MC wasn't running. What port is it going to?

                                  pmonchoP 1 Reply Last reply Reply Quote 0
                                  • pmonchoP
                                    pmoncho @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                                    is it goin

                                    My apologies. It is going to 1024 and https to 1025.

                                    That is the weird part. If something was hogging port 80, I would understand the move to higher ports as that is what MC does. Nothing shows on port 80 at all so that is what I cannot figure out.

                                    Plus I know you had it working on U 19.04 so I was gungho for the upgrade.

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • black3dynamiteB
                                      black3dynamite
                                      last edited by

                                      I wonder if you need do this?
                                      edd43171-c079-4340-b9a4-0ede09a1d04b-image.png
                                      http://info.meshcentral.com/downloads/MeshCentral2/MeshCentral2InstallGuide-0.0.7.pdf

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

                                        @pmoncho said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                                        My apologies. It is going to 1024 and https to 1025.

                                        Did you forget to run as root? Those are unprivileged ports.

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

                                          If you run as non-root (I know the new directions seem to point people to avoid this, but the ones we used when everyone originally got this up and running all pointed us to use root) you have a lot of additional complications that you likely want to avoid. I highly recommend sticking to root for almost anyone deploying this.

                                          pmonchoP 1 Reply Last reply Reply Quote 1
                                          • pmonchoP
                                            pmoncho @black3dynamite
                                            last edited by

                                            @black3dynamite said in Ubuntu 19.04 upgraded from 18.10 - Meshcentral not redirecting port 80:

                                            I wonder if you need do this?
                                            edd43171-c079-4340-b9a4-0ede09a1d04b-image.png
                                            http://info.meshcentral.com/downloads/MeshCentral2/MeshCentral2InstallGuide-0.0.7.pdf

                                            That did it. Ugh. I totally forgot about this because I upgrade from 16.04 to 18.04 to and then to 18.10 and did not have that issue. Apparently I now have that issue.

                                            Thanks. Boy, I did learn alot over the last two days. Now I have a go to check in the future..

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