FUXA plugins are lost after Home Assistant add-on restart
Description
Plugins installed through the FUXA plugin interface do not appear to persist across restarts of the Home Assistant add-on.
I am using the FUXA Home Assistant add-on and need the node-snap7 server plugin for communication with a Siemens PLC.
When I initially open FUXA, node-snap7 shows no installed version. If I click Install, the installation appears to complete successfully:
- A version number appears in the FUXA plugin interface.
- Communication with the Siemens PLC immediately starts working correctly.
However, if I stop/start the FUXA add-on or reboot Home Assistant, the plugin is no longer available and PLC communication stops working. The FUXA log then reports that the required plugin is missing.
Reinstalling node-snap7 from the FUXA interface restores communication until the next add-on restart.
Steps to reproduce
- Install and start the FUXA Home Assistant add-on.
- Configure a Siemens S7 connection that requires
node-snap7.
- Open the FUXA plugin/server plugin interface.
- Install
node-snap7.
- Confirm that the plugin now shows an installed version.
- Confirm that communication with the Siemens PLC works.
- Stop and restart the FUXA Home Assistant add-on.
- Open FUXA again.
Actual behavior
node-snap7 is no longer available after the add-on restart, and FUXA reports that the plugin is missing.
The plugin must be manually installed again after every restart.
Expected behavior
Plugins installed through the FUXA interface should persist across normal Home Assistant add-on restarts and Home Assistant reboots.
Possible cause
It appears that FUXA installs runtime plugins into its _pkg directory, but this directory may not currently be mapped to persistent Home Assistant add-on storage.
The add-on already appears to provide persistent mappings for directories such as _appdata, _db, _images, and _logs, but not _pkg.
If _pkg resides only in the container filesystem, that would explain why the plugin works immediately after installation but disappears when Home Assistant recreates the add-on container.
Possible fix
Consider adding persistent storage for the FUXA _pkg directory in the add-on configuration.
For example, if the FUXA plugin directory is:
/usr/src/app/FUXA/server/_pkg
a persistent data mapping similar to the following may resolve the issue:
- type: data
read_only: false
path: /usr/src/app/FUXA/server/_pkg
Alternatively, node-snap7 could potentially be included in the add-on image if that is preferable.
Thanks for maintaining the FUXA Home Assistant add-on. Please let me know if there are any logs or configuration details I can provide to help troubleshoot this.
FUXA plugins are lost after Home Assistant add-on restart
Description
Plugins installed through the FUXA plugin interface do not appear to persist across restarts of the Home Assistant add-on.
I am using the FUXA Home Assistant add-on and need the
node-snap7server plugin for communication with a Siemens PLC.When I initially open FUXA,
node-snap7shows no installed version. If I click Install, the installation appears to complete successfully:However, if I stop/start the FUXA add-on or reboot Home Assistant, the plugin is no longer available and PLC communication stops working. The FUXA log then reports that the required plugin is missing.
Reinstalling
node-snap7from the FUXA interface restores communication until the next add-on restart.Steps to reproduce
node-snap7.node-snap7.Actual behavior
node-snap7is no longer available after the add-on restart, and FUXA reports that the plugin is missing.The plugin must be manually installed again after every restart.
Expected behavior
Plugins installed through the FUXA interface should persist across normal Home Assistant add-on restarts and Home Assistant reboots.
Possible cause
It appears that FUXA installs runtime plugins into its
_pkgdirectory, but this directory may not currently be mapped to persistent Home Assistant add-on storage.The add-on already appears to provide persistent mappings for directories such as
_appdata,_db,_images, and_logs, but not_pkg.If
_pkgresides only in the container filesystem, that would explain why the plugin works immediately after installation but disappears when Home Assistant recreates the add-on container.Possible fix
Consider adding persistent storage for the FUXA
_pkgdirectory in the add-on configuration.For example, if the FUXA plugin directory is:
a persistent
datamapping similar to the following may resolve the issue:Alternatively,
node-snap7could potentially be included in the add-on image if that is preferable.Thanks for maintaining the FUXA Home Assistant add-on. Please let me know if there are any logs or configuration details I can provide to help troubleshoot this.