The output from worker was;
pioreactor@Pio02:~ $ sudo systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/etc/systemd/system/lighttpd.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-10-01 22:41:14 BST; 1min 7s ago
Process: 769 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 779 (lighttpd)
Tasks: 7 (limit: 3977)
CPU: 1.394s
CGroup: /system.slice/lighttpd.service
├─779 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
└─797 /usr/bin/python3 /var/www/pioreactorui/main.fcgi
Oct 01 22:41:14 Pio02 systemd[1]: Starting lighttpd.service - Lighttpd Daemon…
Oct 01 22:41:14 Pio02 systemd[1]: Started lighttpd.service - Lighttpd Daemon.
I run the same command on leader and the output was;
pioreactor@Pio01:~ $ sudo systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/etc/systemd/system/lighttpd.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-10-01 22:31:44 BST; 2min 59s ago
Process: 753 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 826 (lighttpd)
Tasks: 8 (limit: 3977)
CPU: 2.111s
CGroup: /system.slice/lighttpd.service
├─826 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
└─838 /usr/bin/python3 /var/www/pioreactorui/main.fcgi
Oct 01 22:31:43 Pio01 systemd[1]: Starting lighttpd.service - Lighttpd Daemon…
Oct 01 22:31:44 Pio01 systemd[1]: Started lighttpd.service - Lighttpd Daemon.
The problem of sync and connection within the cluster was sorted out by removing the problem worker from cluster and adding it back again.
However, my leader pioreactor still cannot start its jobs.
For the plugin, I run the command on leader and the output was;
pioreactor@Pio01:~ $ pio plugins install pioreactor-air-bubbler --source ~/pioreactor_air_bubbler-0.3.1-py3-none-any.whl
2024-10-01T23:41:04+0100 DEBUG [install_plugin] Installing plugin pioreactor-air-bubbler.
2024-10-01T23:41:04+0100 DEBUG [install_plugin] bash /usr/local/bin/install_pioreactor_plugin.sh pioreactor-air-bubbler /home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl
2024-10-01T23:41:08+0100 NOTICE [install_plugin] Successfully installed plugin pioreactor-air-bubbler.
But when I run this command on workers, the output was;
pioreactor@Pio02:~ $ pio plugins install pioreactor-air-bubbler --source ~/pioreactor_air_bubbler-0.3.1-py3-none-any.whl
2024-10-01T23:41:30+0100 DEBUG [install_plugin] Installing plugin pioreactor-air-bubbler.
2024-10-01T23:41:30+0100 DEBUG [install_plugin] bash /usr/local/bin/install_pioreactor_plugin.sh pioreactor-air-bubbler /home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl
2024-10-01T23:41:32+0100 ERROR [install_plugin] Failed to install plugin pioreactor-air-bubbler. See logs.
2024-10-01T23:41:32+0100 DEBUG [install_plugin] b’Processing ./pioreactor_air_bubbler-0.3.1-py3-none-any.whl\n’
2024-10-01T23:41:32+0100 DEBUG [install_plugin] b"+ export LC_ALL=C\n+ LC_ALL=C\n+ plugin_name=pioreactor-air-bubbler\n+ source=/home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl\n+ clean_plugin_name=pioreactor-air-bubbler\n+ clean_plugin_name_with_dashes=pioreactor-air-bubbler\n+ clean_plugin_name_with_underscores=pioreactor_air_bubbler\n++ python3 -c ‘import site; print(site.getsitepackages()[0])’\n+ install_folder=/usr/local/lib/python3.11/dist-packages/pioreactor_air_bubbler\n++ crudini --get /home/pioreactor/.pioreactor/config.ini cluster.topology leader_hostname\n+ leader_hostname=Pio01\n++ hostname\n+ ‘[’ Pio01 = Pio02 ‘]’\n+ am_i_leader=false\n+ ‘[’ -n /home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl ‘]’\n+ sudo pip3 install --force-reinstall --no-index /home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl\nWARNING: Requirement ‘/home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl’ looks like a filename, but the file does not exist\nERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘/home/pioreactor/pioreactor_air_bubbler-0.3.1-py3-none-any.whl’\n\n"
Traceback (most recent call last):
File “/usr/local/bin/pio”, line 8, in
sys.exit(pio())
^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pioreactor/plugin_management/install_plugin.py”, line 44, in click_install_plugin
install_plugin(name_of_plugin, source)
File “/usr/local/lib/python3.11/dist-packages/pioreactor/plugin_management/install_plugin.py”, line 33, in install_plugin
raise BashScriptError(f"Failed to install plugin {name_of_plugin}. See logs.")
pioreactor.exc.BashScriptError: Failed to install plugin pioreactor-air-bubbler. See logs.
EDITED: All problems were sorted out.
I deleted a serie of unnecessary files that I put on the leader when installed the air bubbler plugin. Those files are <init.py>, <setup.py>, <README.md>,<air_bubbler.py>, and <additional_config>.
This made my leader can do its jobs and the air bubbler pump works!
For workers, I put the file name <pioreactor_air_bubbler-0.3.1-py3-none-any.whl. to each of worker via WinSCP. And run the command the you suggested
pio plugins install pioreactor-air-bubbler --source ~/pioreactor_air_bubbler-0.3.1-py3-none-any.whl
The output showed the successfully installation of the plugin.
And now, the air bubbler pumps are working in all of my workers.
Still, I’m a bit curious why existing of some files affect the pioreactor.
Anyway, thank you so much for your help, Cameron ![:slight_smile: :slight_smile:](https://forum.pioreactor.com/images/emoji/twitter/slight_smile.png?v=12)