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

Bug: Containers with network dependencies fail to start from time to time #38

Open
AN1MATEK opened this issue Oct 2, 2024 · 0 comments

Comments

@AN1MATEK
Copy link

AN1MATEK commented Oct 2, 2024

Hello there,

This issue happens only sometimes, like once every 10/15 backups.

I have a container that is a VPN tunnel, PIA. There are 3 other containers that have Network Type: Custom container:pia

The VPN container starts always first. When the other 3 start after the backup, they fail, as they are looking for a container id for their network and this has changed. I have a stupid fix in place in the post-run script that checks if the containers are running or not, and then executes the whole docker run, as it is displayed when starting from the UI. They come up without an issue.

if docker ps --filter "name=thelounge" --filter "status=running" | grep -q "thelounge"; then
    echo -e "Container thelounge is running\n"
else
    echo -e "Container thelounge is not running.\n"
    /usr/bin/docker remove thelounge
    /usr/bin/docker run -d --name='thelounge' --net='container:pia' [...]'

Since I have this fix in my script I don't have issues anymore, other than the red notifications when it happens. I wanted to bring attention to it.

Thank you for the development efforts. The plugin is staple for me.

Issue in unRAID forums: https://forums.unraid.net/topic/137710-plugin-appdatabackup/?do=findComment&comment=1470903

Debug log ID: 4b60e7f5-421c-45b4-abcf-74730e670f60

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

No branches or pull requests

1 participant