I have yet to find git wrong when reporting local changes, so whilst i can’t say it’s not possible I do think it’s unlikely (at this stage). If you go to the emonhub folder you can ask git what the changes are.
cd /home/pi/emonhub
git diff src/emonhub.py
This may jog the memory or at least tell you what you might lose if we force an update.
It looks like it hasn’t updated for quite some time as there are 147 commits outstanding, I don’t know how frequently you run an update, but it looks like emonhub hasn’t succesfully updated since mid 2017’ish, this may just be the first time the failed (ie partial) update has caused it to stop running.
There is also a second local change reported in that there is apparently an untracked src folder inside the original src folder, couls you run
ls -la src/src
whilst you are still in the emonhub folder and post what you find.
I’m just heading out soon so I may not be around til later. If you can run these couple of commands, it will tell us the status of the symlinks to see if you have actually had a similar issue to the cases above. So far it just looks like the git pull failed due to the local changes, there’s nothing (yet) to suggest any of the symlinking has failed.
ls -la /usr/{local/bin,share}/emonhub
ls -la /etc/{init.d/,}emonhub
systemctl cat emonhub.service
If you are happy to lose the local changes to src/emonhub.py, you can force a update with (from within the emonhub folder again)
git checkout -f -b emon-pi
It may also be worth running these 2 commands for good measure
sudo systemctl daemon-reload
sudo systemctl --now enable emonhub.service
assuming there are no other errors, you could run the update again to confirm all is ticketty-boo. If the above command doesn’t work, there is a longer “hard reset” procedure we can try, but I don’t know those commands off hand, I tend to use the above without any issue.
Sorry for the info overload, but I’m trying to give you everything you might need to get it running today rather than wait for me, please post any errors or results etc, if you would rather wait and go through step bey step we can.