Something bad happened: in create new site

I know I am a bit late to the party, but just in case someone else is having trouble with this specific problem the following might be a solution:

In my case the root password wasn’t set, so I just had to set it manually in docker. The following steps is how I fixed it.

  1. Open docker desktop and navigate to “Containers”
  2. Open the devkinsta_db container
  3. Navigate to the inspect tab
  4. Find the Config section
  5. Copy the root password under the config section; it should something like this:
"Config": {
		"Hostname": "a912727155a0",
		"Domainname": "",
		"User": "",
		"AttachStdin": false,
		"AttachStdout": false,
		"AttachStderr": false,
		"ExposedPorts": {
			"3306/tcp": {}
		},
		"Tty": false,
		"OpenStdin": false,
		"StdinOnce": false,
		"Env": [
			"MYSQL_ROOT_PASSWORD=***kinsta root password***",
			"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
			"GOSU_VERSION=1.14",
			"MARIADB_MAJOR=10.5",
			"MARIADB_VERSION=1:10.5.17+maria~ubu2004"
  1. Navigate back to the container sections
  2. Open the DB terminal
  3. Log into mariadb using mysql -u root
    If the root password wasn’t set then you should get a mysql prompt
  4. Set the password to your kinsta root password: ALTER USER 'root'@'localhost' IDENTIFIED BY 'password copied from the config';
    If successful you should get the following response Query OK, 0 rows affected (0.020 sec)

Now you should be able to get past the error.

2 Likes