openenergymonitor / EmonScripts

Emoncms Stack Installation and Update scripts
16 stars 30 forks source link

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

Open g0lgs opened 1 year ago

g0lgs commented 1 year ago

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.

borpin commented 1 year ago

As noted in #102 (for MQTT)

It is unlikely to ever update the emonhub config