Jump to content
We're Hiring! Full Stack Developer ×
  • [6.12.4] containers with br0/eth0 network fail to start after reboot/docker service restart


    nukecat
    • Minor

    image.thumb.png.29dbd051573add64ac0c864e41233178.png

    I use br0(macvlan) as aria2 and qbittorrent's primary nic and they both fail to start after reboot.

    Error msg says network not found.

    Im assuming unriad create a new docker network with the same name 'br0'?

    These never happen on 6.12.0-6.12.3.

    Is there any way to fix it or I'll have to wait for future OS releasae(hope it will be fixed...)?

     

    • Upvote 1



    User Feedback

    Recommended Comments

    Below is my docker setting and compose file:

    image.thumb.png.dff88bffee04545600b1c32a33c4cf21.png

    I use macvlan to assign dedicated IP and mac .For network control purpose.

    image.thumb.png.da9ff913f3c424d9547eca7908ea7eba.png

    br0 as main network and traefik for external access.

    Edited by nukecat
    Link to comment

    This looks more like a configuration error.

    I dont know how your compose is set up, but given that you dont have preserve custom networks on, i assume traefik is creating the bridge traefik.

    Since Aria2 and qbittorrent start before traefik, this is to be expected. Change the autostart order.

    Link to comment
    16 hours ago, Mainfrezzer said:

    This looks more like a configuration error.

    I dont know how your compose is set up, but given that you dont have preserve custom networks on, i assume traefik is creating the bridge traefik.

    Since Aria2 and qbittorrent start before traefik, this is to be expected. Change the autostart order.

    I think it's not the autostart order.

    Every time unraid reboot or disable and enable docker service,br0 or eth0  changed its id,therefore container aria2 cannot found the correct network by network id.

    Docker network traefik didnt created by container traefik. Its a external network which I manually created it by [docker network create traefik] months back and it just works fine before 6.12.4 upgrade.

     

    I did a experiment last nignt and confirmed the changing of docker network id.Unraid did recreate network eth0(or br0 based on config)  when starting docker service.

    Link to comment

    Ive spend some time on it and youre indeed correct, this is an issue. Sadly not unraid specific, it a compose issue, it just wasnt noticed before. 

    "docker-compose up --force-recreate"

    Link to comment
    20 hours ago, Mainfrezzer said:

    Ive spend some time on it and youre indeed correct, this is an issue. Sadly not unraid specific, it a compose issue, it just wasnt noticed before. 

    "docker-compose up --force-recreate"

    That's odd, everything works fine before 6.12.4 upgrade and docker compose is just a way to control and deploy containers.

    Container created by 'docker run' command with br0 or the0 network should facing the same problem (ie containers failed to start because network id changing).

    I think the recent change to fix for macvlan call traces changed how unraid create and control docker network,causing it's id changing.

    Hope it will be fixed soon.

    Link to comment

    i placed a pull request for the plugin which will fix the issue.

    In the meantime you can fix the compose issue by downloading the compose.manager-package-2023.09.13.txz from your usb. Get the "compose.sh" from 

    compose.manager-package-2023.09.13.txz\compose.manager-package-2023.09.13.tar\usr\local\emhttp\plugins\compose.manager\scripts\

    modify the line 57 from
     

    eval docker compose $files -p "$name" up -d 2>&1

    to
     

    eval docker compose $files -p "$name" up --force-recreate -d 2>&1



    put the compose.sh back into the archive. Let, hopefully youre using 7zip, 7zip rebuild the archive.

    Delete the original .txz from the usb, place the modified on the usb (hopefully with dynamix file manager) and then open the terminal 

     

    md5sum /boot/config/plugins/compose.manager/compose.manager-package-2023.09.13.txz

    copy the md5 sum that appears and modify the md5 checksum on line 8 in the compose.manager.plg within the /config/plugins folder of the usb.

    It should be <!ENTITY packageMD5 "771a0a5b9d3f8b002ccaca86a38af635"> if i did manage to not sneak in some spaces.

    And then reboot.

    Edit: If youre willing to trust me, here are the 2 files so you dont have to do it manually.plugins.zip

    Edited by Mainfrezzer
    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...