Installer changes DNS server so Azure remote MySQL connection fails — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Installer changes DNS server so Azure remote MySQL connection fails

Hi,

Getting

ql.database.azure.com|g' /usr/local/CyberCP/CyberCP/settings.py,60
File "/usr/local/CyberPanel/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/CyberPanel/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
return Database.connect(**conn_params)
File "/usr/local/CyberPanel/lib/python3.8/site-packages/MySQLdb/__init__.py", line 130, in Connect
return Connection(*args, **kwargs)
File "/usr/local/CyberPanel/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
super().__init__(*args, **kwargs2)
django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'tycho.mysql.database.azure.com' (-2)")



[09.09.2021_09-27-25] #########################################################################

[09.09.2021_09-27-25] Running /usr/local/CyberPanel/bin/python manage.py makemigrations failed. Running again, try number 3

[09.09.2021_09-27-25] #########################################################################




[09.09.2021_09-27-25] #########################################################################

[09.09.2021_09-27-25] [ERROR] We are not able to run /usr/local/CyberPanel/bin/python manage.py makemigrations return code: 1. Fatal error, see /var/log/installLogs.txt for full details.

[09.09.2021_09-27-25] #########################################################################

Oops, something went wrong...
[email protected]:~# less /var/log/installLogs.txt


Ubuntu 20.04 server on Azure with MySQL remote setup. I can connect to the server fine BEFORE the install runs, then it fails, after the install has run I cant connect to the server as it's changed the DNS server address to 1.1.1.1

Comments

  • Another error if i use the IP address of the MySQL server instead:

    django.db.utils.OperationalError: (1045, 'Plugin sha256_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/sha256_password.so: cannot open shared object file: No such file or directory')
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion