I had this problem repeatedly until I logged into mariadb and imported the sql file.
Then ran bench --site sitename migrate from the frappe-bench folder.
and it worked.
I had this problem repeatedly until I logged into mariadb and imported the sql file.
Then ran bench --site sitename migrate from the frappe-bench folder.
and it worked.