Closed Bug 1553333 Opened 7 years ago Closed 7 years ago

Fix intermittent port already allocated errors in Jenkins

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rjohnson, Assigned: rjohnson)

Details

(Whiteboard: [specification][type:bug])

Attachments

(1 external file)

What did you do?

Jenkins runs the docker-compose -f docker-compose.yml -f docker-compose.test.yml run test step as part of running the Kuma tests on merges to the master branch within the Kuma repo.

What happened?

Port 9200 on the Jenkins host is already allocated, so the tests fail to start.

+ docker-compose -f docker-compose.yml -f docker-compose.test.yml run test
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_elasticsearch_1 ... 
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_mysql_1         ... 
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_redis_1         ... 
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_elasticsearch_1 ... error
ERROR: for kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_elasticsearch_1  Cannot start service elasticsearch: driver failed programming external connectivity on endpoint kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_elasticsearch_1 (ab17e49d1c083d1d03ac65474381a2c19a5d4f3c1d0bd950dc126dfcfe1a6946): Bind for 0.0.0.0:9200 failed: port is already allocated
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_mysql_1         ... done
Creating kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_redis_1         ... done
ERROR: for elasticsearch  Cannot start service elasticsearch: driver failed programming external connectivity on endpoint kuma_master-dag2lj3obypfho7nheyqt4rqhoc6v2dswzq2pndatnegq7lwo6na_elasticsearch_1 (ab17e49d1c083d1d03ac65474381a2c19a5d4f3c1d0bd950dc126dfcfe1a6946): Bind for 0.0.0.0:9200 failed: port is already allocated
Encountered errors while bringing up the project.
script returned exit code 1

What should have happened?

The tests should have run.

Is there anything else we should know?

This happens intermittently.

Assignee: nobody → rjohnson

We have not seen this problem since https://github.com/mozilla/kuma/pull/5438 was deployed about a week ago, which makes sense since the fix removes the possibility altogether. This is resolved.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: