Skip to content

Conversation

@dconlon
Copy link
Contributor

@dconlon dconlon commented Oct 9, 2025

emonhub tries to load available.conf from the fixed path /opt/openenergymonitor/emonhub/conf/available.conf even when autoconf = 0, resulting in an error being logged and sys.exit being called. sys.exit exits the main thread but not the emonhub process leaving the interfacer threads running without any main thread to transfer packets over the message bus between them.

These commits attempt to load available.conf only when autoconf is enabled and where autoconf is enabled and available.conf cannot be loaded ensures the whole process exits.

@dconlon
Copy link
Contributor Author

dconlon commented Jan 3, 2026

I'm not running emonhub on emonpi and I don't have anything at hard coded path /opt/openenergymonitor/emonhub/conf/available.conf so stock emonhub will not run for me unless I create that hard coded path and I'm a bit pedantic! It'd be nice to be able to run stock emonhub on instances which are not setup with the full emonpi payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant