Skip to content

Error Following Instructions #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
FranzRome opened this issue Jul 17, 2024 · 0 comments
Open

Error Following Instructions #26

FranzRome opened this issue Jul 17, 2024 · 0 comments

Comments

@FranzRome
Copy link

Im having an issue running commands suggested in the README file:

  • Points 1 and 2 are OK
  • When i run yarn start I get the following log with an error at the end:
$ yarn start
yarn run v1.22.21
$ nest start api-gateway
webpack 5.28.0 compiled successfully in 6781 ms
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [NestFactory] Starting Nest application...
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] InMemoryMailService dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] PrismaModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] JwtModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisherModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DiscoveryModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisher dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerCoreModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] CqrsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] EventEmitterModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] NotificationsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] IdentityAndAccessModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] AppModule dependencies initialized
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"AuthenticationController {/v1/auth}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signup, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signin, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/refresh, POST} route"}
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"UsersController {/v1/users}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/users/:userId/contact-information/email, PATCH} route"}
C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704
                  const err = new import_PrismaClientInitializationError.PrismaClientInitializationError(json.message, this.clientVersion);
                              ^

PrismaClientInitializationError3 [PrismaClientInitializationError]: Can't reach database server at `localhost`:`5432`

Please make sure your database server is running at `localhost`:`5432`.
    at LineStream.<anonymous> (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704:31)
    at LineStream.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at LineStream.Readable.push (node:internal/streams/readable:228:10)
    at LineStream._pushBuffer (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26457:19)
    at LineStream._transform (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26451:10)
    at LineStream.Transform._write (node:internal/streams/transform:205:23)
    at writeOrBuffer (node:internal/streams/writable:391:12)
    at _write (node:internal/streams/writable:332:10) {
  clientVersion: '2.30.0',
  errorCode: undefined
$ yarn start
yarn run v1.22.21
$ nest start api-gateway
webpack 5.28.0 compiled successfully in 6781 ms
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [NestFactory] Starting Nest application...
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] InMemoryMailService dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] PrismaModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] JwtModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisherModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DiscoveryModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisher dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerCoreModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] CqrsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] EventEmitterModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] NotificationsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] IdentityAndAccessModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] AppModule dependencies initialized
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"AuthenticationController {/v1/auth}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signup, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signin, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/refresh, POST} route"}
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"UsersController {/v1/users}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/users/:userId/contact-information/email, PATCH} route"}
C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704
                  const err = new import_PrismaClientInitializationError.PrismaClientInitializationError(json.message, this.clientVersion);
                              ^

PrismaClientInitializationError3 [PrismaClientInitializationError]: Can't reach database server at `localhost`:`5432`

Please make sure your database server is running at `localhost`:`5432`.
    at LineStream.<anonymous> (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704:31)
    at LineStream.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at LineStream.Readable.push (node:internal/streams/readable:228:10)
    at LineStream._pushBuffer (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26457:19)
    at LineStream._transform (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26451:10)
    at LineStream.Transform._write (node:internal/streams/transform:205:23)
    at writeOrBuffer (node:internal/streams/writable:391:12)
    at _write (node:internal/streams/writable:332:10) {
  clientVersion: '2.30.0',
  errorCode: undefined$ yarn start
yarn run v1.22.21
$ nest start api-gateway
webpack 5.28.0 compiled successfully in 6781 ms
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [NestFactory] Starting Nest application...
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] InMemoryMailService dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] PrismaModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] JwtModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisherModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DiscoveryModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] DomainEventPublisher dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerCoreModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] LoggerModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] CqrsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] EventEmitterModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] NotificationsModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] IdentityAndAccessModule dependencies initialized
[Nest] 14580  - 17/07/2024, 11:46:13     LOG [InstanceLoader] AppModule dependencies initialized
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"AuthenticationController {/v1/auth}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signup, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/signin, POST} route"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/auth/refresh, POST} route"}
{"level":30,"time":1721209574,"context":"RoutesResolver","msg":"UsersController {/v1/users}:"}
{"level":30,"time":1721209574,"context":"RouterExplorer","msg":"Mapped {/v1/users/:userId/contact-information/email, PATCH} route"}
C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704
                  const err = new import_PrismaClientInitializationError.PrismaClientInitializationError(json.message, this.clientVersion);
                              ^

PrismaClientInitializationError3 [PrismaClientInitializationError]: Can't reach database server at `localhost`:`5432`

Please make sure your database server is running at `localhost`:`5432`.
    at LineStream.<anonymous> (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:29704:31)
    at LineStream.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at LineStream.Readable.push (node:internal/streams/readable:228:10)
    at LineStream._pushBuffer (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26457:19)
    at LineStream._transform (C:\Users\franc\Documents\Programming\Web\Javascript\Nest\nest-clean-architecture-ddd-example\node_modules\@prisma\client\runtime\index.js:26451:10)
    at LineStream.Transform._write (node:internal/streams/transform:205:23)
    at writeOrBuffer (node:internal/streams/writable:391:12)
    at _write (node:internal/streams/writable:332:10) {
  clientVersion: '2.30.0',
  errorCode: undefined

It seems related to the DB, I don't know what I should configure.
What am i missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant