Hello all,
Feature(s) impacted
Deployment > Configure your environment variables step
Observed behavior
I’m trying to deploy forestadmin staging env but i’ve some issues
In ForestAdmin web interface(deployement > Configure your environment variables), it’s still loading “Waiting for your backend to run …”
I’ve an error in logs (see full trace after)
DatabaseConnectError: Unable to connect to the given uri: postgres:/xxxxxxx.
Connection error: no pg_hba.conf entry for host "xxxxxxx", user "xxxxxxx", database "xxxxxxx", no encryp...
My target server is on AWS ECS via Fargate
Database : RDS / PostgreSQL
Everything works correctly without forest (i’ve access to db etc)
I’ve read several similar threads on this community and github
- Stuck at the final configuration step - #14 by philip
- BUG - staging env not available - #13 by GuillaumeGautreau
- Server does not support SSL connections on remote db · Issue #193 · ForestAdmin/lumber · GitHub
- …
So I’ve set the following env var
DATABASE_SSL=true
DATABASE_REJECT_UNAUTHORIZED=false
But still stuck
Do you have any idea ?
Expected behavior
Deploy staging env in forest UI with onboarding/deployment …
Failure Logs
DatabaseConnectError: Unable to connect to the given uri: postgres:/xxxxxxx.
Connection error: no pg_hba.conf entry for host "xxxxxxx", user "xxxxxxx", database "xxxxxxx", no encryp...
File "/usr/src/app/node_modules/@forestadmin/datasource-sql/dist/connection/handle-errors.js", line 24, col 15, in handleErrors
throw new errors_1.DatabaseConnectError(`${nameWithSpaces}: ${error.message}`, options.debugDatabaseUri);
File "/usr/src/app/node_modules/@forestadmin/datasource-sql/dist/connection/index.js", line 50, col 37, in connect
(0, handle_errors_1.default)(sshTunnel?.error ?? socksProxy?.error ?? reverseProxy?.error ?? e, options);
File "node:internal/process/task_queues", line 95, col 5, in process.processTicksAndRejections
File "/usr/src/app/node_modules/@forestadmin/datasource-sql/dist/index.js", line 43, col 21, in buildSequelizeInstance
sequelize = await (0, connection_1.default)(options);
File "/usr/src/app/node_modules/@forestadmin/datasource-sql/dist/index.js", line 57, col 27, in <anonymous>
const sequelize = await buildSequelizeInstance(uriOrOptions, logger, options?.introspection);
File "/usr/src/app/node_modules/@forestadmin/datasource-customizer/dist/datasource-customizer.js", line 46, col 30, in <anonymous>
let dataSource = await factory(logger);
File "/usr/src/app/node_modules/@forestadmin/datasource-customizer/dist/decorators/decorators-stack.js", line 75, col 13, in DecoratorsStack.applyQueuedCustomizations
await queuedCustomizations.shift()(logger); // eslint-disable-line no-await-in-loop
File "/usr/src/app/node_modules/@forestadmin/datasource-customizer/dist/datasource-customizer.js", line 126, col 9, in DataSourceCustomizer.getDataSource
await this.stack.applyQueuedCustomizations(logger);
File "/usr/src/app/node_modules/@forestadmin/datasource-customizer/dist/datasource-customizer.js", line 46, col 30, in <anonymous>
let dataSource = await factory(logger);
File "/usr/src/app/node_modules/@forestadmin/datasource-customizer/dist/decorators/decorators-stack.js", line 75, col 13, in DecoratorsStack.applyQueuedCustomizations
await queuedCustomizations.shift()(logger); // eslint-disable-line no-await-in-loop
Context
- Project name: native-spaces
- Environment name: staging
- Agent (forest package) name & version: Node agent → @forestadmin/agent@^1.34.1
- Database type: PostgreSQL (AWS RDS)
- Server type : AWS ECS with Fargate
Thanks !