mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #408] DPS Network autoconnect stops working #142
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sajito on GitHub (Apr 4, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/408
Originally assigned to: @mageddo on GitHub.
What is Happening / What is expected
I'm using dps in a docker container with the dps network and auto connect features enabled. After the startup everything works fine, new containers are detected and added to the network. Also the logs are written, that containers were added to the network.
But after some time, new containers are not added to the network anymore. Nothing appears in the logs. There are no errors or messages regarding docker events.
The dns itself is working fine and the logging itself seems to work also. It's only that new containers are not registered in any way. Maybe the event listener closes silently in the background or something?
I don't know how to provide information on how to reproduce this, as it seems to happen randomly. Sometimes it happens after 10 minutes, sometimes it works fine for an hour.
Specs
3.15.9-snapshot@mageddo commented on GitHub (Apr 5, 2023):
Please provide the command you are using to run DPS.
Also enable the DEBUG log and be aware of the log
"status=event, id={}, action={}, type={}, status={}, event={}", it's supposed to log every time a container is created or destroyed,status=connected, networkNameOrIdis also supposed to be logged in sequence or some leak could be happening between the event listening and the action taken.If you can't see that log after the "new containers are not added to the network anymore." then lack of event trigger can be the root cause.
I'll make some tests at the event listener
@Sajito commented on GitHub (Apr 5, 2023):
I'm using this docker-compose snippet, to run DPS.
This is the config I'm using currently.
I've enabled the DEBUG log and initially the logs are printed as described, but when the containers are not added anymore, the logs don't contain the "status=event" log anymore. Since the full log exceeded 10MB, I have cleared the log file and reproduced the issue. Here is the log of that period, I can't find anything related to docker events in that snippet.
log.log
@mageddo commented on GitHub (Apr 7, 2023):
I'm trying to reproduce the issue with the docker-compose.yml provided and the following docker stack.
This command will start a container, keep it alive for 3 seconds then it will die and start another one, it would be great if you check if it will also cause the issue for you.
My docker version is different from yours, if I couldn't get the issue then it can be the cause.
For 5 minutes, no issue:
@mageddo commented on GitHub (Apr 7, 2023):
Didn't get the issue 2 hours later.
@mageddo commented on GitHub (Apr 7, 2023):
Got the issue, If a container already connected to DPS network stops and starts again, the event listener will hang and no new event will be able to be processed.
@mageddo commented on GitHub (Apr 7, 2023):
I'm releasing
3.15.12-snapshotwith the fix right now, will be available in 10 minutes.@mageddo commented on GitHub (Apr 12, 2023):
I'll consider this issue as fixed, please reopen it if the issue persists.
@Sajito commented on GitHub (Apr 13, 2023):
Sorry, I forgot to reply here. Having no issues with this anymore. Thanks!