Issues last UI update (25.3.31)

Hello,

I just updated all my cluster to the last software version through pio update, by ssh’s each of the reactors. App updated to version 25.3.5 and UI to version 25.3.31.

However, I cannot see my cluster anymore in the UI, the experiments and calibration files are gone. When using pio workers status in the leader, I get the following:

pioreactor@Leader1:~ $ pio workers status
Name                 Is leader?      IP address           State           Active?         Reachable?     Version         Experiment
Traceback (most recent call last):
  File "/usr/local/bin/pio", line 8, in <module>
    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 294, in cluster_status
    for result in results:
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 619, in result_iterator
    yield _result_or_cancel(fs.pop())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 317, in _result_or_cancel
    return fut.result(timeout)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/pioreactor/cluster_management/__init__.py", line 265, in display_data_for
    hostname, is_active = worker["pioreactor_unit"], worker["is_active"]
                          ~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

Could I get some help with this?

Thanks in advance!

I tried to go back to the UI version 25.3.5 and I still have the same issue: nothing shows on the UI (not even the leader in the inventory), also no experiments, nothing. However, when asking for the status of the workers I get:

pioreactor@Leader1:~ $ pio workers status
Name                 Is leader?      IP address           State           Active?         Reachable?     Version         Experiment  
Leader1              Y               10.117.12.39,10.42.0.1 ready           Y               Y              25.3.5          cleaning  
Worker1-2            N               10.42.0.39           ready           Y               Y              25.3.5          cleaning    
Worker1-3            N               10.42.0.64           ready           Y               Y              25.3.5          cleaning    
Worker1-4            N               10.42.0.205          ready           Y               Y              25.3.5          cleaning    
Worker1-5            N               10.42.0.190          ready           Y               Y              25.3.5                      

I cannot cancel/end any the “cleaning” experiment, is as if the UI is frozen and not loading any data.

Yea sorry that’s the problem! The UI release is meant for an upcoming release (there’s a bug where pio update will update UI and software to latest, even if they are incompatible).

Try this on your leader:

pio update ui -v 25.3.5

and then hard-refresh the UI

I did that and it did not solve it. With EDGE I could not see any information through the UI and with Chrome, the page would directly not load (it said that the DNS server was not responding). I solved it by accessing through [leader name].local instead of pioreactor.local.

and [leader name].local is till not showing the relevant information?

Can you SSH into your leader and try pio logs? Any errors showing up there?

[leader name].local gives me the relevant information and I have access through the UI to all the information on the reactors again.