# Unable to add workers detected by the watchdog

**URL:** <https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203>\
**Category:** User interface\
**Created:** [January 12, 2024, 10:39am UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203 "2024-01-12T10:39:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 10:39am UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/1 "2024-01-12T10:39:11Z")

</div>

Hi,

First of all, I would like to say thank you for designing such an amazing product!

Unfortunately, I am having problem with adding the workers to my pioreactor cluster (leader: P01) and this is the output log I constantly receive for all the worker reactors (P04, P05, P06, P07, P08).

e[32m2024-01-11T16:05:24+0100 INFO [add\_pioreactor] Adding new pioreactor P05 to cluster.e[0m e[31m2024-01-11T16:05:38+0100 ERROR [add\_pioreactor] + set -e + export LC\_ALL=C + LC\_ALL=C + SSHPASS=raspberry + HOSTNAME=P05 + HOSTNAME\_local=P05.local + USERNAME=pioreactor + ssh-keygen -R P05.local + ssh-keygen -R P05 ++ getent hosts P05.local ++ cut '-d ’ -f1 + ssh-keygen -R 192.168.100.196 + N=120 + counter=0 + sshpass -p raspberry ssh P05.local ‘test -d /home/pioreactor/.pioreactor && echo ‘'‘exists’'’’ + pio discover-workers -t + grep -q P05 + sshpass -p raspberry ssh-copy-id P05.local /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/pioreactor/.ssh/id\_rsa.pub” /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system. (if you think this is a mistake, you may want to use -f option) + rm -f /home/pioreactor/.pioreactor/config\_P05.ini + touch /home/pioreactor/.pioreactor/config\_P05.ini + echo -e ‘# Any settings here are specific to P05, and override the settings in shared config.ini’ + crudini --set --ini-options=nospace /home/pioreactor/.pioreactor/config.ini cluster.inventory P05 1 + ssh-keyscan P05.local # P05.local:22 SSH-2.0-OpenSSH\_9.2p1 Raspbian-2 # P05.local:22 SSH-2.0-OpenSSH\_9.2p1 Raspbian-2 # P05.local:22 SSH-2.0-OpenSSH\_9.2p1 Raspbian-2 # P05.local:22 SSH-2.0-OpenSSH\_9.2p1 Raspbian-2 # P05.local:22 SSH-2.0-OpenSSH\_9.2p1 Raspbian-2 + pios sync-configs --units P05 --skip-save e[36m2024-01-11T16:05:36+0100 DEBUG [sync\_configs] Syncing configs on P05…e[0m + sleep 1 + N=120 + counter=0 + sshpass -p raspberry ssh P05.local ‘test -f /home/pioreactor/.pioreactor/config.ini && echo ‘'‘exists’'’’ ++ date + ssh P05.local ‘sudo date --set “Thu Jan 11 16:05:38 CET 2024”’ sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required e[0m Aborted!

Despite the failure, I can see that the watchdog detected the workers and even though I receive the error, the workers appear in the cluster (sometimes) however they are just offline and do not give any blue light on the HAT even when manually tried.

In advance, thank you for your help!

Best regards,  
Baris Kara

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 1:48pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/2 "2024-01-12T13:48:57Z")

</div>

Hi Kara,

The first thing to check is:

Can you confirm that the _worker_ has `username` equal to `pioreactor` during the software installation?

 ![Screenshot 2024-01-12 at 8.45.33 AM](https://forum.pioreactor.com/uploads/default/original/1X/4fd5446869a3b14d98db7001e4079e6a137a6377.png)

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 2:13pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/3 "2024-01-12T14:13:18Z")

</div>

Hi Cameron,

Thank you for responding quickly!

Yes, all the _workers_ are assigned with **pioreactor** as username and _raspberry_ as **password** as described in the Software Installation Guideline.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 2:25pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/4 "2024-01-12T14:25:31Z")

</div>

Hm, maybe something changed in the latest software. I’ll check this hour. 1) Can you tell me which Raspberry Pi Imager you are using, and 2) if you downloaded the worker image very recently (like today or yesterday)?

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 2:35pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/5 "2024-01-12T14:35:47Z")

</div>

Could be. I am used imager\_1.8.4.exe and I downloaded worker image 2 days ago (10/02/2024). In the mean time, I will 1) reflash two of the reactors 2) download new worker image to see if makes any difference and update you the outcome

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 2:59pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/6 "2024-01-12T14:59:39Z")

</div>

Also: for the workers that are in a “disconnected” state, try doing a power-cycle (pull the plug and put it back in) to see if they connect.

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 3:09pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/7 "2024-01-12T15:09:28Z")

</div>

Good advice and I have been doing that but it did not have any influence on the state.

I have1) reflashed the SD cards and 2) installed the worker image downloaded today.

I did not get any notice for “watchdog” detection this time, however, when I tried to add the _worker_ to the cluster, I got the same error log.

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 3:23pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/8 "2024-01-12T15:23:06Z")

</div>

Okay I do not know what exactly happened, I did another power-cycle and the _worker_ automatically added to the cluster even without searching for the reactor.

