Skip to content

Instantly share code, notes, and snippets.

@calebkleveter
Created June 13, 2019 15:57
Show Gist options
  • Save calebkleveter/93c6147ad5615c96aad00872c0f1ef09 to your computer and use it in GitHub Desktop.
Save calebkleveter/93c6147ad5615c96aad00872c0f1ef09 to your computer and use it in GitHub Desktop.
[ DEBUG ] Could not load .env file: open(file:oFlag:mode:) failed: No such file or directory (errno: 2) (Vapor/Application.swift:116)
Migrate Command: Prepare
[ DEBUG ] Logging into Postgres db stairtree-sync as calebkleveter (PostgresNIO/Connection/PostgresConnection+Authenticate.swift:37)
[ DEBUG ] SELECT "fluent"."id", "fluent"."name", "fluent"."batch", "fluent"."createdAt", "fluent"."updatedAt" FROM "fluent" [] (PostgresNIO/Connection/PostgresClient+Query.swift:37)
[ DEBUG ] SELECT "fluent"."id", "fluent"."name", "fluent"."batch", "fluent"."createdAt", "fluent"."updatedAt" FROM "fluent" [] (PostgresNIO/Connection/PostgresClient+Query.swift:37)
The following migration(s) will be prepared:
+ Revision on default
+ Change on default
Would you like to continue?
y/n> y
[ DEBUG ] SELECT "fluent"."id", "fluent"."name", "fluent"."batch", "fluent"."createdAt", "fluent"."updatedAt" FROM "fluent" [] (PostgresNIO/Connection/PostgresClient+Query.swift:37)
[ DEBUG ] SELECT "fluent"."id", "fluent"."name", "fluent"."batch", "fluent"."createdAt", "fluent"."updatedAt" FROM "fluent" ORDER BY "fluent"."batch" DESC LIMIT 1 [] (PostgresNIO/Connection/PostgresClient+Query.swift:37)
[ DEBUG ] CREATE TABLE "revisions"("number" BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, NOT NULL, PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "last" INTEGER NOT NULL) [] (PostgresNIO/Connection/PostgresClient+Query.swift:37)
[ ERROR ] Error(fields: [PostgresNIO.PostgresMessage.Error.Field.position: "88", PostgresNIO.PostgresMessage.Error.Field.localizedSeverity: "ERROR", PostgresNIO.PostgresMessage.Error.Field.message: "syntax error at or near \"NOT\"", PostgresNIO.PostgresMessage.Error.Field.file: "scan.l", PostgresNIO.PostgresMessage.Error.Field.routine: "scanner_yyerror", PostgresNIO.PostgresMessage.Error.Field.severity: "ERROR", PostgresNIO.PostgresMessage.Error.Field.sqlState: "42601", PostgresNIO.PostgresMessage.Error.Field.line: "1134"]) (PostgresNIO/Connection/PostgresRequest.swift:56)
[ ERROR ] NIOPostgres error: server error: syntax error at or near "NOT" (scanner_yyerror) (Vapor/Application.swift:93)
[ DEBUG ] Application shutting down (Vapor/Application.swift:121)
Fatal error: Error raised at top level: NIOPostgres error: server error: syntax error at or near "NOT" (scanner_yyerror): file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1001.8.63.13/swift/stdlib/public/core/ErrorType.swift, line 200
2019-06-13 10:56:06.125292-0500 Run[12277:735799] Fatal error: Error raised at top level: NIOPostgres error: server error: syntax error at or near "NOT" (scanner_yyerror): file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1001.8.63.13/swift/stdlib/public/core/ErrorType.swift, line 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment