Open kghosh007 opened 2 years ago
@qtwrk @usmannasir Hi, Can you confirm this issue?
even after I bypass this issue, after login, when I'm creating a WordPress website, the same problem persists.
["ERROR 1045 (28000): Access denied for user '6JnFUEeumYccOl'@'172.31.23.251' (using password: YES)"," [404]"]
The user is being created based upon the public ip, and is being accessed with private / Localhost ip
Aha, I just encountered the same problem. After the installation, I visited ip:8090, error 500
Yes, and debugging all options, what I have found is that, this PUBLIC IP / PRIVATE IP conflict is causing this issue.
Aha, I just encountered the same problem. After the installation, I visited ip:8090, error 500
What's your log says? Databases created successfully? are you using remote sql?
Hi @kghosh007, With my experience, there 2 ways: (While waiting new version fixing private IP and public IP)
Solution 1:
wget -O cyberpanel.sh "https://cyberpanel.sh/?dl&AlmaLinux"
Solution 2:
CREATE DATABASE cyberpanel;
CREATE USER 'cyberpanel'@'172.31.26.240' IDENTIFIED BY 'password of cypernel from settings.py';
GRANT INDEX, DROP, UPDATE, ALTER, CREATE, SELECT, INSERT, DELETE ON cyberpanel.* TO 'cyberpanel'@'172.31.26.240';
Edit: /usr/local/CyberCP/CyberCP/settings.py
and update at line 110
Edit: /etc/cyberpane/mysqlPassword
update to:
{"remotemysql": "ON", "mysqlhost": "RDS_HOSTNAME", "mysqldb": "mysql", "mysqluser": "RDS_User", "mysqlpassword": "RDS_Admin_Pass", "mysqlport": "3306"}
After 2 successful years with CyberPanel, I encountered a peculiar problem few days ago. Inatalling CyberPanel with Remote SQL always leading to failures, error 1045 in CyberPanel.
Here's are the Steps i performed and Possible Cause for this to Happen:
My Server Architecture:
AWS CloudFront for CDN
Here's the Post-Installation Result.
AWS EC2 instances have 2 type of ips, one is internal private ip, which is not accessible to the public, and another is Elastic IP, which is a Static Public IP. Look at the Screenshot Below:
Note the Public and Private IP here.
When CyberPanel is getting installed, it Creates a USER CyberPanel, limiting the connecting host to matching the IP of Server.
Here, from the screenshot, you can see that the CYBERPANEL user is Created, limiting the host to Public IP address of the Instance : 43.204.104.194
which can be re-verified via MySQL Workbench Screenshot:
After this , as per my understanding of the Installation Logs, a local instance of Mariadb Server is created and then the details are migrated to Remote SQL via:
That's when the Problem Occurs. if we go through the logs we can see:
The database is accessed with username cyberpanel, but the connecting IP has changed to the PRIVATE IP of the Instance i.e. 172.31.26.240.
This is when everything falls apart, and the installation fails. I don't think this will take to much time of you guys to resolve this, and my production server actually depends on this. So i Request you to look into it.
If there is any wrong in my installing technique, kindly let me know.
and Thanks Again for such an wonderful product that the market was void of for a very long time.
As per my understanding, this fix will also solve majority of remote sql related problems here