So, I will try to see 1) if asking to add reactor followed with a power-cycling adds other reactors with old worker image (from 10/01/2024) 2) if not, would replacing new worker image followed with power-cycling have the successful outcome.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 3:25pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/9 "2024-01-12T15:25:30Z")

</div>

So I tested an existing leader connecting to a freshly downloaded worker locally, and I was able to connect the two without issue. Hm hm hm.

The error you posted looks like it’s a permission problem on the worker. Are you comfortable with [SSH](https://docs.pioreactor.com/user-guide/accessing-raspberry-pi)? If you power on a worker that’s having trouble, you can SSH into it with `ssh pioreactor@P05.local` (for example, that’s worker `P05`), and enter “raspberry” as the password. Once on, try running something like `sudo cat /etc/hostname` - does that ask for a password?

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 3:32pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/10 "2024-01-12T15:32:20Z")

</div>

> [@CamDavidsonPilon](#):
>
> So I tested an existing leader connecting to a freshly downloaded worker locally, and I was able to connect the two without issue. Hm hm hm.

Good feedback! I tried to add other reactors however I receive:

“Unable to complete installation. The following error occurred: Timed out, see logs.”

Hence, I will try to install new worker image ( **from 12/01/24** ) and try to see if that would make any difference.

> [@CamDavidsonPilon](#):
>
> The error you posted looks like it’s a permission problem on the worker. Are you comfortable with [SSH](https://docs.pioreactor.com/user-guide/accessing-raspberry-pi)? If you power on a worker that’s having trouble, you can SSH into it with `ssh pioreactor@P05.local` (for example, that’s worker `P05`), and enter “raspberry” as the password. Once on, try running something like `sudo cat /etc/hostname` - does that ask for a password?

Unfortunately, I do not have admin access to run “ssh” due to company restrictions. I actually wanted to do so, as it was suggested in the previous topics and guidelines. I asked for premission, however, it is not going be granted before Monday (15/01/2024).

Hence, in the upcoming days I can update the topic if I get more info from the ssh side.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 3:35pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/11 "2024-01-12T15:35:13Z")

</div>

> [@sharknaro](#):
>
> “Unable to complete installation. The following error occurred: Timed out, see logs.”

This could be just that the worker isn’t “online” yet. I would try again in a moment. It can take a few minutes for the worker to get online.

Yes, I’ll keep investigating, too. The original error you are seeing happens late in the connection process, and a simple (manual) worker reboot _should_ complete the process. Sorry about the difficulty!

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 3:46pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/12 "2024-01-12T15:46:35Z")

</div>

> [@CamDavidsonPilon](#):
>
> This could be just that the worker isn’t “online” yet. I would try again in a moment. It can take a few minutes for the worker to get online.

Okay this makes sense, but it is still weird to get it for a reactor who has been connected to power for hours. I suspect, it might be due to corrupt SD card because it also does not get recognized by the watchdog. However, this might still be due to not being “online” so I will look to this and update if I get a different outcome.

> [@CamDavidsonPilon](#):
>
> Yes, I’ll keep investigating, too. The original error you are seeing happens late in the connection process, and a simple (manual) worker reboot _should_ complete the process. Sorry about the difficulty!

I can understand why you would recommend SSH access. It would make it easier to resolve this through the command line interface.

This being said, it is my pleasure to learn this amazing product so no need to sorry. I am actually enjoying to go through the learning process!

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 4:38pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/13 "2024-01-12T16:38:10Z")

</div>

> [@sharknaro](#):
>
> So, I will try to see 1) if asking to add reactor followed with a power-cycling adds other reactors with old worker image (from 10/01/2024) 2) if not, would replacing new worker image followed with power-cycling have the successful outcome.

Okay so neither 1) or 2) worked. However, I got access to the CLI and and after running what you suggested here:

