! gogocarto/mongo-database (joined) @> | ! Running mongo-database relation-joined script for target mongo (charm mongo)
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> Error in wrapped command:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> pwd: /srv/charm-store/mongo
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> code:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | /bin/bash /dev/fd/60
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> output (1):
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Database is not locked.
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! docker network create db_mongo_7
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! docker run -d --name db_mongo_7 -v /srv/datastore/config/mongo/etc/mongod.conf:/etc/mongod.conf --add-host mongo:127.0.0.1 --network db_mongo_7 -v /srv/datastore/data/mongo/var/lib/mongodb:/var/lib/mongodb lokavaluto_mongo
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Found docker 83ec3946f435b2199aa4344f96e70681817060fb80d932affea550b01fd97548 network and IP: db_mongo_7:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Error: internal 'wait_docker_ip' did not return a valid IP. Returned IP is ''.
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Error: Db not found (errlvl: 1). Tail of docker logs follows:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /var/lib/mongodb/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /var/lib/mongodb directory, terminatingmongo/mongo-database (joined) @> Error: mongo script '/srv/charm-store/mongo/hooks/mongo_database-relation-joined' failed with errorlevel '1'.
! gogocarto/mongo-database (joined) @> | !
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.334+0000 I CONTROL [initandlisten] now exiting
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.334+0000 I CONTROL [initandlisten] shutting down with code:100
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Removing container db_mongo_7gogocarto/mongo-database (joined) @> Error: gogocarto script '/srv/charm-store/gogocarto/hooks/mongo_database-relation-joined' failed with errorlevel '1'.
!
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | 83ec3946f435b2199aa4344f96e70681817060fb80d932affea550b01fd97548
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | db_mongo_7
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | db_mongo_7
! gogocarto/mongo-database (joined) @> | ! Error: Relation mongo-database on mongo failed to run properly.
! gogocarto/mongo-database (joined) @> ! Error: Mongo database initialization failed.
! gogocarto/mongo-database (joined) @> | removed '/srv/datastore/config/gogocarto/opt/apps/gogocarto/.initing-gogocarto'
! Error: Relation mongo-database on gogocarto failed to run properly.
Config : windows 10 + WSL2
```
! gogocarto/mongo-database (joined) @> | ! Running mongo-database relation-joined script for target mongo (charm mongo)
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> Error in wrapped command:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> pwd: /srv/charm-store/mongo
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> code:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | /bin/bash /dev/fd/60
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> output (1):
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Database is not locked.
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! docker network create db_mongo_7
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! docker run -d --name db_mongo_7 -v /srv/datastore/config/mongo/etc/mongod.conf:/etc/mongod.conf --add-host mongo:127.0.0.1 --network db_mongo_7 -v /srv/datastore/data/mongo/var/lib/mongodb:/var/lib/mongodb lokavaluto_mongo
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Found docker 83ec3946f435b2199aa4344f96e70681817060fb80d932affea550b01fd97548 network and IP: db_mongo_7:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Error: internal 'wait_docker_ip' did not return a valid IP. Returned IP is ''.
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Error: Db not found (errlvl: 1). Tail of docker logs follows:
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /var/lib/mongodb/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /var/lib/mongodb directory, terminatingmongo/mongo-database (joined) @> Error: mongo script '/srv/charm-store/mongo/hooks/mongo_database-relation-joined' failed with errorlevel '1'.
! gogocarto/mongo-database (joined) @> | !
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets...
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.333+0000 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.334+0000 I CONTROL [initandlisten] now exiting
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! | 2020-11-02T17:08:58.334+0000 I CONTROL [initandlisten] shutting down with code:100
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> ! Removing container db_mongo_7gogocarto/mongo-database (joined) @> Error: gogocarto script '/srv/charm-store/gogocarto/hooks/mongo_database-relation-joined' failed with errorlevel '1'.
!
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | 83ec3946f435b2199aa4344f96e70681817060fb80d932affea550b01fd97548
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | db_mongo_7
! gogocarto/mongo-database (joined) @> | ! mongo/mongo-database (joined) @> | db_mongo_7
! gogocarto/mongo-database (joined) @> | ! Error: Relation mongo-database on mongo failed to run properly.
! gogocarto/mongo-database (joined) @> ! Error: Mongo database initialization failed.
! gogocarto/mongo-database (joined) @> | removed '/srv/datastore/config/gogocarto/opt/apps/gogocarto/.initing-gogocarto'
! Error: Relation mongo-database on gogocarto failed to run properly.
```
vlab
changed title from [gogocarto] Failed to detect already created mongo container to [gogocarto] failed to detect already created mongo container (win WSL2)4 years ago
ChloeM
changed title from [gogocarto] failed to detect already created mongo container (win WSL2) to [gogocarto] Failed to detect already created mongo container4 years ago
ChloeM
changed title from [gogocarto] Failed to detect already created mongo container to [gogocarto] failed to detect already created mongo container (win WSL2)4 years ago
There are 4 compose commands that are launched by the relation gogocarto --> mongodb, the first seems to be launched correctly, it is on the second that it doesn't seem to work as planned and fails to see the already launched mongo container.
There are 4 `compose` commands that are launched by the relation `gogocarto` --> `mongodb`, the first seems to be launched correctly, it is on the second that it doesn't seem to work as planned and fails to see the already launched `mongo` container.
Config : windows 10 + WSL2
[gogocarto] Failed to detect already created mongo containerto [gogocarto] failed to detect already created mongo container (win WSL2) 4 years ago[gogocarto] failed to detect already created mongo container (win WSL2)to [gogocarto] Failed to detect already created mongo container 4 years ago[gogocarto] Failed to detect already created mongo containerto [gogocarto] failed to detect already created mongo container (win WSL2) 4 years agoThere are 4
compose
commands that are launched by the relationgogocarto
-->mongodb
, the first seems to be launched correctly, it is on the second that it doesn't seem to work as planned and fails to see the already launchedmongo
container.