You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently started a new Loco project by following the instructions provided in the documentation. Here are the steps I took:
Ran the loco new command and selected:
App Name: testing-loco
Type: REST API with PostgreSQL.
Configured the application using the default settings generated by Loco.
Attempted to start the application using:
cargo loco start
However, I encountered the following error during runtime:
2025-02-10T12:10:42.355974Z INFO app: loco_rs::config: loading environment from selected_path="config\\development.yaml" environment=development
2025-02-10T12:10:42.359611Z WARN app: loco_rs::boot: pretty backtraces are enabled (this is great for development but has a runtime cost for production. disable with `logger.pretty_backtrace` in your config yaml) environment=development
Error: DB(Conn(SqlxError(PoolTimedOut)))
error: process didn't exit successfully: `target\debug\testing-loco-cli.exe start` (exit code: 1)
Steps to Reproduce:
Run loco new and select PostgreSQL as the database.
Follow the setup instructions and try to start the application using cargo loco start.
Environment Details:
OS: Windows 10
Rust Version: Stable (latest)
Loco CLI Version: Latest (installed via cargo install loco-cli)
PostgreSQL Version: 15 (running locally)
Additional Notes:
I have ensured that my PostgreSQL server is running and accessible.
The database credentials in config/development.yaml are correct.
The complete project code is available here for reference: GitHub Repository.
Suspected Cause and Observations:
The error appears to be related to SQLx's connection pool timing out while waiting for an open connection. This could be due to:
Incorrect database configuration in pg_hba.conf or postgresql.conf.
Missing or incorrect connection parameters in DATABASE_URL.
Lack of proper timeout settings in the application.
Request for Help:
Could you please help identify:
Whether this is a bug in Loco or a misconfiguration on my end?
Any specific steps to resolve this issue?
I am happy to provide further details if needed
The text was updated successfully, but these errors were encountered:
Content:
Description of the Issue:
I recently started a new Loco project by following the instructions provided in the documentation. Here are the steps I took:
loco new
command and selected:testing-loco
However, I encountered the following error during runtime:
Steps to Reproduce:
loco new
and select PostgreSQL as the database.cargo loco start
.Environment Details:
cargo install loco-cli
)Additional Notes:
config/development.yaml
are correct.Suspected Cause and Observations:
The error appears to be related to SQLx's connection pool timing out while waiting for an open connection. This could be due to:
pg_hba.conf
orpostgresql.conf
.DATABASE_URL
.Request for Help:
Could you please help identify:
I am happy to provide further details if needed
The text was updated successfully, but these errors were encountered: