Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Hang on startup due to different "Waiting for connections" message #63

Open
scjody opened this issue Jun 5, 2020 · 0 comments
Open

Comments

@scjody
Copy link

scjody commented Jun 5, 2020

On Linux (Ubuntu 18.04.4 LTS), mongod 4.5.0-1480-g567881d (the current default) prints a different startup message than expected, which causes mongodb-helper to hang on startup.

It's looking for "waiting for connections on port" here but the actual message printed is "Waiting for connections".

I believe #40 would fix this issue.

Full debug log

  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.103-04:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
  mongodb-prebuilt-MongodHelper  +0ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.113-04:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
  mongodb-prebuilt-MongodHelper  +9ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.113-04:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
  mongodb-prebuilt-MongodHelper  +1ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.116-04:00"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":19224,"port":27017,"dbPath":"/tmp/mockmongoose/1591381870008","architecture":"64-bit","host":"kitten"}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.116-04:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.5.0-1602-g5c6e1e5","gitVersion":"5c6e1e540a9b5b0e0c87fa3522b9e668e2357a8c","openSSLVersion":"OpenSSL 1.1.1  11 Sep 2018","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu1804","distarch":"x86_64","target_arch":"x86_64"}}}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.116-04:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"18.04"}}}
  mongodb-prebuilt-MongodHelper  +2ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.116-04:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"port":27017},"storage":{"dbPath":"/tmp/mockmongoose/1591381870008","engine":"ephemeralForTest"}}}}
  mongodb-prebuilt-MongodHelper  +0ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.136-04:00"},"s":"W",  "c":"CONTROL",  "id":22117,   "ctx":"initandlisten","msg":"This is a development version of MongoDB. Not recommended for production","attr":{"version":"4.5.0-1602-g5c6e1e5"},"tags":["startupWarnings"]}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.136-04:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.136-04:00"},"s":"W",  "c":"CONTROL",  "id":22140,   "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]}
  mongodb-prebuilt-MongodHelper  +20ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.136-04:00"},"s":"I",  "c":"CONTROL",  "id":22197,   "ctx":"initandlisten","msg":"The ephemeralForTest storage engine is for testing only. Do not use in production","tags":["startupWarnings"]}
  mongodb-prebuilt-MongodHelper  +1ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.138-04:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"admin.system.version","uuidDisposition":"provided","uuid":{"uuid":{"$uuid":"8284060a-4ef4-43dc-a3a1-11e2e1c6404d"}},"options":{"uuid":{"$uuid":"8284060a-4ef4-43dc-a3a1-11e2e1c6404d"}}}}
  mongodb-prebuilt-MongodHelper  +1ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.138-04:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"index build: done building","attr":{"namespace":"admin.system.version","index":"_id_"}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.138-04:00"},"s":"I",  "c":"COMMAND",  "id":20459,   "ctx":"initandlisten","msg":"Setting featureCompatibilityVersion","attr":{"newVersion":"4.6"}}
  mongodb-prebuilt-MongodHelper  +1ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.139-04:00"},"s":"I",  "c":"STORAGE",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
  mongodb-prebuilt-MongodHelper  +0ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.141-04:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"local.startup_log","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"a55e7692-9b02-433f-b139-a433fc3cc140"}},"options":{"capped":true,"size":10485760}}}
  mongodb-prebuilt-MongodHelper  +2ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.141-04:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"index build: done building","attr":{"namespace":"local.startup_log","index":"_id_"}}
  mongodb-prebuilt-MongodHelper  +1ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.142-04:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/tmp/mockmongoose/1591381870008/diagnostic.data"}}
  mongodb-prebuilt-MongodHelper  +0ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.150-04:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"LogicalSessionCacheRefresh","msg":"createCollection","attr":{"namespace":"config.system.sessions","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"a0cc8ede-e186-475a-827b-c770e4d643a6"}},"options":{}}}
  mongodb-prebuilt-MongodHelper  +8ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.150-04:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"index build: done building","attr":{"namespace":"config.system.sessions","index":"_id_"}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.150-04:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"index build: done building","attr":{"namespace":"config.system.sessions","index":"lsidTTLIndex"}}
  mongodb-prebuilt-MongodHelper  +0ms
  mongodb-prebuilt-MongodHelper mongod stdout: {"t":{"$date":"2020-06-05T14:32:19.151-04:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.151-04:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
  mongodb-prebuilt-MongodHelper {"t":{"$date":"2020-06-05T14:32:19.151-04:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant