This message was deleted.
# contributing
w
This message was deleted.
f
That sounds like the container isn’t starting - are you getting any errors from those containers?
c
@numerous-parrot-15513 Will you be able to provide more information?
f
This can often be because the jwt was not changed when putting GrowthBook in production mode
c
Thanks @fresh-football-47124. We were able to fix that issue. But we have new issue now. Growthbook container failed to connect mongo db container and here is the error log.
Copy code
{
  "level": 50,
  "time": 1681794194447,
  "pid": 60,
  "hostname": "e6dea3e0569c",
  "err": {
    "type": "MongooseServerSelectionError",
    "message": "connect ECONNREFUSED 172.17.0.3:27017",
    "stack": "MongooseServerSelectionError: connect ECONNREFUSED 172.17.0.3:27017\n    at NativeConnection.Connection.openUri (/usr/local/src/app/node_modules/mongoose/lib/connection.js:847:32)\n    at /usr/local/src/app/node_modules/mongoose/lib/index.js:351:10\n    at /usr/local/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5\n    at Promise._execute (/usr/local/src/app/node_modules/bluebird/js/release/debuggability.js:384:9)\n    at Promise._resolveFromExecutor (/usr/local/src/app/node_modules/bluebird/js/release/promise.js:518:18)\n    at new Promise (/usr/local/src/app/node_modules/bluebird/js/release/promise.js:103:10)\n    at promiseOrCallback (/usr/local/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)\n    at Mongoose._promiseOrCallback (/usr/local/src/app/node_modules/mongoose/lib/index.js:1149:10)\n    at Mongoose.connect (/usr/local/src/app/node_modules/mongoose/lib/index.js:350:20)\n    at /usr/local/src/app/packages/back-end/dist/init/mongo.js:27:41\n    at Generator.next (<anonymous>)\n    at /usr/local/src/app/packages/back-end/dist/init/mongo.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/usr/local/src/app/packages/back-end/dist/init/mongo.js:4:12)\n    at exports.default (/usr/local/src/app/packages/back-end/dist/init/mongo.js:20:25)\n    at /usr/local/src/app/packages/back-end/dist/init/index.js:25:43\n    at Generator.next (<anonymous>)\n    at /usr/local/src/app/packages/back-end/dist/init/index.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/usr/local/src/app/packages/back-end/dist/init/index.js:4:12)\n    at /usr/local/src/app/packages/back-end/dist/init/index.js:24:34\n    at /usr/local/src/app/packages/back-end/dist/init/index.js:28:16",
    "reason": {
      "type": "Single",
      "setName": null,
      "maxSetVersion": null,
      "maxElectionId": null,
      "servers": {},
      "stale": false,
      "compatible": true,
      "compatibilityError": null,
      "logicalSessionTimeoutMinutes": null,
      "heartbeatFrequencyMS": 10000,
      "localThresholdMS": 15,
      "commonWireVersion": null
    }
  },
  "msg": "Failed to connect to MongoDB"
}
f
are you able to connect locally to mongo?
on 172.17.0.3:27017?
m
@fresh-football-47124 The containers are in the same network. I can ping the ping the container but I cant Connect to mongo. I exec to mongo container and Tried mongo command and getting error that mongo command not found Is this something to do with container memory?
Previously worked with memory allocation
Here is the mongo container logs?
Copy code
{
  "t": {
    "$date": "2023-04-27T07:14:27.531+00:00"
  },
  "s": "W",
  "c": "CONTROL",
  "id": 20720,
  "ctx": "initandlisten",
  "msg": "Memory available to mongo process is less than total system memory",
  "attr": {
    "availableMemSizeMB": 512,
    "systemMemSizeMB": 3886
  }
}
Copy code
{
  "t": {
    "$date": "2023-04-27T07:14:27.554+00:00"
  },
  "s": "I",
  "c": "STORAGE",
  "id": 22315,
  "ctx": "initandlisten",
  "msg": "Opening WiredTiger",
  "attr": {
    "config": "create,cache_size=256M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"
  }
}
Copy code
{
  "t": {
    "$date": "2023-04-27T07:19:15.146+00:00"
  },
  "s": "I",
  "c": "CONTROL",
  "id": 23377,
  "ctx": "SignalHandler",
  "msg": "Received signal",
  "attr": {
    "signal": 15,
    "error": "Terminated"
  }
}
231 Views