Internal Server Error on Docker. Mariadb Access Denied

Hello there.
I started my Erpnext copy running on docker without making any changes since last time I ran it, and I’m getting an Internal Server Error error

This is the last line in the logs:
pymysql.err.OperationalError: (1045, "Access denied for user '_6cf481474f58bd61'@'172.19.0.4' (using password: YES)")

I’ve looked around on this forum and github and tried the suggested solutions (setting the
mysql_native_password plugin
) but could not find a way to fix the problem.

I’m running on WSL ubuntu 20.

I’m a docker noob and struggling a little to wrap my head around the architecture, so in-depth explanations (especially of commands) could be really helpful. Thanks

check “Fixing MariaDB issues after rebuilding the container” section: frappe_docker/troubleshoot.md at main · frappe/frappe_docker · GitHub

Could you share the complete compose file.

After following the first part of that document I’m now getting
pymysql.err.OperationalError: (1049, "Unknown database '_6cf481474f58bd61'") in the erpnext logs

and
2022-10-11 14:18:23 15 [Warning] Aborted connection 15 to db: 'unconnected' user: '_6cf481474f58bd61' host: '172.19.0.7' (Got an error reading communication packets)
2022-10-11 14:18:30 23 [Warning] Aborted connection 23 to db: 'unconnected' user: '_6cf481474f58bd61' host: '172.19.0.7' (Got an error reading communication packets)
2022-10-11 14:19:18 67 [Warning] Access denied for user '_f56e60a23aa6bf12'@'172.19.0.4' (using password: YES) on the mariadb logs