EmonScripts icon indicating copy to clipboard operation
EmonScripts copied to clipboard

Changing of passwords in config.ini does not set them in settings.ini or emonhub config

Open g0lgs opened this issue 1 year ago • 1 comments

I am building a new monitor node (without emonpi hardware) using these scripts, but found that if I change the default passwords for mysl_password and mqtt_password in config.ini then the passwords I entrered are not placed into settings.ini or the emonhub conf and so things do not run without correcting these files.

This is what I get when pointing the Browser at my Device:

Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'emoncms'@'localhost' (using password: YES) in /var/www/emoncms/index.php:79 Stack trace: #0 /var/www/emoncms/index.php(79): mysqli->__construct() #1 {main} thrown in /var/www/emoncms/index.php on line 79

I had to change the password="" line under [sql] and [mqtt] in settings.ini

Having done that and created my 'admin' account in the web interface I then had to change

mqtt_password = ......

in the emonhub configuration.

g0lgs avatar Mar 19 '23 09:03 g0lgs