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

Unable to connect to database #31

Closed
IbrahimShamma99 opened this issue Jan 31, 2020 · 2 comments
Closed

Unable to connect to database #31

IbrahimShamma99 opened this issue Jan 31, 2020 · 2 comments

Comments

@IbrahimShamma99
Copy link

> nestjs-realworld-example-app@1.0.0 start /home/ibrahim/Repos/nestjs-realworld-example-app
> node index.js

[Nest] 13547   - 01/31/2020, 1:08 PM   [NestFactory] Starting Nest application...
[Nest] 13547   - 01/31/2020, 1:08 PM   [TypeOrmModule] Unable to connect to the database. Retrying (1)... +42ms
Error: No connection options were found in any of configurations file.
    at ConnectionOptionsReader.<anonymous> (/home/ibrahim/Repos/nestjs-realworld-example-app/src/connection/ConnectionOptionsReader.ts:41:19)
    at step (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:133:27)
    at Object.next (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:114:57)
    at fulfilled (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:104:62)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
[Nest] 13547   - 01/31/2020, 1:08 PM   [InstanceLoader] TypeOrmModule dependencies initialized +1ms
@caiopiassali
Copy link

Rename ormconfig.json.example to ormconfig.json.

@lujakob
Copy link
Owner

lujakob commented Feb 10, 2020

The error message is straight forward: "Unable to connect to the database." - did you rename the ormconfig.json.example as mentioned in the readme. Did you alter the DB config to your DB?

@lujakob lujakob closed this as completed Feb 14, 2020
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

3 participants