Error response from daemon: network drone-kWWr0mA186LOPEX1wOGs not found

Hi, I was using drone for a good 3 months and then all of a sudden I got this error message Error response from daemon: network drone-kWWr0mA186LOPEX1wOGs not found. I found an issue that also encountered that.

I have looked at the docker logs but nothing weird there. When looking at the logs of the server I see no weird things happening. When I look at the server I see this message repeated often: http: no content returned: re-connect and re-try. They are both running on the same server but they are not connected through the docker network. It just uses the domain name to connect.

I am on the latest docker and the latest drone.

I do actively prune the system. I have stopped that process and recreated the drone containers (with the network) but still get the same error.

This is how my docker compose file looks

services:
    agent:
        environment:
            DRONE_LOGS_TRACE: 'true'
            DRONE_RPC_HOST: drone.example.com
            DRONE_RPC_PROTO: https
            DRONE_RPC_SECRET: 
            DRONE_RUNNER_CAPACITY: 2
            DRONE_RUNNER_NAME: home_runner
            DRONE_SECRET_PLUGIN_ENDPOINT: https://secrets.drone.example.com
            DRONE_SECRET_PLUGIN_TOKEN: 
        image: drone/drone-runner-docker:1
        ports:
        - 3021:3000
        restart: always
        volumes:
        - /var/run/docker.sock:/var/run/docker.sock
    server:
        environment:
            DRONE_GITHUB_CLIENT_ID: 
            DRONE_GITHUB_CLIENT_SECRET: 
            DRONE_LOGS_TRACE: 'true'
            DRONE_RPC_SECRET: 
            DRONE_SERVER_HOST: drone.example.com
            DRONE_SERVER_PROTO: https
            DRONE_USER_CREATE: username:test,admin:true
        image: drone/drone:2
        ports:
        - 3018:80
        restart: always
        volumes:
        - data:/data
    vault:
        environment:
            DEBUG: 'true'
            DRONE_LOGS_TRACE: 'true'
            DRONE_SECRET: 
            VAULT_ADDR: https://vault.example.com
            VAULT_TOKEN: 
        image: drone/vault
        ports:
        - 3019:3000
        restart: always
version: '3.5'
volumes:
    data: null

Can you please provide the full error logs (not just the error message) as well as logs before and after the error, so that we have some context? Do you see this in the user interface or just in the logs? Is it preventing Drone from working properly? Is this an error or a debug / trace message? Note that debug / trace log entries are not considered problematic (Drone makes multiple attempts to delete docker resources just to be extra safe; if the first delete operation fails, we expect subsequent operations may fail and we may log those failures as debug / trace logs for informational purposes only).

Error response from daemon: network drone-kWWr0mA186LOPEX1wOGs not found

I need more details to accurately comment … but in general, if you are receiving this error and it is resulting in pipeline failure it would indicate you are running some sort of routine to purge docker objects. This needs to be disabled. If you want to periodically purge docker objects, we created a utility that is Drone-aware that you should use instead https://github.com/drone/drone-gc

Hmm I thought I turned the docker purge off but apparently I did not. It indeed had to do with that.

For extra info. I was stopping my drone pipelines and was also showing in the ui. But when I tried it this morning it worked.

Anyways, I will try to use drone-gc and add more specific purging. Thanks anyways!

1 Like