bigchaindb / bigchaindb

Meet BigchainDB. The blockchain database.

Home Page:https://www.bigchaindb.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bigchaindb:all-in-one docker-compose error: 'check system' not defined in control file

jseparovic opened this issue · comments

When I try to run the all-in-one image with docker-compose I get the following error:

# docker-compose up
Creating network "bigfiot_default" with the default driver
Creating bigchaindb ... done
Attaching to bigchaindb
bigchaindb    | BigchainDB process manager configured!
bigchaindb    | I[05-16|19:07:23.868] Generated private validator                  module=main path=/tendermint/config/priv_validator.json
bigchaindb    | I[05-16|19:07:23.868] Generated node key                           module=main path=/tendermint/config/node_key.json
bigchaindb    | I[05-16|19:07:23.868] Generated genesis file                       module=main path=/tendermint/config/genesis.json
bigchaindb    | 'check system' not defined in control file, failed to add automatic configuration (service name bigchaindb is used already) -- please add 'check system <name>' manually
bigchaindb    | /root/.monitrc:16: Service name conflict, bigchaindb already defined 'bigchaindb'
bigchaindb exited with code 1

However, running it in docker directly is fine:

# docker run \
>   --detach \
>   --name bigchaindb \
>   --publish 9984:9984 \
>   --publish 9985:9985 \
>   --publish 27017:27017 \
>   --publish 26657:26657 \
>   --volume $HOME/bigchaindb_docker/mongodb/data/db:/data/db \
>   --volume $HOME/bigchaindb_docker/mongodb/data/configdb:/data/configdb \
>   --volume $HOME/bigchaindb_docker/tendermint:/tendermint \
>   bigchaindb/bigchaindb:all-in-one
6f64241e8bab12c8828c90e801d8c663520542d5bdccdde949d46732e3980ac8

# docker logs bigchaindb
BigchainDB process manager configured!
I[05-16|19:12:18.256] Found private validator                      module=main path=/tendermint/config/priv_validator.json
I[05-16|19:12:18.256] Found node key                               module=main path=/tendermint/config/node_key.json
I[05-16|19:12:18.256] Found genesis file                           module=main path=/tendermint/config/genesis.json
 New Monit id: f5249359c09c57604d5756ed4044d938
 Stored in '/root/.monit.id'
Starting Monit 5.25.1 daemon with http interface at [*]:2812
'6f64241e8bab' Monit 5.25.1 started
'bigchaindb' process is not running
'bigchaindb' trying to restart
'bigchaindb' restart: '/root/.bigchaindb-monit/monit_script start_bigchaindb /root/.bigchaindb-monit/monit_processes/bigchaindb.pid /root/.bigchaindb-monit/logs /root/.bigchaindb-monit/logs'
'bigchaindb' process is running with pid 33
'tendermint' start: '/root/.bigchaindb-monit/monit_script start_tendermint /root/.bigchaindb-monit/monit_processes/tendermint.pid /root/.bigchaindb-monit/logs /root/.bigchaindb-monit/logs'

Here is my docker-compose file:

# cat docker-compose.yml
version: '2.2'

services:
  bigchaindb:
    container_name: bigchaindb
    hostname: bigchaindb
    image: bigchaindb/bigchaindb:all-in-one
    volumes:
      - /var/lib/docker/data/bigchaindb_docker/mongodb/data/db:/data/db
      - /var/lib/docker/data/bigchaindb_docker/mongodb/data/configdb:/data/configdb
      - /var/lib/docker/data/bigchaindb_docker/tendermint:/tendermint
    ports:
      - 9984:9984
      - 9985:9985
      - 27017:27017
      - 26657:26657

Version info:

# docker-compose -version
docker-compose version 1.24.1, build 4667896b
# docker version
Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea
 Built:             Wed Nov 13 07:25:41 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       633a0ea
  Built:            Wed Nov 13 07:24:18 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

Any ideas on what I'm doing wrong here?

Is there a better way to run an env using docker-compose without the need of building every time?

Cheers

Same issue.

Is it resolved yet? I can access http://localhost:9984/ but not http://localhost:9985/