Looks like your writeTimeout
is incorrect (hence the err=time: invalid duration $). The default value will
mattermostuser:new_password_here@tcp(127.0.0.1:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s
Can you give that a try and see what happens?