[bug] Error installing ERPNext v12.10.1 on AWS RDS MariaDB
See original GitHub issueDescription of the issue
I have enabled "rds_db": 1
in common_site_config.json
:
(env) root@frappe-bench-0001-erpnext-worker-d-847966697-fwkwc:/home/frappe/frappe-bench/sites# cat common_site_config.json
{
"db_host": "xxx.ap-southeast-1.rds.amazonaws.com",
"db_port": 3306,
"rds_db": 1,
"redis_cache": "redis://frappe-bench-0001-erpnext-redis-cache:13000",
"redis_queue": "redis://frappe-bench-0001-erpnext-redis-queue:12000",
"redis_socketio": "redis://frappe-bench-0001-erpnext-redis-socketio:11000",
"socketio_port": 9000
}
Context information (for bug reports)
- Kubernetes 1.18
- frappe/erpnext-worker v12.10.1
- AWS RDS MariaDB 10.4.13
Steps to reproduce the issue
- Create AWS RDS MariaDB database
- Install ERPNext v12.10.1 on Kubernetes using helm chart
- Error
Observed result
ERROR 1054 (42S22) at line 1: Unknown column 'ERROR (RDS): SUPER PRIVILEGE CANNOT BE GRANTED OR MAINTAINED' in 'field list'
ERROR 1396 (HY000) at line 1: Operation ALTER USER failed for '_9a6f28ddcbb1acb1'@'%'
ERROR 1044 (42000) at line 1: Access denied for user 'root'@'%' to database '_9a6f28ddcbb1acb1'
Expected result
Successful.
Stacktrace / full error message
$ kubectl create -n erpnext -f add-lovia-site-job.yaml
...
$ kubectl logs -f -n erpnext create-erp-lovia-life-2knwd
Attempt 1 to connect to xxx.ap-southeast-1.rds.amazonaws.com:3306
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-queue:12000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-cache:13000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-socketio:11000
Connections OK
Created user _9a6f28ddcbb1acb1
Created database _9a6f28ddcbb1acb1
Granted privileges to user _9a6f28ddcbb1acb1 and database _9a6f28ddcbb1acb1
Starting database import...
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql
Installing frappe...
Updating DocTypes for frappe : [========================================]
Updating country info : [========================================]
Installing erpnext...
Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
*** Scheduler is disabled ***
ERROR 1054 (42S22) at line 1: Unknown column 'ERROR (RDS): SUPER PRIVILEGE CANNOT BE GRANTED OR MAINTAINED' in 'field list'
ERROR 1396 (HY000) at line 1: Operation ALTER USER failed for '_9a6f28ddcbb1acb1'@'%'
ERROR 1044 (42000) at line 1: Access denied for user 'root'@'%' to database '_9a6f28ddcbb1acb1'
Additional information
OS version / distribution, ERPNext
install method, etc.
- Kubernetes
- Helm
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
ERPNext Installation using AWS RDS MariaDB
I'm trying to install ERPNext with AWS RDS MariaDB. RDS is not allowing to ... [bug] Error installing ERPNext v12.10.1 on AWS RDS...
Read more >Install / Update - ERPNext Forum
Topic Replies Views Activity
ERPNext installation Mariadb config issue · Setup 5 394 March 18, 2021
ERPNext Setup error · Setup · setup_issues 2 241...
Read more >New site failed on AWS RDS - Deployment - ERPNext Forum
I installed Frappe on AWS EC2 and would like to deploy the database on RDS. I have setup a new Maria instance on...
Read more >Hello , i Have been trying install ERPNEXT But i got error ...
Since I started installing ERPNext onto Ubuntu 20.04 I've never been able to use root as the mariadb user. For some reason sudo...
Read more >Microsoft Office 365 email does not work with ERPNext
I cannot set up Microsoft Office 365 in the email setup of ERPNext. ... frappe/erpnext-nginx:v12.10.1 restart: on-failure env_file: .env ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@revant If it helps, I made a pretty intensive writeup about the AWS RDS MariaDB issue (and workaround) here: https://about.lovia.life/docs/infrastructure/erpnext/#2_3_MariaDB_Installation_(and_AWS_RDS_MariaDB_Workaround)
Thank you very much @revant 👍