Hi Borpin,
Thanks for your advices. Some comments regarding your notes:
If not then restore it by
git checkout -- Lib/EmonLogger.php
After run checkout,
pi@emonpi(rw):emoncms$ git checkout -- Lib/EmonLogger.php
pi@emonpi(rw):emoncms$ git status
On branch stable
Your branch is up-to-date with 'origin/stable'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: Lib/EmonLogger.php
mqtt_input service seems in the same state.
● mqtt_input.service - Emoncms MQTT Input Script
Loaded: loaded (/etc/systemd/system/mqtt_input.service; enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-11-28 10:46:33 CET; 21s ago
Process: 24079 ExecStart=/usr/bin/php /var/www/emoncms/scripts/phpmqtt_input.php (code=exited, status=255)
Main PID: 24079 (code=exited, status=255)
CGroup: /system.slice/mqtt_input.service
Also i have tryed some workaround without success:
pi@emonpi(rw):emoncms$ php -f /var/www/emoncms/scripts/phpmqtt_input.php
PHP Warning: fopen(/var/lock/emoncms_mqtt.lock): failed to open stream: Permission denied in /var/www/emoncms/scripts/phpmqtt_input.php on line 43
PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/emoncms/scripts/phpmqtt_input.php on line 44
Already running
pi@emonpi(rw):emoncms$ sudo systemctl stop mqtt_input.service
pi@emonpi(rw):emoncms$ sudo rm -f /var/lock/emoncms_mqtt.lock
About your recomendations about update from the emoncms admin page, the problem is that not works and not perform any action… Pushing over ‘Full Update’ button, or sub buttons, a quick message is showed: “service-runner trigger sent”

And after a while message dissapear and nothing happens!
Then if no exist any alternative, i will procedure with your notes:
- get a new SD Card
- flash a new EmonSD image
- take a backup
- install the new card
- wait, wait, wait, make a cup of coffee, wait, wait, wait… (lots of updates etc)
- import the backup
The problem is in this raspberry pi, i have some other applications running (nagios, nagiosgraph, etc) and some Filesystem customizations. Is some complicated reinstall all stuff in a new SD card… 