> [@CamDavidsonPilon](#):
>
> The error you posted looks like it’s a permission problem on the worker. Are you comfortable with [SSH](https://docs.pioreactor.com/user-guide/accessing-raspberry-pi)? If you power on a worker that’s having trouble, you can SSH into it with `ssh pioreactor@P05.local` (for example, that’s worker `P05`), and enter “raspberry” as the password. Once on, try running something like `sudo cat /etc/hostname` - does that ask for a password?

It asked me enter password which was _raspberry_ and after this I was able to gain access to the worker in the CLI.

Also, when I ran “pio discover-workers” when connected to the leader, I get the leader and all the workers listed (even the ones that are not added to the cluster).

However, when I ran “pio add-pioreactor” (again when connectde to the leader) I only get this error log:

2024-01-12T17:43:34+0100 ERROR [add\_pioreactor] + set -e

- export LC\_ALL=C
- LC\_ALL=C
- SSHPASS=raspberry
- HOSTNAME=P04
- HOSTNAME\_local=P04.local
- USERNAME=pioreactor
- ssh-keygen -R P04.local
- ssh-keygen -R P04  
++ getent hosts P04.local  
++ cut '-d ’ -f1
- ssh-keygen -R 192.168.100.196
- N=120
- counter=0
- sshpass -p raspberry ssh P04.local ‘test -d /home/pioreactor/.pioreactor && echo ‘'‘exists’'’’  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!  
Someone could be eavesdropping on you right now (man-in-the-middle attack)!  
It is also possible that a host key has just been changed.  
The fingerprint for the ED25519 key sent by the remote host is  
SHA256:hktL1D7D3a80ZORzc9jK/AHfogOLzS5vONqiGDhhJzU.  
Please contact your system administrator.  
Add correct host key in /home/pioreactor/.ssh/known\_hosts to get rid of this message.  
Offending ECDSA key in /home/pioreactor/.ssh/known\_hosts:14  
remove with:  
ssh-keygen -f “/home/pioreactor/.ssh/known\_hosts” -R “p04.local”  
Host key for p04.local has changed and you have requested strict checking.  
Host key verification failed.  
++ date
- echo ‘Connection to P04.local missed - Fri Jan 12 17:36:07 CET 2024’
- sshpass -v -p raspberry ssh P04.local
- grep ‘Wrong password’
- counter=1
- ‘[’ 1 -eq 120 ‘]’
- sleep 1
- sshpass -p raspberry ssh P04.local ‘test -d /home/pioreactor/.pioreactor && echo ‘'‘exists’'’’

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 12, 2024, 6:19pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/14 "2024-01-12T18:19:18Z")

</div>

Very strange. That warning shouldn’t appear. Are you using the built-in local-access-point network, or on your institutions network? (I’m guessing the latter since you needed SSH access).

What I think is going on is a network issue. You may be on a network type we haven’t seen before. Let me think more about this.

@sharknaro can you put me in contact with your IT team? My email is [cam@pioreactor.com](mailto:cam@pioreactor.com) if you want to share their contact with me. I’d like to learn more about the network.

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 12, 2024, 8:19pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/15 "2024-01-12T20:19:18Z")

</div>

We are using a WIFI connection actually and my manager has successfully connected a leader and 2 workers to the WIFI network without problemface (plus the one reactor I connected after power-cycling).

After that we ordered more units and this problem happened when I tried to add them to the cluster.

The WIFI is setup by my manager which has contacted with you before, so the IT department might not be helpful in this case as they might not know the WIFI connection.

I will provide your contact adress to them and also share their contact address with you on Monday once I get premission from them 🙂

Thank you very much for all your help and time so far!

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 15, 2024, 2:28pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/16 "2024-01-15T14:28:20Z")

</div>

Hi again Cameron,

I came with more information, so I learned that we are using a SIM card as a WIFI Hotspot to connect the pioreactors, so it is not institution network and because of that the IT Team might not be helpful for the case.

I think you are right about the network issue, because I when I switched to built-in _local-access-point_, I was able to connect the _workers_ to the _leader/hotspot_ pioreactor.

Despite successful connection, the initial error log provided in my first post (shown below) was still illustrated before the reactors got added to the cluster, so perhaps the reason for this is unrelated with the network?

 ![Capture](https://forum.pioreactor.com/uploads/default/original/1X/5b6cc48019251e837e015c4bae054a715cd277f3.png)

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 15, 2024, 2:54pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/17 "2024-01-15T14:54:38Z")

</div>

Ah okay that information helps. Still very strange you keep seeing that `sudo` error. I’m unable to reproduce it, too. Is it only worker P04 that has had this problem?

Give me some more time to think about it, and I’ll get back to you.

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 15, 2024, 3:11pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/18 "2024-01-15T15:11:07Z")

</div>

> [@CamDavidsonPilon](#):
>
> Still very strange you keep seeing that `sudo` error.

I agree, this was a suprise to me as well.

> [@CamDavidsonPilon](#):
>
> Is it only worker P04 that has had this problem?

I added 3 workers and all of them had the same error log before being added to the cluster.

Thank you for having time, I will also further investigate to see if the error persists!

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 15, 2024, 9:29pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/19 "2024-01-15T21:29:51Z")

</div>

You can SSH into your workers (even if they are not connected to the cluster or show up in the UI - so long as they are on the same network). Can you log into one (that is having trouble), and try the following command:

```auto
sudo cat /etc/sudoers.d/010_pi-nopasswd

```

Do you get a a) prompted for a password? And b) what is the output of that command?

---

<div class="post-metadata">

**Author:** ![sharknaro](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/s/4bbf92/32.png) [@sharknaro](https://forum.pioreactor.com/u/sharknaro)\
**Post date:** [January 16, 2024, 1:49pm UTC](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203/20 "2024-01-16T13:49:07Z")

</div>

> [@CamDavidsonPilon](#):
>
> a) prompted for a password?

Yes, this prompts me the pioreactor password

> [@CamDavidsonPilon](#):
>
> b) what is the output of that command?

The output of the command is **pionetwork ALL=(ALL) NO PASSWD: ALL**

[Next page](https://forum.pioreactor.com/t/unable-to-add-workers-detected-by-the-watchdog/203.md?page=2)
