DependencyTrack / DependencyTrack/dependency-track
Dependency Track API fails to start in Fargate Task
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### Current Behavior
[log-events-viewer-result.csv](https://github.com/user-attachments/files/15742186/log-events-viewer-result.csv)
Hi there, I am trying to run Dependency Track in a Fargate Task on AWS, and it hangs during startup. I have enabled debug logging, and it doesn't give me much to go on. The last line I see is as follows:
2024-06-07T15:59:39.280Z 2024-06-07 15:59:39,279 INFO [PersistenceManagerFactory] Creating transactional connection pool
There are no further lines logged, and the task is eventually killed as it fails health checks.
I can see that the user has sufficient permissions in the database, because it creates the tables successfully.
### Steps to Reproduce
Run dependency track in a Fargate task with the following env vars:
nvironment : [
{
name : "ALPINE_DATABASE_MODE",
value : "external"
},
{
name : "ALPINE_DATABASE_URL",
value : "jdbc:postgresql://\"
},
{
name : "ALPINE_DATABASE_USERNAME",
value : "\"
},
{
name : "ALPINE_DATABASE_PASSWORD",
value : "\"
},
{
name : "ALPINE_DATABASE_POOL_ENABLED",
value : "true"
},
{
name : "ALPINE_DATABASE_POOL_MAX_SIZE",
value : "20"
},
{
name : "ALPINE_DATABASE_POOL_MIN_IDLE",
value : "10"
},
{
name : "ALPINE_DATABASE_POOL_IDLE_TIMEOUT",
value : "300000"
},
{
name : "ALPINE_DATABASE_POOL_MAX_LIFETIME",
value : "600000"
},
{
name: "LOGGING_LEVEL",
value: "DEBUG,"
},
{
name : "region",
value : "${var.region}"
},
{
name : "env",
value : "${var.environment}"
}
]
### Expected Behavior
Dependency Track API starts successfully
### Dependency-Track Version
4.11.3
### Dependency-Track Distribution
Container Image
### Database Server
PostgreSQL
### Database Server Version
16.1
### Browser
Google Chrome
### Checklist
- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported
Contributor guide
Assessment
This issue has not been assessed yet.