Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error using DR_DOCKER_STYLE:compose for local training #123

Open
1-ashraful-islam opened this issue Mar 13, 2023 · 6 comments
Open

error using DR_DOCKER_STYLE:compose for local training #123

1-ashraful-islam opened this issue Mar 13, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@1-ashraful-islam
Copy link

If the system.env file is modified to have DR_DOCKER_STYLE:compose , then running source bin/activate.sh results in error when using local training. It seems that docker tries to spin multiple minio containers and results in port in use error.

Should it be changed to docker stack deploy or is there any other setting that needs to be changed?

@larsll larsll added the bug Something isn't working label Mar 15, 2023
@larsll larsll self-assigned this Mar 15, 2023
@larsll
Copy link
Contributor

larsll commented Mar 15, 2023

The workaround (and default) is that DR_DOCKER_STYLE=swarm; this uses the stack deploy etc.

Changing to compose mode actually has some implications, and the current init.sh does not handle well, and that must be updated.

@larsll
Copy link
Contributor

larsll commented Mar 15, 2023

Created #126 as a way to better manage the configuration using the init.sh.

When running in a clean container - using init.sh with -s compose I now get a working system. I would need more information about what goes wrong in your setting.

@1-ashraful-islam
Copy link
Author

If I set DR_DOCKER_STYLE=compose and then try to activate the environment with source bin/activate.sh then I get the following error:

Starting s3_minio_1 ... error

ERROR: for s3_minio_1  Cannot start service minio: container c9413dc26b2be8126379dc69ebed5c811f7c1f93a8b8111a1adedb475067bd23: endpoint join on GW Network failed: driver failed programming external connectivity on endpoint gateway_fde258ef812b (050a1ba826f6e6f57c4d2d5b6c66b173db390b426f7b3ee82dfdd2c1ab2d0041): Error starting userland proxy: listen tcp4 0.0.0.0:9001: bind: address already in use

ERROR: for minio  Cannot start service minio: container c9413dc26b2be8126379dc69ebed5c811f7c1f93a8b8111a1adedb475067bd23: endpoint join on GW Network failed: driver failed programming external connectivity on endpoint gateway_fde258ef812b (050a1ba826f6e6f57c4d2d5b6c66b173db390b426f7b3ee82dfdd2c1ab2d0041): Error starting userland proxy: listen tcp4 0.0.0.0:9001: bind: address already in use
ERROR: Encountered errors while bringing up the project.

I am using WSL2.

Update:
I git pulled the latest repo. I changed to compose in the ENV file. Then run the source command seems to run into same error. The minio image seems to be auto restarting in docker since I switched to systemd in wsl. If I quickly stop the minio container and then run the source command- it seems to execute without error.

@1-ashraful-islam
Copy link
Author

Update:
After pulling the latest repo and removing the docker service named s3_minio I no longer get errors.
The service kept restarting minio container in the background causing previous issue.

But, if I switch back to swarm, the docker service is reinstalled. This causes the issue to reappear if I switch back to compose again (requires manual removal of minio service)

@larsll
Copy link
Contributor

larsll commented Mar 20, 2023

OK - so the 'feature request' here would be to clean up the swarm service s3_minio.

@larsll larsll added enhancement New feature or request and removed bug Something isn't working labels Mar 20, 2023
@larsll
Copy link
Contributor

larsll commented Jan 7, 2024

Feature moved into #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants