Hi everyone,
We are having problem with accessing the user interface (UI) through our local access point.
The local access point can still be accessed through the command line, however, the UI is remains to be down and cannot be accessed.
Upon troubleshooting, running pio update ui
on the leader results with the error log:
Job for huey.service failed because the control process exited with error code.
See “systemctl status huey.service” and “journalctl -xeu huey.service” for details.
2024-07-25T11:46:36+0200 DEBUG [update_ui] wget https://github.com/pioreactor/pioreactorui/archive/refs/tags/24.7.19.tar.gz -O /tmp/pioreactorui.tar.gz
2024-07-25T11:46:39+0200 DEBUG [update_ui] bash /usr/local/bin/update_ui.sh /tmp/pioreactorui.tar.gz
2024-07-25T11:46:41+0200 ERROR [update_ui] + set -e
+ export LC_ALL=C
+ LC_ALL=C
+ SRC_TAR=/tmp/pioreactorui.tar.gz
++ mktemp -d -t pioreactorui_XXXX
+ TEMP_DIR=/tmp/pioreactorui_8lQz
+ UI_FOLDER=/var/www/pioreactorui
+ trap finish EXIT
+ tar -xzf /tmp/pioreactorui.tar.gz -C /tmp/pioreactorui_8lQz
++ find /tmp/pioreactorui_8lQz -mindepth 1 -maxdepth 1 -type d
+ WORK_DIR=/tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ echo /tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ [[ -z /tmp/pioreactorui_8lQz/pioreactorui-24.7.19 ]]
+ rsync -ap --ignore-existing /var/www/pioreactorui/contrib/ /tmp/pioreactorui_8lQz/pioreactorui-24.7.19/contrib/
+ cp -p /var/www/pioreactorui/.env /tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ rm -rf /var/www/pioreactorui
+ mkdir /var/www/pioreactorui
+ cp -rp /tmp/pioreactorui_8lQz/pioreactorui-24.7.19/. /var/www/pioreactorui
+ chgrp -R www-data /var/www/pioreactorui
+ ENV=/var/www/pioreactorui/.env
+ '[' -f /var/www/pioreactorui/.env ']'
+ echo '/var/www/pioreactorui/.env exists.'
+ finish
+ rm -rf /tmp/pioreactorui_8lQz
+ sudo systemctl restart lighttpd.service
+ sudo systemctl restart huey.service
Job for huey.service failed because the control process exited with error code.
See "systemctl status huey.service" and "journalctl -xeu huey.service" for details.
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/cli/pio.py", line 686, in update_ui
raise exc.BashScriptError(p.stderr)
pioreactor.exc.BashScriptError: + set -e
+ export LC_ALL=C
+ LC_ALL=C
+ SRC_TAR=/tmp/pioreactorui.tar.gz
++ mktemp -d -t pioreactorui_XXXX
+ TEMP_DIR=/tmp/pioreactorui_8lQz
+ UI_FOLDER=/var/www/pioreactorui
+ trap finish EXIT
+ tar -xzf /tmp/pioreactorui.tar.gz -C /tmp/pioreactorui_8lQz
++ find /tmp/pioreactorui_8lQz -mindepth 1 -maxdepth 1 -type d
+ WORK_DIR=/tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ echo /tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ [[ -z /tmp/pioreactorui_8lQz/pioreactorui-24.7.19 ]]
+ rsync -ap --ignore-existing /var/www/pioreactorui/contrib/ /tmp/pioreactorui_8lQz/pioreactorui-24.7.19/contrib/
+ cp -p /var/www/pioreactorui/.env /tmp/pioreactorui_8lQz/pioreactorui-24.7.19
+ rm -rf /var/www/pioreactorui
+ mkdir /var/www/pioreactorui
+ cp -rp /tmp/pioreactorui_8lQz/pioreactorui-24.7.19/. /var/www/pioreactorui
+ chgrp -R www-data /var/www/pioreactorui
+ ENV=/var/www/pioreactorui/.env
+ '[' -f /var/www/pioreactorui/.env ']'
+ echo '/var/www/pioreactorui/.env exists.'
+ finish
+ rm -rf /tmp/pioreactorui_8lQz
+ sudo systemctl restart lighttpd.service
+ sudo systemctl restart huey.service
Job for huey.service failed because the control process exited with error code.
See "systemctl status huey.service" and "journalctl -xeu huey.service" for details.
We tried:
- Rebooting the leader
- Updating the leader app with lower software version - i.e., 24.6.10
- Reinstalling huey.whl through wheels_24.7.18.zip
However, none of the attempts solved the problem.
Did anyone encountered a similar issue or have an idea of a potential solution for this problem?