<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error while installing the triggercmdagent]]></title><description><![CDATA[<p dir="auto">Hello,<br />
because of a stupid mistake i had to reinstall my raspberry pi.</p>
<p dir="auto">I used these instructions: <a href="https://docs.triggercmd.com/#/./InstallRaspberryPi" rel="nofollow ugc">https://docs.triggercmd.com/#/./InstallRaspberryPi</a></p>
<p dir="auto">But if i try to install with<br />
sudo apt install ./triggercmdagent_1.0.1_all.deb<br />
i get the follogwing errors:</p>
<pre><code>Get:1 /home/hannibal/downloads/triggercmdagent_1.0.1_all.deb triggercmdagent all 1.0.1 [22.2 MB]
(Reading database ... 91248 files and directories currently installed.)
Preparing to unpack .../triggercmdagent_1.0.1_all.deb ...
Unpacking triggercmdagent (1.0.1) ...
dpkg-deb (subprocess): decompressing archive '/home/hannibal/downloads/triggercmdagent_1.0.1_all.deb' (size=22246140) member 'data.tar': lzma error: compressed data is corrupt
dpkg-deb: error: &lt;decompress&gt; subprocess returned error exit status 2
dpkg: error processing archive /home/hannibal/downloads/triggercmdagent_1.0.1_all.deb (--unpack):
 cannot copy extracted data for './usr/share/triggercmdagent/app/src/node.exe' to '/usr/share/triggercmdagent/app/src/node.exe.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /home/hannibal/downloads/triggercmdagent_1.0.1_all.deb
Notice: Download is performed unsandboxed as root as file '/home/hannibal/downloads/triggercmdagent_1.0.1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
</code></pre>
<p dir="auto">If i read that right the installation file is corrupted, so i tried several times to download the file, but the error is the same every time.</p>
<p dir="auto">So either the file is corrupted or i am doing something wrong, anyone any idea how what to do?</p>
<p dir="auto">I hope this is all ok to read, english is not my strong side.</p>
<p dir="auto">Greetings Hannibal</p>
]]></description><link>https://www.triggercmd.com/forum/topic/3365/error-while-installing-the-triggercmdagent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 17:56:12 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/3365.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Jul 2026 17:34:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Tue, 04 Aug 2026 23:27:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hannibal" aria-label="Profile: Hannibal">@<bdi>Hannibal</bdi></a> I see an error in the json.  There should be a quote (") at the beginning of the word background.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8943</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8943</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 04 Aug 2026 23:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Mon, 03 Aug 2026 08:12:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a> Sorry, i could have looked this up myself, but i was so focused on "there is something wrong with my pi especially" that i did not even try to look into the other thread in the forum.</p>
<p dir="auto">This time i looked around but i could not find a solution, so i am back here again.</p>
<p dir="auto">the Background service is running, i edited the commands.json file, but for some reasen on the website there is no update of the triggers.<br />
(I delete all of the pre-installed triggers and put for the moment one of my own in</p>
<pre><code>[
 {"trigger":"Zentrale","command":"wakeonlan 74:56:3C:BF:B6:30","ground":background","voice":"zentrale","allowParams": "false","icon":""}
]
</code></pre>
<p dir="auto">but in the Command Management there are still the original triggers in there but not my new one ... even after i rebooted the raspberry pi</p>
]]></description><link>https://www.triggercmd.com/forum/post/8941</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8941</guid><dc:creator><![CDATA[Hannibal]]></dc:creator><pubDate>Mon, 03 Aug 2026 08:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Sat, 25 Jul 2026 21:41:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hannibal" aria-label="Profile: Hannibal">@<bdi>Hannibal</bdi></a>, I see the problem.  I told you /usr/lib/triggercmdagent which is the path on Ubuntu, not Raspberry Pi.  Sorry about that.  I corrected the "next steps" above to match the instructions <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">here</a>.</p>
<p dir="auto">It should look like this when you run the <strong>triggercmdagent</strong> command as root:</p>
<pre><code>pi@fe5978dee0e5:~$ sudo su -
root@fe5978dee0e5:~# triggercmdagent
Run installdaemon.sh to install the triggercmdagent daemon so it runs during boot
Daemon install: false
No token exists.  Login to request one.
prompt: token:
</code></pre>
<p dir="auto">Then run this to install the background agent that will startup as root during boot:<br />
/usr/share/triggercmdagent/app/src/installdaemon.sh</p>
<p dir="auto">Then edit /root/.TRIGGERcmdData/commands.json and make sure your commands have ground = background.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8935</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8935</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 25 Jul 2026 21:41:19 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Sat, 25 Jul 2026 20:58:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a> Sorry, was away for a few weeks.</p>
<p dir="auto">I tried again today, but there is a new problem if i try to use the following:</p>
<pre><code>node /usr/lib/triggercmdagent/resources/app/src/agent.js --console
node:internal/modules/cjs/loader:1520
  throw err;
  ^

