Has the emonhub-log been moved? I just downloaded the latest emonSD image and after the first boot the latest updates were installed (e.g. emoncms 9.9.6). However, there are no log messages displayed under Setup → emonhub and there is no directory emonhub listed at /var/log.
sudo service emonhub status returns the last log entries, but where do they come from?
We do not yet have a build guide for the Oct 2018 image so I cannot check on what should be where.
However! Trying to think what might of happened to them and not finding any changes on the emonhub repo, I have just recalled that @TrystanLea has made some changes to the emonSD in the emonPi update routine in respect of emonhub.
The service.unit that was not brought into mainstream use when it was merged last April has now been activated by the changes in the emonPi updates
If I recall correctly it was not previously used as it did not handle the logfile creation which the original init script does. I cannot find any sign of alternative arrangements having been made (yet?).
I fear emonhub may now need to be added to the long list of other softwares that do not start properly at boot time (due to log files not created) that are handled in the rc.local file. A shame really, since emonhub has been the only software to consistently and reliably manage it’s own logfiles without any problems for years. It has been essential and central to debugging untold issues.
There was functionality added to emonhub so it could send log data to syslog and there was also talk elsewhere about using systemctl logs rather than dedicated log files for services (such as MQTT etc) although I do not think that was aimed at emonhub, there has also been lengthy discussions about a custom logfile manager, using tmpfiles.d and my own suggestion of log2ram to over come the issues with managing logfiles when they are held in RAM (that didn’t affect emonhub prior to now), but I do not know where we are at with any of that, right now I believe the emonSD image still uses rc.local to create logfiles and folders with delays and service restarts.
I’m guessing that emonhub.log MIA is not intentional and will be making a return, as you point out is is used in emoncms and I’m not sure it will be quite so easy to parse/filter the syslog or systemctl logs for that purpose.
Is emonhub actually running? I cannot recall offhand if emonhub fails to start/run if it cannot create it’s log file, like mysql,mqtt and the rest, or if it can still run without a log file.