AlmaLinux / AlmaLinux/build-system

deploy: Create and start services task always fails

Open
#287 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
32
Forks
11
PR merge metrics
No merged PRs in 30d

Description

After https://github.com/AlmaLinux/albs-web-server/pull/792, there is a problem.

albs_test_db_1 container fails to start due to already used port 5432/tcp.

```
Error response from daemon: driver failed programming external connectivity on endpoint albs_test_db_1 (28412eeecc3feff17618ff42efb5a62eac6e673542f5e0e986f7b68ceefa09fd): Bind for 0.0.0.0:5432 failed: port is already allocated

MSG:

non-zero return code

NO MORE HOSTS LEFT ******************************************************************************************************************

PLAY RECAP **************************************************************************************************************************
albs_on_one_vm : ok=27 changed=10 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0
```

`test_db` service added by https://github.com/AlmaLinux/albs-web-server/pull/792 listens 5432/tcp despite the port is already used by `db` service.

* https://github.com/AlmaLinux/albs-web-server/blob/master/docker-compose.yml#L5-L10
* https://github.com/AlmaLinux/albs-web-server/blob/master/docker-compose.yml#L23-L38

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.