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

    My agent stopped working

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 401 Views
    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.
    • Meet BhagwananiM Offline
      Meet Bhagwanani
      last edited by

      My agent stopped working, probably due to nodejs upgrade i did or something. Here is what i get no matter i tried, even reinstalling triggercmd couple of times. Current versions i have npm 8.1.3, node v17.1.0, nodejs v10.24.1. Pls. help.

      pi@raspberrypi:~ $ systemctl sratus tiggercmdagent
      ā— triggercmdagent.service - TRIGGERcmd Agent
      Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)
      Active: failed (Result: exit-code) since Thu 2021-12-09 07:01:41 EST; 10h ago
      Process: 524 ExecStart=/usr/bin/env node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdData (code=exited, status=2)
      Main PID: 524 (code=exited, status=2)

      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Failed with result 'exit-code'.
      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Service RestartSec=100ms expired, scheduling restart.
      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Scheduled restart job, restart counter is at 5.
      Dec 09 07:01:41 raspberrypi systemd[1]: Stopped TRIGGERcmd Agent.
      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Start request repeated too quickly.
      Dec 09 07:01:41 raspberrypi systemd[1]: triggercmdagent.service: Failed with result 'exit-code'.

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @Meet Bhagwanani
        last edited by Russ

        @meet-bhagwanani, I think you're right. The agent doesn't work with the latest versions of node js. I know it works with version 14, and I think it only works with early versions of 15. It's on my list to fix at some point, but for now, I hope you don't mind downgrading.

        EDIT: Correction - I just tried node version 16.13.1 and it worked.

        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