Unable to complete Overleaf installation
Hi, I am new to the Overleaf set-up and I am trying to complete the installation of the Community Edition from scratch. When I do "bin/up" I see the following:
- Mongo shows as running although I see (MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017)
- Redis shows as running
- sharelatex I see as "recreated" but I also see --> Error response from daemon: driver failed programming external connectivity on endpoint sharelatex (13ee6bd4562d0143b3076f2f53c7a1ef1bef0afa83dc83a1bdfbaf4569ead9ad): failed to bind port 127.0.0.1:80/tcp: Error starting userland proxy: listen tcp4 127.0.0.1:80: bind: address already in use
When I do docker ps I only see mondo and redis: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d74dc7ded73f redis:6.2 "docker-entrypoint.s…" 6 hours ago Up 2 minutes 6379/tcp redis 0ee39a016287 mongo:6.0 "docker-entrypoint.s…" 6 hours ago Up 3 minutes (healthy) 27017/tcp mongo
I also paste below the output of bin/doctor.
- do I need a different port for OVERLEAF_PORT? what consequences would it have?
- once this is sorted, would I be able to use http://
/launchpad from another machine to continue the set-up process?
Thank you!
====== Overleaf Doctor ======
- Host Information
- Linux
- Output of 'lsb_release -a': Distributor ID: Ubuntu Description: Ubuntu 24.04.2 LTS Release: 24.04 Codename: noble
- Dependencies
- bash
- status: present
- version info: 5.2.21(1)-release
- docker
- status: present
- version info: Docker version 27.5.1, build 27.5.1-0ubuntu3~24.04.2
- realpath
- status: present
- version info: realpath (GNU coreutils) 9.4
- perl
- status: present
- version info: 5.038002
- awk
- status: present
- version info: GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)
- openssl
- status: present
- version info: OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
- docker-compose
- status: present
- version info: Docker Compose version v2.37.0
- bash
- Docker Daemon
- status: up
- server version: 27.5.1 ====== Configuration ======
- config/version
- status: present
- version: 5.5.1
- config/overleaf.rc
- status: present
- values
- OVERLEAF_DATA_PATH: data/overleaf
- OVERLEAF_LOG_PATH: not set, keeping logs in container
- SERVER_PRO: false
- SIBLING_CONTAINERS_ENABLED: false
- OVERLEAF_LISTEN_IP: 127.0.0.1
- OVERLEAF_PORT: 80
- MONGO_ENABLED: true
- MONGO_IMAGE: mongo
- MONGO_VERSION: 6.0
- MONGO_DATA_PATH: data/mongo
- REDIS_ENABLED: true
- REDIS_IMAGE: redis:6.2
- REDIS_AOF_PERSISTENCE: true
- REDIS_DATA_PATH: data/redis
- NGINX_ENABLED: false
- NGINX_CONFIG_PATH: config/nginx/nginx.conf
- TLS_PRIVATE_KEY_PATH: config/nginx/certs/overleaf_key.pem
- TLS_CERTIFICATE_PATH: config/nginx/certs/overleaf_certificate.pem
- NGINX_HTTP_LISTEN_IP: 127.0.1.1
- NGINX_HTTP_PORT: 80
- NGINX_TLS_LISTEN_IP: 127.0.1.1
- TLS_PORT: 443
- GIT_BRIDGE_ENABLED: false
- config/variables.env
- status: present
- values
- SHARELATEX_FILESTORE_BACKEND: fs
- SHARELATEX_HISTORY_BACKEND: fs
- OVERLEAF_FILESTORE_BACKEND: fs
- OVERLEAF_HISTORY_BACKEND: fs ====== Warnings ====== ! docker-compose v1 has reached its End Of Life in July 2023 (https://docs.docker.com/compose/migrate/). Support for docker-compose v1 in the Overleaf Toolkit will be dropped with the release of Server Pro 5.2. We recommend upgrading to Docker Compose v2 before then. ! Detected SIBLING_CONTAINERS_ENABLED=false. When not using Sibling containers, users have full read and write access to the 'sharelatex' container resources (filesystem, network, environment variables) when running LaTeX compiles. Only use this mode in environments where all users are trusted and no isolation of users is required. ====== End ======
In docker-compose.mongo.yml update the healthcheck test to test: ["CMD-SHELL", "mongosh mongodb://localhost:27017/test --quiet --eval 'db.stats().ok' | grep '^1$'"]
sharelatex I see as "recreated" but I also see --> Error response from daemon: driver failed programming external connectivity on endpoint sharelatex (13ee6bd4562d0143b3076f2f53c7a1ef1bef0afa83dc83a1bdfbaf4569ead9ad): failed to bind port 127.0.0.1:80/tcp: Error starting userland proxy: listen tcp4 127.0.0.1:80: bind: address already in use
if you have another service using port 80 (for example, Apache or nginx), change OVERLEAF_PORT in overleaf.rc to another value