Skip to content
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

Error (AggregateError) following the README.md #121

Open
Esquimor opened this issue Dec 26, 2024 · 3 comments
Open

Error (AggregateError) following the README.md #121

Esquimor opened this issue Dec 26, 2024 · 3 comments

Comments

@Esquimor
Copy link

Hello,

I look to Mikro-orm with nestjs but I can't launch it with sqlite.
So, I try to clone this repo and follow the README.md.

List of commands I do:

  • git clone https://github.com/mikro-orm/nestjs-realworld-example-app.git
  • cd nestjs-realworld-example-app
  • yarn
  • cp src/config.ts.example src/config.ts
  • cp src/mikro-orm.config.ts.example src/mikro-orm.config.ts
  • yarn start

But I got this error:

[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [NestFactory] Starting Nest application...
[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [MikroORM] [info] MikroORM version: 6.4.2
[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [MikroORM] [discovery] ORM entity discovery started, using TsMorphMetadataProvider
[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [InstanceLoader] MikroOrmModule dependencies initialized +1ms
[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [MikroORM] [discovery] - processing 4 files
[Nest] 22833  - 12/26/2024, 6:19:51 PM     LOG [MikroORM] [discovery] - processing entity Article (..path/nestjs-realworld-example-app/dist/article/article.entity.js)
[Nest] 22833  - 12/26/2024, 6:19:52 PM     LOG [MikroORM] [discovery] - processing entity Comment (..path//nestjs-realworld-example-app/dist/article/comment.entity.js)
[Nest] 22833  - 12/26/2024, 6:19:52 PM     LOG [MikroORM] [discovery] - processing entity Tag (..path/nestjs-realworld-example-app/dist/tag/tag.entity.js)
[Nest] 22833  - 12/26/2024, 6:19:52 PM     LOG [MikroORM] [discovery] - processing entity User (..path/nestjs-realworld-example-app/dist/user/user.entity.js)
[Nest] 22833  - 12/26/2024, 6:19:52 PM     LOG [MikroORM] [discovery] - entity discovery finished, found 6 entities, took 1133 ms
[Nest] 22833  - 12/26/2024, 6:19:52 PM     LOG [MikroORM] [query] select 1 from information_schema.schemata where schema_name = 'nestjsrealworld' [took 8 ms]
[Nest] 22833  - 12/26/2024, 6:19:52 PM   ERROR [ExceptionHandler] 
AggregateError [ECONNREFUSED]: 
    at internalConnectMultiple (node:net:1116:18)
    at afterConnectMultiple (node:net:1683:7)

I only find this resource https://stackoverflow.com/questions/77051091/nestjs-aggregateerror-while-starting-the-project but not very helpfull.
There is maybe a config to change but I don't know what.

@B4nan
Copy link
Member

B4nan commented Dec 26, 2024

This example app is not using sqlite, so you must have had changed more than just what you say.

@Esquimor
Copy link
Author

Ok, I just understand the example use mysql.

Sorry, I will try with a mysql database later (I can't for do it now).

Also, I change nothing.

@B4nan
Copy link
Member

B4nan commented Dec 26, 2024

If you changed nothing, then the problem is you dont have mysql server running.

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

2 participants