Hi all, I am trying to get the best HA solution working but the install is now failing.
This is the error:
<SQLAlchemy engine=mysql+pymysql://pi:***@localhost/pi?charset=utf8>
Traceback (most recent call last):
File “/opt/privacyidea/lib/python3.8/site-packages/pymysql/connections.py”, line 569, in connect
sock = socket.create_connection(
File “/usr/lib/python3.8/socket.py”, line 808, in create_connection
raise err
File “/usr/lib/python3.8/socket.py”, line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
grep: /etc/mysql/debian.cnf: No such file or directory
grep: /etc/mysql/debian.cnf: No such file or directory
ERROR 1045 (28000): Access denied for user ‘–password=’@‘localhost’ (using password: NO)
ERROR 1045 (28000): Access denied for user ‘–password=’@‘localhost’ (using password: NO)
So what I have:
Ubuntu 20.04
PrivacyIDEA 3.5.1 (latest as of 1st Feb)
Basic install and fully updated.
I put the MySQL servers in a group replication which is tested and working.
Install 1)
I added the apt sources to install and ran the apt install privacyidea-apache2
Install failed with the above errors.
Install 2)
I removed the root password for mysql and tried again, still failed with the same error
Install 3)
I manually added the pi database with pi user and password to mysql, updated the file /etc/privacyidea/pi.cfg by adding this line SQLALCHEMY_DATABASE_URI = ‘mysql+pymysql://pi:****@localhost/pi’
Install fails with the same error
I can login with the root user and pi user with no isues.
Anyone have any ideas.
Thanks