New Emonhub install won't start

I'm trying to install the EMONPI version of EMONHUB on a new copy of Jessie, and it won't start.

The command I used to install was 
git clone https://github.com/openenergymonitor/emonhub.git && emonhub/install

followed by

sudo service emonhub start

entering sudo systemctl status emonhub gives 
* emonhub.service - LSB: Start/stop emonHub
   Loaded: loaded (/etc/init.d/emonhub)
   Active: active (exited) since Mon 2016-02-01 16:48:17 NZDT; 17s ago
  Process: 3464 ExecStart=/etc/init.d/emonhub start (code=exited, status=0/SUCCESS)
Feb 01 16:48:16 kdf-jessie sudo[3495]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 01 16:48:16 kdf-jessie sudo[3495]: pam_unix(sudo:session): session closed for user root
Feb 01 16:48:17 kdf-jessie emonhub[3464]: Starting OpenEnergyMonitor emonHub: emonhub has been started ok.
Feb 01 16:48:17 kdf-jessie systemd[1]: Started LSB: Start/stop emonHub.
Feb 01 16:48:17 kdf-jessie emonhub[3464]: Traceback (most recent call last):
Feb 01 16:48:17 kdf-jessie emonhub[3464]: File "/usr/share/emonhub/emonhub.py", line 20, in <module>
Feb 01 16:48:17 kdf-jessie emonhub[3464]: import emonhub_setup as ehs
Feb 01 16:48:17 kdf-jessie emonhub[3464]: File "/home/pi/emonhub/src/emonhub_setup.py", line 12, in <module>
Feb 01 16:48:17 kdf-jessie emonhub[3464]: from configobj import ConfigObj
Feb 01 16:48:17 kdf-jessie emonhub[3464]: ImportError: No module named configobj

Looking at /home/pi/data reveals a perfectly readable emonhub.conf which presumably is what “configobj” is?

/var/log/emonhub/emonhub.log is empty

Mosquitto is working and passing data from other sources and there were no errors displayed when I carried out the install in read write mode. Reading the install script it seems all the symbolic links are in place.

 

Paul Reed's picture

Re: New Emonhub install won't start

It would be helpful if you told us which version of emoncms you've installed and which install guide you used.

Are you using a Raspberry Pi or a emonpi?

Paul

sheppy's picture

Re: New Emonhub install won't start

Apologies,

Pi Model B, following the guide at https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md

Everything has gone OK until step "Install OpenEnergyMonitor (emon-pi) emonHub variant:" which seems to install OK but emonhub won't start.

Essentially I'm trying to make an EMONPI Image to run on a standard Pi without the LCD Service that seems to hold one of my GPIO Pins. I need this PIN for Openhab GPIO use. My version of Openhab uses MQTT extensively to pass data backwards and forwards to EMONCMS which is why I don't want to change to the ordinary version.

pb66's picture

Re: New Emonhub install won't start

ConfigObj is a Python package used for managing the emonhub configuration, it is aa essential dependency. As is Py-serial, used to provide the serial port communications. Use the following line to add the dependencies via the debian package manager

sudo apt-get install -y python-serial python-configobj

Paul

sheppy's picture

Re: New Emonhub install won't start

Thanks very much, that fixed it!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.