2 Q&As

A survival guide covering the most common (and painful) Frappe issues encountered in the wild, from packet sequence errors to database access denied nightmares.

Note

Common problems and their workarounds


๐Ÿ› Problem 1: Packet Sequence Error


๐Ÿ› Problem 2: Report Data

conn_str = frappe.conf.get("Sam123")
Z7GG-XF6E1P-504Q0T-2X6173-156X06-1N1R1M-261V2J-580O73-3B

๐Ÿ› Problem 3: Access Denied

pymysql.err.OperationalError: (1045, "Access denied for user '_3b41b400ef4d007a'@'172.19.0.5' (using password: YES)")
> SELECT user, host FROM mysql.user WHERE user = '_3b41b400ef4d007a';
+-------------------+------------+
| User              | Host       |
+-------------------+------------+
| _3b41b400ef4d007a | 10.10.10.6 |
| _3b41b400ef4d007a | localhost  |
+-------------------+------------+
2 rows in set (0.022 sec)
CREATE USER '_3b41b400ef4d007a'@'%' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON *.* TO '_3b41b400ef4d007a'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

๐Ÿ› Problem 4: Corrupted InnoDB (Table Space Missing)

MYSQL_DATA_DIR="/var/lib/mysql/_3b41b400ef4d007a/"  
cd $MYSQL_DATA_DIR

find . -name "*.frm" | while read frm_file; do
    ibd_file="${frm_file%.frm}.ibd"
    if [ ! -f "$ibd_file" ]; then
        echo "Missing: $ibd_file"
    fi
done

๐Ÿ› Problem 5: Internal Server Error (Might be Case of Database)

bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-name=stv --db-root-username=root --db-root-password=Server_Mariadb_stv@1987 --install-app erpnext --set-default frontend;