Timeout error using dev container #1314
-
Contact DetailsRedacted What happened?I get this error trying to run the backend in VSCode: I can verify that the docker-compose was done, and there are 3 containers called librechat_devcontainer, chat-mongodb, and chat-melisearch. Windows 11, updated VSCode Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputShell log:
root@38dd3751723c:/workspaces/LibreChat# npm run backend:dev
> [email protected] backend:dev
> cross-env NODE_ENV=development npx nodemon api/server/index.js
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node api/server/index.js`
Meilisearch error, search will be disabled
KeyvMongo connection error: MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
at Timeout._onTimeout (/workspaces/LibreChat/node_modules/@keyv/mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
reason: TopologyDescription {
type: 'Unknown',
servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] },
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: null,
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
[Symbol(errorLabels)]: Set(0) {}
}
Mongodb log:
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.212+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.213+00:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.214+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.215+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.215+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.215+00:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.215+00:00"},"s":"I", "c":"TENANT_M", "id":7091600, "ctx":"main","msg":"Starting TenantMigrationAccessBlockerRegistry"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"e331f0197a0a"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"7.0.4","gitVersion":"38f3e37057a43d2e9f41a39142681a76062d582e","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"22.04"}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"},"security":{"authorization":"disabled"}}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.216+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=15473M,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],"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.893+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":677}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.893+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.895+00:00"},"s":"W", "c":"CONTROL", "id":22178, "ctx":"initandlisten","msg":"/sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'","tags":["startupWarnings"]}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.895+00:00"},"s":"W", "c":"CONTROL", "id":5123300, "ctx":"initandlisten","msg":"vm.max_map_count is too low","attr":{"currentValue":262144,"recommendedMinimum":1677720,"maxConns":838860},"tags":["startupWarnings"]}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.897+00:00"},"s":"I", "c":"NETWORK", "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":21,"maxWireVersion":21},"outgoing":{"minWireVersion":21,"maxWireVersion":21},"isInternalClient":true}}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.897+00:00"},"s":"I", "c":"REPL", "id":5853300, "ctx":"initandlisten","msg":"current featureCompatibilityVersion value","attr":{"featureCompatibilityVersion":"7.0","context":"startup"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.897+00:00"},"s":"I", "c":"STORAGE", "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.898+00:00"},"s":"I", "c":"CONTROL", "id":6608200, "ctx":"initandlisten","msg":"Initializing cluster server parameters from disk"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.898+00:00"},"s":"I", "c":"CONTROL", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.899+00:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.901+00:00"},"s":"I", "c":"REPL", "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.901+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.903+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.903+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
2023-12-08 15:32:00 {"t":{"$date":"2023-12-08T20:32:00.903+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}} ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I just realized you're using the dev container, you can ignore my comment |
Beta Was this translation helpful? Give feedback.
-
Hey thanks for trying out the project and your interest in developing over it. I moved this to a troubleshooting discussion because the default compose file performs well with both atlas and the default db image. Are you trying to connect to a db outside of the container or within? This could probably be solved by pointing to the right connection string. You may need to explicitly write the database URI in
|
Beta Was this translation helpful? Give feedback.
Hey thanks for trying out the project and your interest in developing over it. I moved this to a troubleshooting discussion because the default compose file performs well with both atlas and the default db image.
Are you trying to connect to a db outside of the container or within? This could probably be solved by pointing to the right connection string.
You may need to explicitly write the database URI in
.devcontainer/docker-compose.yml