Jay's Dev Diary 🔖

Vapor won't start due to vapor username does not exist

Swift/ErrorType.swift:200: Fatal error: Error raised at top level: PostgresNIO.PSQLError(base: PostgresNIO.PSQLError.Base.server(PostgresNIO.PostgresBackendMessage.ErrorResponse(fields: [File: "miscinit.c", Code: "28000", Line: "710", Localized Severity: "FATAL", Message: "role \"vapor_username\" does not exist", Routine: "InitializeSessionUserId", Severity: "FATAL"])))

That error is because postgresql@14 is running. Kill it to work.

brew services stop postgresql
Tagged with: