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

Postgresql - deploy does not check for existing DB schema #258

Open
sedacrivity opened this issue Sep 29, 2023 · 1 comment
Open

Postgresql - deploy does not check for existing DB schema #258

sedacrivity opened this issue Sep 29, 2023 · 1 comment

Comments

@sedacrivity
Copy link

Description of erroneous behaviour

Error / Suggestion

There is no actual check that a (local) defined DB schema exists when trying to deploy.
A 'resourcerequest time out' error is thrown instead.

In the DB window the following error is visible X times

[102] FATAL:  database "xxx" does not exist

Ideally the schema is created automatically ? Or at least a user friendly warning should be given.

When deploying to postgresql we get the following errors:

cds deploy
/> deployment to localhost:5432 failed

TimeoutError: ResourceRequest timed out
    at ResourceRequest._fireTimeout (/home/.../node_modules/generic-pool/lib/ResourceRequest.js:62:17)
    at Timeout.bound (/home/.../node_modules/generic-pool/lib/ResourceRequest.js:8:15)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
Active connections:0

Details about your project

| Node.js | v18.16.1 |
| @sap/cds | 7.2.1 |
| @sap/cds-compiler | 4.2.4 |
| @sap/cds-dk | 7.2.0 |

@sedacrivity sedacrivity added the bug Something isn't working label Sep 29, 2023
@patricebender
Copy link
Member

@simonoswald could you have a look? If there is no schema present, it would probably better to throw a nice error.

@patricebender patricebender added postgres gap and removed bug Something isn't working labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants