Community
OpenEnergyMonitor

Community

emonSD-17Oct19 and dataplicity

Hi All
I have re install emonSD-17Oct19 on my RPI 2. Everythings works fine execept no way to get remote access using Dataplicity. It was running fine on emonSD-30Oct18.

Dataplicity installation was done without any error in the log file /var/log/dpinstall.log.
Looking at /var/log/dataplicity.log. No Dataplicity agent seems to be running I don’t understand why ?
Is anybody use Dataplicity on emonSD-17Oct19 ?

Thanks for any clue

Yes, I have Dataplicity running on the emonSD-17Oct19 system on a RPi 3 Model B. Setting up was easy following instructions at https://guide.openenergymonitor.org/setup/remote-access/. I’m seeing entries in the /var/log/dataplicity.log associated with the install and a series of more recent m2m identity changed entries. Maybe check that Dataplicity can run on a RPi 2 and try re-running the Dataplicity install script?
Good luck!

I think the service is supervisor so check

sudo systemctl status supervisor

or

journalctl -n 100 -u supervisor

Not used dataplicity in a while though.

I have previously found their help to be first class through their website.

Thanks for your advice.
In fact on my RPI the file /var/log/dataplicity.log is missing.

Here is below the answer of the command sudo systemctl status supervisor:

supervisor.service - Supervisor process control system for UNIX
   Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2019-11-09 08:41:27 GMT; 5s ago
     Docs: http://supervisord.org
  Process: 23540 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=2)
 Main PID: 23540 (code=exited, status=2)

…not that much explicit for me

Can you post the contents of

/lib/systemd/system/supervisor.service

please.

It might be that it cannot create the log file.

For future reference, when posting code or bash output, put in 3 ‘backticks’ (found at the top left of the keyboard normally) on a line on their own, then the code, then 3 more backticks on a line following the code.

    ```
    code
    ```

If it is something like php you can add a language identifier that after the first 3 backticks so ```php

Here are below the content of

/lib/systemd/system/supervisor.service
[Unit]
Description=Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target

[Service]
ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload
KillMode=process
Restart=on-failure
RestartSec=50s

[Install]
WantedBy=multi-user.target

Can you try to restart the service and post the output of status;

sudo systemctl restart supervisor.service
systemctl status supervisor.service

It might be work trying the install again and checking for any error messages. Just use the same command as you would for adding a device.

I’m not currently using the service so it is difficult for me to debug.

Here is the result:

[email protected]:/lib/systemd/system $ sudo systemctl restart supervisor.service
[email protected]:/lib/systemd/system $ systemctl status supervisor.service
● supervisor.service - Supervisor process control system for UNIX
   Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2019-11-10 16:07:52 GMT; 8s ago
     Docs: http://supervisord.org
  Process: 8741 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=2)
 Main PID: 8741 (code=exited, status=2)