<?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[Raspberry Pi install failed]]></title><description><![CDATA[<p dir="auto">I get this errors while trying to install triggercmdagent in my raspberry pi zero (no wifi version, running with eth cable), I have installed everything you said in last posts, npm, nodejs... Everything. Tried rebooting, reinstalling npm, nodejs, triggedcmdagent... and everything gets to the same point.<br />
Thanks.</p>
<p dir="auto">pi@raspberrypi:~ $ sudo apt-get upgrade<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
Calculating upgrade... Done<br />
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br />
1 not fully installed or removed.<br />
After this operation, 0 B of additional disk space will be used.<br />
Do you want to continue? [Y/n] y<br />
Setting up triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
dpkg: error processing package triggercmdagent (--configure):<br />
installed triggercmdagent package post-installation script subprocess returned                                           error exit status 1<br />
Errors were encountered while processing:<br />
triggercmdagent<br />
E: Sub-process /usr/bin/dpkg returned an error code (1)</p>
]]></description><link>https://www.triggercmd.com/forum/topic/684/raspberry-pi-install-failed</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 18:29:52 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/684.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 May 2020 21:49:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Raspberry Pi install failed on Mon, 16 Nov 2020 23:06:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/5449">@Radosław-Szałkowski</a>, from that output it looks like the background service installation worked.</p>
<p dir="auto">Can you show me the output of this command?</p>
<pre><code>systemctl status triggercmdagent
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/3169</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/3169</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Mon, 16 Nov 2020 23:06:02 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Sat, 14 Nov 2020 20:50:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> I have a problem and I don't know what I'm doing wrong - I always have your default configuration file. I even tried to remove and install.</p>
<pre><code>root@raspberrypi:/home/pi# triggercmdagent
Run installdaemon.sh to install the triggercmdagent daemon so it runs during boot
Daemon install: false
Logging in with saved token.
Checking if the 5fb03d4f355bc6001903ba40 computer exists.
This computer was deleted from your account.  Login to recreate it.
prompt: token:  mytoken
Token saved for next time.
Tokenfile: /root/.TRIGGERcmdData/token.tkn
ComputerIDfile: /root/.TRIGGERcmdData/computerid.cfg
Logging in with saved token to run foreground tasks.
Computer ID 5fb0406efe27220019319bad saved for next time.
Write backup completed.


  |&gt;    Now connected to https://www.triggercmd.com.
\___/   For help, see: http://bit.ly/2q0QDpf
        (using sails.io.js node SDK @v1.1.13)
         Connected at: Sat Nov 14 2020 20:39:12 GMT+0000 (Greenwich Mean Time)



Initiated command removals
Initiated command adds
{ message: 'Subscribed to 5fb0406efe27220019319bad!' }
{ message: 'Subscribed to 5fb0406efe27220019319bad!' }
Added Gnome Editor
^C
root@raspberrypi:/home/pi# nano /root/.TRIGGERcmdData/commands.json
root@raspberrypi:/home/pi# nano /root/.TRIGGERcmdData/commands.json
root@raspberrypi:/home/pi# /usr/share/triggercmdagent/app/src/installdaemon.sh
Daemon install: true
Logging in with saved token.
Checking if the 5fb0406efe27220019319bad computer exists.
This computer exists in your account.
● triggercmdagent.service - TRIGGERcmd Agent
   Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-11-14 20:42:06 GMT; 1s ago
 Main PID: 11693 (node)
    Tasks: 6 (limit: 2063)
   CGroup: /system.slice/triggercmdagent.service
           └─11693 node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdData

Nov 14 20:42:06 raspberrypi systemd[1]: Started TRIGGERcmd Agent.```

Maybe you have any idea? Thanks!</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/3168</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/3168</guid><dc:creator><![CDATA[Radosław Szałkowski]]></dc:creator><pubDate>Sat, 14 Nov 2020 20:50:26 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Tue, 12 May 2020 21:40:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3277">@Antonio36996</a>, nice job!  I'm glad you got it working.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2157</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2157</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 12 May 2020 21:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Tue, 12 May 2020 19:23:30 GMT]]></title><description><![CDATA[<p dir="auto">Finnaly I solved it!!! As I was getting errors since I started, I decided to install node, which broke my nodejs installation, I found the answer <a href="https://github.com/npm/npm/issues/11469" rel="nofollow ugc">here</a>.<br />
I removed the package node and everything went perfect! Thank you so much!</p>
]]></description><link>https://www.triggercmd.com/forum/post/2156</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2156</guid><dc:creator><![CDATA[Antonio36996]]></dc:creator><pubDate>Tue, 12 May 2020 19:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Mon, 11 May 2020 05:32:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Does not work, thank you anyways!</p>
]]></description><link>https://www.triggercmd.com/forum/post/2154</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2154</guid><dc:creator><![CDATA[Antonio36996]]></dc:creator><pubDate>Mon, 11 May 2020 05:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Thu, 07 May 2020 22:57:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3277">@Antonio36996</a>, I'm sorry about this trouble.  Unfortunately the output isn't giving my much info to go on.  Here's another idea you could try:</p>
<pre><code>sudo su -
apt remove triggercmdagent
rm -rf /usr/share/triggercmdagent/app
mkdir /usr/share/triggercmdagent/app
cd /usr/share/triggercmdagent/app
git clone https://github.com/rvmey/TRIGGERcmd-Agent.git
/usr/share/triggercmdagent/app/src/installdaemon.sh
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/2143</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2143</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 07 May 2020 22:57:25 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Wed, 06 May 2020 04:12:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Thanks for answering, I can't reinstall raspbian again because I have other services like pihole, pivpn...<br />
At the beginning I could execute triggercmdagent and asked me to enter the token, however as the apt upgrade still being saying that wasn't successful I reinstalled it, and since that didn't work.<br />
This is my output using su</p>
<blockquote>
<p dir="auto">pi@raspberrypi:~ $ sudo su -<br />
root@raspberrypi:~# apt remove triggercmdagent</p>
<p dir="auto">Reading package lists... Done</p>
<p dir="auto">Building dependency tree</p>
<p dir="auto">Reading state information... Done</p>
<p dir="auto">The following packages will be REMOVED:</p>
<p dir="auto">triggercmdagent</p>
<p dir="auto">0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.</p>
<p dir="auto">1 not fully installed or removed.</p>
<p dir="auto">After this operation, 0 B of additional disk space will be used.</p>
<p dir="auto">Do you want to continue? [Y/n] y</p>
<p dir="auto">(Reading database ... 51918 files and directories currently installed.)</p>
<p dir="auto">Removing triggercmdagent (1.0.1) ...</p>
<p dir="auto">root@raspberrypi:~# rm -rf /usr/share/triggercmdagent</p>
<p dir="auto">root@raspberrypi:~# dpkg -i triggercmdagent_1.0.1_all.deb</p>
<p dir="auto">Selecting previously unselected package triggercmdagent.</p>
<p dir="auto">(Reading database ... 49379 files and directories currently installed.)</p>
<p dir="auto">Preparing to unpack triggercmdagent_1.0.1_all.deb ...</p>
<p dir="auto">Unpacking triggercmdagent (1.0.1) ...</p>
<p dir="auto">Setting up triggercmdagent (1.0.1) ...</p>
<p dir="auto">Directory 'node_modules' exists. Running 'npm rebuild'</p>
<p dir="auto">dpkg: error processing package triggercmdagent (--install):</p>
<p dir="auto">installed triggercmdagent package post-installation script subprocess returned                                                     error exit status 1</p>
<p dir="auto">Errors were encountered while processing:</p>
<p dir="auto">triggercmdagent</p>
<p dir="auto">root@raspberrypi:~# triggercmdagent</p>
<p dir="auto">root@raspberrypi:~# /usr/share/triggercmdagent/app/src/installdaemon.sh</p>
<p dir="auto">cp: cannot create regular file '/root/.TRIGGERcmdData/triggercmdagent.service':                                                     No such file or directory</p>
<p dir="auto">/usr/share/triggercmdagent/app/src/daemonmgr.sh: 10: /usr/share/triggercmdagent/                                                    app/src/daemonmgr.sh: cannot create /root/.TRIGGERcmdData/triggercmdagent.servic                                                    e: Directory nonexistent</p>
<p dir="auto">/usr/share/triggercmdagent/app/src/daemonmgr.sh: 11: /usr/share/triggercmdagent/                                                    app/src/daemonmgr.sh: cannot create /root/.TRIGGERcmdData/triggercmdagent.servic                                                    e: Directory nonexistent</p>
<p dir="auto">cp: cannot stat '/root/.TRIGGERcmdData/triggercmdagent.service': No such file or                                                     directory</p>
<p dir="auto">Failed to start triggercmdagent.service: Unit triggercmdagent.service not found.</p>
<p dir="auto">Failed to enable unit: Unit file triggercmdagent.service does not exist.</p>
<p dir="auto">Unit triggercmdagent.service could not be found.</p>
<p dir="auto">root@raspberrypi:~# apt-get -y install npm nodejs</p>
<p dir="auto">Reading package lists... Done</p>
<p dir="auto">Building dependency tree</p>
<p dir="auto">Reading state information... Done</p>
<p dir="auto">nodejs is already the newest version (10.19.0~dfsg1-1).</p>
<p dir="auto">npm is already the newest version (5.8.0+ds6-4).</p>
<p dir="auto">0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.</p>
<p dir="auto">1 not fully installed or removed.</p>
<p dir="auto">After this operation, 0 B of additional disk space will be used.</p>
<p dir="auto">Setting up triggercmdagent (1.0.1) ...</p>
<p dir="auto">Directory 'node_modules' exists. Running 'npm rebuild'</p>
<p dir="auto">dpkg: error processing package triggercmdagent (--configure):</p>
<p dir="auto">installed triggercmdagent package post-installation script subprocess returned                                                     error exit status 1</p>
<p dir="auto">Errors were encountered while processing:</p>
<p dir="auto">triggercmdagent</p>
<p dir="auto">E: Sub-process /usr/bin/dpkg returned an error code (1)</p>
<p dir="auto">root@raspberrypi:~#</p>
</blockquote>
]]></description><link>https://www.triggercmd.com/forum/post/2131</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2131</guid><dc:creator><![CDATA[Antonio36996]]></dc:creator><pubDate>Wed, 06 May 2020 04:12:46 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Mon, 04 May 2020 01:48:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3277">@Antonio36996</a>, something went wrong with the installation.  This could be tricky to fix.  I noticed this command didn't even give you any output.  Not even an error:</p>
<blockquote>
<p dir="auto">pi@raspberrypi:/usr/share/triggercmdagent/app $ npm install</p>
</blockquote>
<p dir="auto">I also noticed you're doing all of this as the pi user.  The <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">instructions</a> have you switch to the root user with <strong>sudo su -</strong></p>
<p dir="auto">I recommend trying those steps again as root, and add this command after the apt remove command:</p>
<pre><code>rm -rf /usr/share/triggercmdagent
</code></pre>
<p dir="auto">If that doesn't work, I recommend starting over with a fresh Raspbian installation.  The <a href="https://www.triggercmd.com/forum/topic/606/windows-script-to-prep-sd-card-for-raspberry-pi-with-triggercmd-agent">new method using setup.bat</a> is the easiest, but it assumes you're using a Windows computer.  It also installs the agent for you.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2126</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2126</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Mon, 04 May 2020 01:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Sun, 03 May 2020 22:42:17 GMT]]></title><description><![CDATA[<p dir="auto">This is the output, thanks</p>
<p dir="auto">sudo dpkg -i triggercmdagent_1.0.1_all.deb<br />
(Reading database ... 51918 files and directories currently installed.)<br />
Preparing to unpack triggercmdagent_1.0.1_all.deb ...<br />
Unpacking triggercmdagent (1.0.1) over (1.0.1) ...<br />
Setting up triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
dpkg: error processing package triggercmdagent (--install):<br />
installed triggercmdagent package post-installation script subprocess returned                                        error exit status 1<br />
Errors were encountered while processing:<br />
triggercmdagent<br />
pi@raspberrypi:~ $ cd /usr/share/triggercmdagent/app<br />
pi@raspberrypi:/usr/share/triggercmdagent/app $ npm install<br />
pi@raspberrypi:/usr/share/triggercmdagent/app $ cd ~<br />
pi@raspberrypi:~ $ sudo dpkg -i triggercmdagent_1.0.1_all.deb<br />
(Reading database ... 51918 files and directories currently installed.)<br />
Preparing to unpack triggercmdagent_1.0.1_all.deb ...<br />
Unpacking triggercmdagent (1.0.1) over (1.0.1) ...<br />
Setting up triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
dpkg: error processing package triggercmdagent (--install):<br />
installed triggercmdagent package post-installation script subprocess returned                                        error exit status 1<br />
Errors were encountered while processing:<br />
triggercmdagent<br />
pi@raspberrypi:~ $ sudo systemctl stop triggercmdagent<br />
Failed to stop triggercmdagent.service: Unit triggercmdagent.service not loaded.<br />
pi@raspberrypi:~ $ sudo /usr/share/triggercmdagent/app/src/removedaemon.sh<br />
Failed to stop triggercmdagent.service: Unit triggercmdagent.service not loaded.<br />
pi@raspberrypi:~ $ sudo apt remove triggercmdagent<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following packages will be REMOVED:<br />
triggercmdagent<br />
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.<br />
1 not fully installed or removed.<br />
After this operation, 0 B of additional disk space will be used.<br />
Do you want to continue? [Y/n] y<br />
(Reading database ... 51918 files and directories currently installed.)<br />
Removing triggercmdagent (1.0.1) ...<br />
pi@raspberrypi:~ $ sudo dpkg -i triggercmdagent_1.0.1_all.deb<br />
Selecting previously unselected package triggercmdagent.<br />
(Reading database ... 49379 files and directories currently installed.)<br />
Preparing to unpack triggercmdagent_1.0.1_all.deb ...<br />
Unpacking triggercmdagent (1.0.1) ...<br />
Setting up triggercmdagent (1.0.1) ...<br />
Directory 'node_modules' exists. Running 'npm rebuild'<br />
dpkg: error processing package triggercmdagent (--install):<br />
installed triggercmdagent package post-installation script subprocess returned                                        error exit status 1<br />
Errors were encountered while processing:<br />
triggercmdagent<br />
pi@raspberrypi:~ $ triggercmdagent<br />
pi@raspberrypi:~ $ sudo /usr/share/triggercmdagent/app/src/installdaemon.sh<br />
cp: cannot create regular file '/root/.TRIGGERcmdData/triggercmdagent.service':                                        No such file or directory<br />
/usr/share/triggercmdagent/app/src/daemonmgr.sh: 10: /usr/share/triggercmdagent/                                       app/src/daemonmgr.sh: cannot create /root/.TRIGGERcmdData/triggercmdagent.servic                                       e: Directory nonexistent<br />
/usr/share/triggercmdagent/app/src/daemonmgr.sh: 11: /usr/share/triggercmdagent/                                       app/src/daemonmgr.sh: cannot create /root/.TRIGGERcmdData/triggercmdagent.servic                                       e: Directory nonexistent<br />
cp: cannot stat '/root/.TRIGGERcmdData/triggercmdagent.service': No such file or                                        directory<br />
Failed to start triggercmdagent.service: Unit triggercmdagent.service not found.<br />
Failed to enable unit: Unit file triggercmdagent.service does not exist.<br />
Unit triggercmdagent.service could not be found.<br />
pi@raspberrypi:~ $</p>
]]></description><link>https://www.triggercmd.com/forum/post/2122</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2122</guid><dc:creator><![CDATA[Antonio36996]]></dc:creator><pubDate>Sun, 03 May 2020 22:42:17 GMT</pubDate></item><item><title><![CDATA[Reply to Raspberry Pi install failed on Sun, 03 May 2020 20:26:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3277">@Antonio36996</a>, can you send me the output of this command?</p>
<pre><code>dpkg -i triggercmdagent_1.0.1_all.deb
</code></pre>
<p dir="auto">Also, please try an uninstall and re-install like this:</p>
<pre><code>systemctl stop triggercmdagent
/usr/share/triggercmdagent/app/src/removedaemon.sh
apt remove triggercmdagent
dpkg -i triggercmdagent_1.0.1_all.deb
triggercmdagent
(CTRL-C)
/usr/share/triggercmdagent/app/src/installdaemon.sh
</code></pre>
<p dir="auto">I tried a fresh install using setup.bat with <a href="https://www.triggercmd.com/forum/topic/606/windows-script-to-prep-sd-card-for-raspberry-pi-with-triggercmd-agent">this method</a> and it worked.</p>
<p dir="auto">I also tried installing using the <a href="https://www.triggercmd.com/forum/topic/12/raspberry-pi-setup">original method</a> after a fresh Raspbian install and that worked for me too.</p>
<p dir="auto">EDIT:  Another idea - please try this and let me know what you see.</p>
<pre><code>cd /usr/share/triggercmdagent/app
npm install
</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/2119</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2119</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 03 May 2020 20:26:01 GMT</pubDate></item></channel></rss>