Error: Cannot find module '/usr/lib/triggercmdagent/resources/app/src/agent.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
    at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
    at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
    at Module._load (node:internal/modules/cjs/loader:1294:5)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v24.18.0
</code></pre>
<p dir="auto">So i looked into the folder, and it does not exist. <em><strong>edit</strong></em>(The whole folder)<br />
So i thought i did not install the agent and tried to install again with</p>
<pre><code>sudo apt install ./triggercmdagent_1.0.1_all.deb
Note, selecting 'triggercmdagent' instead of './triggercmdagent_1.0.1_all.deb'
triggercmdagent is already the newest version (1.0.1).
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
</code></pre>
<p dir="auto">So it is installed and it is not installed?</p>
<p dir="auto">Any other idea what could be the problem?</p>
<p dir="auto">Greetings<br />
Hannibal</p>
]]></description><link>https://www.triggercmd.com/forum/post/8934</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8934</guid><dc:creator><![CDATA[Hannibal]]></dc:creator><pubDate>Sat, 25 Jul 2026 20:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Sat, 25 Jul 2026 21:34:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hannibal" aria-label="Profile: Hannibal">@<bdi>Hannibal</bdi></a> said in <a href="/forum/post/8914">Error while installing the triggercmdagent</a>:</p>
<blockquote>
<p dir="auto">Notice: Download is performed unsandboxed as root as file '/home/hannibal/downloads/triggercmdagent_1.0.1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)</p>
</blockquote>
<p dir="auto">Copy/paste that into ChatGPT to know why, but you can safely ignore that "Notice".  Basically it means the _apt user doesn't have access to your user's home directory where the .deb file is, so it's using root to access it instead.</p>
<p dir="auto">It looks like the agent is installed now, so you can move on to the next steps:</p>
<pre><code>triggercmdagent
( Paste in your token, and press ENTER. )
( Press CTRL-C to quit. )
/usr/share/triggercmdagent/app/src/installdaemon.sh
</code></pre>
<p dir="auto">The <strong>triggercmdagent</strong> command should prompt you for a token which you can copy/paste from the Instructions page while logged in at <a href="https://www.triggercmd.com" rel="nofollow ugc">https://www.triggercmd.com</a></p>
]]></description><link>https://www.triggercmd.com/forum/post/8915</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8915</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 25 Jul 2026 21:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Sat, 04 Jul 2026 16:34:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a> It seems there is more:</p>
<pre><code>hannibal@PI-3:~/downloads $ sudo apt install ./triggercmdagent_1.0.1_all.deb
Note, selecting 'triggercmdagent' instead of './triggercmdagent_1.0.1_all.deb'
Installing:
  triggercmdagent

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0
  Download size: 0 B / 22.2 MB
  Space needed: 0 B / 25.8 GB available

Get:1 /home/hannibal/downloads/triggercmdagent_1.0.1_all.deb triggercmdagent all 1.0.1 [22.2 MB]
Selecting previously unselected package triggercmdagent.
(Reading database ... 73934 files and directories currently installed.)
Preparing to unpack .../triggercmdagent_1.0.1_all.deb ...
Unpacking triggercmdagent (1.0.1) ...
Setting up triggercmdagent (1.0.1) ...
Installing dependenencies from NPM
npm warn config production Use `--omit=dev` instead.
npm warn Unknown cli config "--unsafe-perm". This will stop working in the next major version of npm.
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated har-validator@5.1.5: this library is no longer supported
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated posix-argv-parser@2.0.0: No longer maintained

added 266 packages, and audited 267 packages in 29s

7 packages are looking for funding
  run `npm fund` for details

14 vulnerabilities (9 moderate, 3 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
Notice: Download is performed unsandboxed as root as file '/home/hannibal/downloads/triggercmdagent_1.0.1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

</code></pre>
<p dir="auto">As you can see, the installation was not succesfull.<br />
And i am again in over my head <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6297cc46437" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/8914</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8914</guid><dc:creator><![CDATA[Hannibal]]></dc:creator><pubDate>Sat, 04 Jul 2026 16:34:10 GMT</pubDate></item><item><title><![CDATA[Reply to Error while installing the triggercmdagent on Sat, 04 Jul 2026 16:11:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/hannibal" aria-label="Profile: Hannibal">@<bdi>Hannibal</bdi></a>, thank you for reporting it!  I tested it and ran into the same problem at first, but <strong>it's fixed now.</strong>  Please download it again and try the install again.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8913</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8913</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 04 Jul 2026 16:11:52 GMT</pubDate></item></channel></rss>