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.
    • pmonchoP
      pmoncho
      last edited by

      After running upgrade, MC will not work and LE cannot connect to check cert. I am unable to figure out where to start hunting for the problem. The upgrade is the issue as this is the 2nd time upgrading (reverted to snapshot).

      This is from /var/log/syslog

      MeshCentral HTTP redirection server running on port 1024.
      ERROR: Redirection web server must be active on port 80 for Let's Encrypt to work.
      

      I believe this is happening because something is using port 80 and MC will move itself to a different port which then creates the issue. Also MC is listening for https on port 1025 (which I would expect in this situation)

      Netstat, lsof and fuser show nothing using port 80.

      mcuser:~$ sudo netstat -tupln
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
      tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      710/systemd-resolve
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      795/sshd
      tcp        0      0 0.0.0.0:61209           0.0.0.0:*               LISTEN      748/python3
      tcp6       0      0 :::22                   :::*                    LISTEN      795/sshd
      udp        0      0 127.0.0.53:53           0.0.0.0:*                           710/systemd-resolve
      udp        0      0 20X.XXX.XXX.107:68      0.0.0.0:*                           690/systemd-network
      mcuser:~$ sudo lsof -i :80
      mcuser:~$
      mcuser:~$ sudo fuser 80/tcp
      mcuser:~$
      

      MC starts with meshcentral.service but I have the same issue if I stop/start or stop/run it manually
      Where to go next?

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

        Did you check the Firewall?

        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:

          Did you check the Firewall?

          Yeah. First place I looked. All is good there. UFW status is the same before and after with the same ports opened.

          mcuser:/etc/systemd$ sudo ufw status | grep 80
          80                         ALLOW       Anywhere
          80 (v6)                    ALLOW       Anywhere (v6)
          
          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            I did the upgrade and didnt run into this.

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

              Must be something changing with the MC configs.

              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:

                MC configs.

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

                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:

                  @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.

                  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:

                    @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.......

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

                      @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

                      DustinB3403D scottalanmillerS 2 Replies 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:

                        @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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post