heyhey! i just updated to the next release and something is not working out with the UI, when i want to click on my pioreactors after creating an experiment, this is happening:
Something went wrong with the PioreactorUI!
Don’t worry. It’s our fault. Here’s what you can do:
Looks like there’s a bug in the UI. See the below for error information. We would appreciate it if you create an issue in Github for us, with the information below.
URL: http://pioreactor2.piogate.izi.fraunhofer.de:8080/pioreactors
i.map is not a function
if i want to SSH into the pioreactor and run for example stirring, it’s saying this:
pioreactor@pioreactor2:~ $ pio run stirring
Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/pioreactor/whoami.py”, line 57, in _get_assigned_experiment_name
result.raise_for_status()
File “/usr/local/lib/python3.11/dist-packages/pioreactor/mureq.py”, line 232, in raise_for_status
raise HTTPErrorStatus(self.status_code)
pioreactor.mureq.HTTPErrorStatus: HTTP response returned error code 404
During handling of the above exception, another exception occurred:
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/background_jobs/stirring.py”, line 509, in click_stirring
st = start_stirring(target_rpm=target_rpm, use_rpm=use_rpm)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pioreactor/background_jobs/stirring.py”, line 477, in start_stirring
experiment = experiment or get_assigned_experiment_name(unit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pioreactor/whoami.py”, line 37, in get_assigned_experiment_name
return _get_assigned_experiment_name(unit_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/pioreactor/whoami.py”, line 66, in _get_assigned_experiment_name
raise NotAssignedAnExperimentError(f"Worker {unit_name} is not assigned to an experiment")
pioreactor.exc.NotAssignedAnExperimentError: Worker pioreactor2 is not assigned to an experiment
pio version = 24.4.11
it seems like pio 2, which is my leader, is now not my leader anymore but i also don’t know how to change that. If i want to add any worker via the new “inventory” button to my cluster it doesn’t work, i guess it is because i have no leader assigned, the following error message occurs:
Unable to complete installation. The following error occurred: e[32m2024-04-12T14:22:06+0200 INFO [add_pioreactor] Adding new pioreactor pioreactor1 to cluster.e[0m e[31m2024-04-12T14:22:08+0200 ERROR [add_pioreactor] + set -e + export LC_ALL=C + LC_ALL=C + SSHPASS=raspberry + HOSTNAME=pioreactor1 + HOSTNAME_local=pioreactor1.local + USERNAME=pioreactor + ssh-keygen -R pioreactor1.local + ssh-keygen -R pioreactor1 ++ getent hosts pioreactor1.local ++ cut '-d ’ -f1 + ssh-keygen -R 10.131.125.66 + N=120 + counter=0 + sshpass -p raspberry ssh pioreactor@pioreactor1.local ‘test -d /home/pioreactor/.pioreactor && echo ‘'‘exists’'’’ + pio discover-workers -t + grep -q pioreactor1 Usage: pio [OPTIONS] COMMAND [ARGS]… Try ‘pio --help’ for help. Error: No such command ‘discover-workers’. + echo ‘Unable to confirm if pioreactor1 is a Pioreactor worker. Not found in ‘'‘pio discover-workers -t’'’. Did you install the worker image?’ + exit 1 e[0m 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/cluster_management/init.py”, line 91, in add_worker raise BashScriptError(res.stderr) pioreactor.exc.BashScriptError: + set -e + export LC_ALL=C + LC_ALL=C + SSHPASS=raspberry + HOSTNAME=pioreactor1 + HOSTNAME_local=pioreactor1.local + USERNAME=pioreactor + ssh-keygen -R pioreactor1.local + ssh-keygen -R pioreactor1 ++ getent hosts pioreactor1.local ++ cut '-d ’ -f1 + ssh-keygen -R 10.131.125.66 + N=120 + counter=0 + sshpass -p raspberry ssh pioreactor@pioreactor1.local ‘test -d /home/pioreactor/.pioreactor && echo ‘'‘exists’'’’ + pio discover-workers -t + grep -q pioreactor1 Usage: pio [OPTIONS] COMMAND [ARGS]… Try ‘pio --help’ for help. Error: No such command ‘discover-workers’. + echo ‘Unable to confirm if pioreactor1 is a Pioreactor worker. Not found in ‘'‘pio discover-workers -t’'’. Did you install the worker image?’ + exit 1
any ideas? thanks!!!