-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Can not connect to MongoDB? #1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy stateme 8000 nt. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
same thing happen to my deployment.
*** Killing all processes... |
+1 |
It can be solved by executing:
|
Hi there!
I am trying to deploy Overleaf on my NAS which is running OpenWRT. Since my NAS uses a CPU which does not support AVX (required by MongoDB 5.0), I decide to deploy Overleaf 4.1.1.
However, it says
sharelatex | Cannot connect to mongodb sharelatex | MongooseServerSelectionError: connect ECONNREFUSED 172.26.0.1:27017 sharelatex | at Connection.openUri (/overleaf/services/web/node_modules/mongoose/lib/connection.js:825:32) sharelatex | at /overleaf/services/web/node_modules/mongoose/lib/index.js:414:10 sharelatex | at /overleaf/services/web/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5 sharelatex | at new Promise (<anonymous>) sharelatex | at promiseOrCallback (/overleaf/services/web/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10) sharelatex | at Mongoose._promiseOrCallback (/overleaf/services/web/node_modules/mongoose/lib/index.js:1288:10) sharelatex | at Mongoose.connect (/overleaf/services/web/node_modules/mongoose/lib/index.js:413:20) sharelatex | at Object.<anonymous> (/overleaf/services/web/app/src/infrastructure/Mongoose.js:19:36) sharelatex | at Module._compile (node:internal/modules/cjs/loader:1256:14) sharelatex | at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) { sharelatex | reason: TopologyDescription { sharelatex | type: 'Unknown', sharelatex | servers: Map(1) { 'dockerhost:27017' => [ServerDescription] }, sharelatex | stale: false, sharelatex | compatible: true, sharelatex | heartbeatFrequencyMS: 10000, sharelatex | localThresholdMS: 15, sharelatex | setName: null, sharelatex | maxElectionId: null, sharelatex | maxSetVersion: null, sharelatex | commonWireVersion: 0, sharelatex | logicalSessionTimeoutMinutes: null sharelatex | }, sharelatex | code: undefined sharelatex | } sharelatex | *** /etc/my_init.d/98_check_db_access.sh failed with status 1 sharelatex | sharelatex | *** Killing all processes...
The .yml file I use is
`version: '2.2'
services:
sharelatex:
restart: always
# Server Pro users:
# image: quay.io/sharelatex/sharelatex-pro
image: sharelatex:4.1.1
container_name: sharelatex
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
ports:
- 5555:80
stop_grace_period: 60s
volumes:
- ~/sharelatex_data:/var/lib/overleaf
########################################################################
#### Server Pro: Uncomment the following line to mount the docker ####
#### socket, required for Sibling Containers to work ####
########################################################################
# - /var/run/docker.sock:/var/run/docker.sock
environment:
`
Thank you in advance!
The text was updated successfully, but these errors were encountered: