The migrations fail when the password for the database contains special characters: https://github.com/golang-migrate/migrate/issues/332 According to the golang-migrate documentation, special chars need to be escaped: https://github.com/golang-migrate/migrate#database-urls