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

    new commands aren't showing up on

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 1.3k Views 1 Watching
    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.
    • Richard RicoR Offline
      Richard Rico
      last edited by

      hello, I've tried using both the gui & text editor. new commands are not showing up when I use the app or the web app to view triggers. only 1 shows up. Im running ubuntu 24.x lts

      1 Reply Last reply Reply Quote 0
      • Richard RicoR Offline
        Richard Rico
        last edited by

        I ran the install script to get the service installed, got this when I tried to restart it:

        • list itemtriggercmdagent.service: Start request repeated too quickly

        • triggercmdagent.service: Failed with result 'start-limit-hit'

        • Failed to start triggercmdagent.service - TRIGGERcmd Agent.

        RussR 1 Reply Last reply Reply Quote 0
        • RussR Offline
          Russ @Richard Rico
          last edited by

          @Richard-Rico, can you send me the output of this command?

          systemctl status triggercmdagent
          

          I wonder if you installed the background service while you were root. If you do that, it will use your /root/.TRIGGERcmdData folder. Generally, you want to run it like this while logged in as your user so it will use your regular user's data folder:

          sudo sh /usr/lib/triggercmdagent/resources/app/src/installdaemon.sh
          

          Either way the actual service/daemon will run as root, so the difference is which data folder it will use.

          The reason it's only giving you one command is the background agent adds/removes/runs background commands, and the foreground agent adds/removes/runs background commands.

          Look at your ~/.TRIGGERcmdData/commands.json to see which commands are background vs. foreground commands.

          Russell VanderMey

          Richard RicoR 2 Replies Last reply Reply Quote 0
          • Richard RicoR Offline
            Richard Rico @Russ
            last edited by

            @Russ said in new commands aren't showing up on:

            systemctl status triggercmdagent output is below:

            rrico@localhoe:~/Downloads/keys-0930/test$ systemctl status triggercmdagent
            Ɨ triggercmdagent.service - TRIGGERcmd Agent
            Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; preset: enabled)
            Active: failed (Result: start-limit-hit) since Mon 2024-09-30 01:14:16 EDT; 21h ago
            Duration: 154ms
            Process: 1866618 ExecStart=/usr/bin/env node /usr/lib/triggercmdagent/resources/app/src/daemon.js --run /root/.TRIGGERcmdData (code=exited, status=0/SUCCESS)
            Main PID: 1866618 (code=exited, status=0/SUCCESS)
            CPU: 196ms

            Sep 30 01:14:16 localhoe systemd[1]: triggercmdagent.service: Scheduled restart job, restart counter is at 5.
            Sep 30 01:14:16 localhoe systemd[1]: triggercmdagent.service: Start request repeated too quickly.
            Sep 30 01:14:16 localhoe systemd[1]: triggercmdagent.service: Failed with result 'start-limit-hit'.
            Sep 30 01:14:16 localhoe systemd[1]: Failed to start triggercmdagent.service - TRIGGERcmd Agent.

            1 Reply Last reply Reply Quote 0
            • Richard RicoR Offline
              Richard Rico @Russ
              last edited by

              @Russ said in new commands aren't showing up on:

              systemctl status triggercmdagent

              its working now!!! I think what happened was that I originally installed this as root. To fix I did this:
              I uninstalled the background service using the tray icon & simply reinstalled it using the icon. This is my out put now:

              systemctl status triggercmdagent
              ā— triggercmdagent.service - TRIGGERcmd Agent
              Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; preset: enabled)
              Active: active (running) since Mon 2024-09-30 23:07:55 EDT; 40s ago
              Main PID: 2344132 (node)
              Tasks: 15 (limit: 18707)
              Memory: 73.8M (peak: 90.6M)
              CPU: 420ms
              CGroup: /system.slice/triggercmdagent.service
              └─2344132 node /usr/lib/triggercmdagent/resources/app/src/daemon.js --run /home/rrico/.TRIGGERcmdData

              Sep 30 23:07:55 localhoe env[2344132]: Write backup completed.
              Sep 30 23:07:55 localhoe env[2344132]: |> Now connected to https://www.triggercmd.com.
              Sep 30 23:07:55 localhoe env[2344132]: ___/ For help, see: http://bit.ly/2q0QDpf
              Sep 30 23:07:55 localhoe env[2344132]: (using sails.io.js node SDK @v1.2.1)
              Sep 30 23:07:55 localhoe env[2344132]: Connected at: Mon Sep 30 2024 23:07:55 GMT-0400 (Eastern Daylight Time)
              Sep 30 23:07:55 localhoe env[2344132]: Initiated command removals
              Sep 30 23:07:55 localhoe env[2344132]: Initiated command adds
              Sep 30 23:07:55 localhoe env[2344132]: { message: 'Subscribed to 66fa0390a3b76800139976ac!' }
              Sep 30 23:07:55 localhoe env[2344132]: { message: 'Subscribed to 66fa0390a3b76800139976ac!' }
              Sep 30 23:07:55 localhoe env[2344132]: Added update-nonprod

              RussR 1 Reply Last reply Reply Quote 0
              • RussR Offline
                Russ @Richard Rico
                last edited by

                @Richard-Rico, awesome, good job. I'll suggest that in the future. That's a simple way to fix it.

                Russell VanderMey

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better šŸ’—

                Register Login
                • First post
                  Last post