• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Problem running on Manjaro KDE

Linux
2
12
837
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.
  • P
    PedroMartins
    last edited by Feb 8, 2021, 10:02 AM

    I've used TriggerCMD in Ubuntu and Pop!_OS for a long time, and it's very useful, but now I've decided switch to Manjaro KDE, but couldn't make it work.

    I followed that tutorial.

    When I run the command node ./src/agent.js --console, that happens:
    2021-02-08_06-59.png
    and I can't trigger anything.

    There's anything I'm doing wrong or something I can do to fix it?
    Thanks for any help, and sorry for bad english.

    R 1 Reply Last reply Feb 8, 2021, 11:06 PM Reply Quote 0
    • R
      Russ @PedroMartins
      last edited by Feb 8, 2021, 11:06 PM

      @PedroMartins, I see that my nginx server was out of connections. Would you please try again?

      I saw this in my error.log file: "worker_connections are not enough"

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • P
        PedroMartins
        last edited by Feb 8, 2021, 11:27 PM

        Tested it again, but unfortunatelly the same happened. Actually I've tested it a few days ago, when I switched to Manjaro, and I had that same problem.

        R 1 Reply Last reply Feb 9, 2021, 3:13 AM Reply Quote 0
        • R
          Russ @PedroMartins
          last edited by Feb 9, 2021, 3:13 AM

          @PedroMartins, ok, the websocket isn't connecting but the normal traffic is. Are you accessing the internet through a proxy server? That's one reason you'd have that problem.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • P
            PedroMartins
            last edited by Feb 9, 2021, 6:19 PM

            No, using just a normal wifi connection.

            R 1 Reply Last reply Feb 9, 2021, 11:37 PM Reply Quote 0
            • R
              Russ @PedroMartins
              last edited by Russ Feb 9, 2021, 11:38 PM Feb 9, 2021, 11:37 PM

              @PedroMartins, could you try it on another wifi network? That would narrow down the problem. Right now I'm not sure if the problem is on your network or on the Manjaro box. Are there any other computers on your network that are currently connecting to TRIGGERcmd ok?

              Also, please run this and show me the result:

              curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: https://www.websocket.org" https://echo.websocket.org
              

              If you have a browser, you could also go here to test whether you can connect with a websocket.
              https://www.websocket.org/echo.html

              Russell VanderMey

              P 1 Reply Last reply Feb 10, 2021, 12:06 AM Reply Quote 0
              • P
                PedroMartins @Russ
                last edited by Feb 10, 2021, 12:06 AM

                @Russ I have made the tests you asked for, here are the results:

                I don't have another wifi network, but used my phone as a router to make the test:
                cf6f7d41-d41b-491f-b02f-c2e8e7f02707-image.png

                Only have 1 PC using TRIGGERcmd, but since I have a dual boot I could test it in PopOS, and it's working fine, so manjaro should be the problem.

                The command terminal:
                3ba167db-c361-40dc-8937-40b35e7f3c40-image.png
                First test was in my house network and second one in my phone network.

                Websocket site:
                07dd6d58-c076-49f3-88da-3c9891582011-image.png

                R 1 Reply Last reply Feb 11, 2021, 12:23 AM Reply Quote 0
                • R
                  Russ @PedroMartins
                  last edited by Feb 11, 2021, 12:23 AM

                  @PedroMartins, thanks for those tests. It looks like your network is fine, and your Manjaro box can make websocket connections to other sites, so I think that narrows it down to a problem with the agent.

                  Please do another test for me? Please check your version of NodeJS and NPM using these commands:

                  node -v
                  npm -v
                  

                  I'd like to try the agent with the same version of NodeJS.

                  Russell VanderMey

                  P 1 Reply Last reply Feb 11, 2021, 8:56 AM Reply Quote 0
                  • P
                    PedroMartins @Russ
                    last edited by Feb 11, 2021, 8:56 AM

                    @Russ said in Problem running on Manjaro KDE:

                    npm -v

                    Yeah, no problem. Here it is:
                    a8dd0062-6fa2-4fbe-8534-a2217a39b889-image.png

                    R 1 Reply Last reply Feb 12, 2021, 1:36 AM Reply Quote 0
                    • R
                      Russ @PedroMartins
                      last edited by Russ Feb 12, 2021, 1:37 AM Feb 12, 2021, 1:36 AM

                      @PedroMartins, I think I see the problem. That version of NodeJS is too new. It's not compatible.

                      Someone else had the same problem in this post:
                      https://www.triggercmd.com/forum/topic/1112/suddelny-agent-wont-connect/6

                      I think I need to upgrade one of the node modules to be compatible with the newer versions of Node JS. It's probably one of these two:

                          "sails.io.js": "^1.1.4",
                          "socket.io-client": "^2.0.2"
                      

                      That's from the package.json file.

                      You could downgrade the version of Node in the meantime to make it work.

                      Russell VanderMey

                      P 1 Reply Last reply Feb 12, 2021, 11:09 AM Reply Quote 0
                      • P
                        PedroMartins @Russ
                        last edited by Feb 12, 2021, 11:09 AM

                        @Russ It worked, I downgraded NodeJS to 14.9.0 and it's working perfectly. I'm still facing trouble to make foreground service run on boot, but that is less important.
                        Thanks for all your help and support!

                        R 1 Reply Last reply Feb 12, 2021, 9:47 PM Reply Quote 0
                        • R
                          Russ @PedroMartins
                          last edited by Russ Feb 12, 2021, 9:48 PM Feb 12, 2021, 9:47 PM

                          @PedroMartins, good. Sorry about the incompatibility.

                          Russell VanderMey

                          1 Reply Last reply Reply Quote 0
                          • T tuicemen moved this topic from Instructions on Jan 31, 2022, 12:17 PM
                          8 out of 12
                          • First post
                            8/12
                            Last post