Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g0lgs opened this issue Mar 19, 2023 · 1 comment

Comments

@g0lgs
Copy link

g0lgs commented Mar 19, 2023

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
Copy link
Contributor

borpin commented May 26, 2023

As noted in #102 (for MQTT)

It is unlikely to ever update the emonhub config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants