Nice work.Have you stopped emonhub?

sudo service emonhub stop

Also I think platformio will require sudo