libresh / compose-haproxy

HAproxy for libre.sh v1
GNU Affero General Public License v3.0
33 stars 10 forks source link

Network lb_web declared as external, but could not be found #6

Closed dickolsson closed 7 years ago

dickolsson commented 7 years ago

I tried installing the haproxy service according to the somewhat sparse instructions. But it's failing on a missing network. Are there missing dependencies to this service? Or are there additional steps I need to go through?

Here's the error output I'm getting

# docker-compose --verbose up -d
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.auth.auth.find_config_file: Trying paths: ['/root/.docker/config.json', '/root/.dockercfg']
docker.auth.auth.find_config_file: No config file found
compose.cli.command.get_client: docker-compose version 1.9.0, build 2585387
docker-py version: 1.10.6
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1t  3 May 2016
compose.cli.command.get_client: Docker base_url: http+docker://localunixsocket
compose.cli.command.get_client: Docker version: KernelVersion=3.18.43-guest-7-e34a08f-x86_64, Os=linux, BuildTime=2016-12-16T02:21:54.106577510+00:00, ApiVersion=1.24, Version=1.12.5, GitCommit=7392c3b, Arch=amd64, GoVersion=go1.6.4
compose.cli.verbose_proxy.proxy_callable: docker info <- ()
compose.cli.verbose_proxy.proxy_callable: docker info -> {u'Architecture': u'x86_64',
 u'BridgeNfIp6tables': True,
 u'BridgeNfIptables': True,
 u'CPUSet': True,
 u'CPUShares': True,
 u'CgroupDriver': u'cgroupfs',
 u'ClusterAdvertise': u'',
 u'ClusterStore': u'',
 u'Containers': 0,
 u'ContainersPaused': 0,
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- (u'haproxymaster_default')
compose.cli.verbose_proxy.proxy_callable: docker inspect_network -> {u'Containers': {},
 u'Driver': u'bridge',
 u'EnableIPv6': False,
 u'IPAM': {u'Config': [{u'Gateway': u'172.18.0.1/16',
                        u'Subnet': u'172.18.0.0/16'}],
           u'Driver': u'default',
           u'Options': None},
 u'Id': u'dfd996098be140d33164a0466c3a27424e043e41c692d3151879f58c19d26d24',
 u'Internal': False,
 u'Labels': {},

compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('lb_web')
ERROR: compose.cli.main.main: Network lb_web declared as external, but could not be found. Please create the network manually using `docker network create lb_web` and try again.
pierreozoux commented 7 years ago

Yes this project is part of http://libre.sh .

We are in the process of migrating to compose v2 for the nicest feature :) Network isolation :)

So this unit file is required somehow https://github.com/indiehosters/libre.sh/blob/master/unit-files/web-net.service

I'll update the README with the instruction if you use this standalone.

Thanks for reporting :)

All the best!

dickolsson commented 7 years ago

I see. Thanks! :)