添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install Overleaf Server Community Edition Toolkit following the steps in the Quick Start Guide . When I execute bin/up, I get an error:
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
After that, the installation goes into an endless loop.

Steps to Reproduce

  • Tried on Ubuntu 24.04 and 22.04 AWS EC2 instances.
  • Hardware requirements followed as per Hardware Requirements https://github.com/overleaf/overleaf/wiki/Hardware-Requirements .
  • Installed Docker packages: docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin, docker-compose-plugin.
  • Tried Docker versions 26 and 27.
  • Executed bin/init and then bin/up.
  • Expected Behaviour

    Overleaf Community Edition installs on the server without issues.

    Observed Behaviour

    Here is what happened:
    home/ubuntu/overleaf-toolkit# bin/up
    Initiating Mongo replica set...
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.base.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.vars.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.redis.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    [+] Running 1/1
    ✔ Container mongo Started 0.4s
    MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
    Waiting for Mongo...
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.base.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.vars.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.redis.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    WARN[0000] /home/ubuntu/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
    [+] Running 3/0
    ✔ Container redis Created 0.0s
    ✔ Container mongo Running 0.0s
    ✔ Container sharelatex Created 0.0s
    Attaching to mongo, redis, sharelatex
    redis | 1:C 01 Aug 2024 23:37:30.075 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    redis | 1:C 01 Aug 2024 23:37:30.075 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started
    redis | 1:C 01 Aug 2024 23:37:30.075 # Configuration loaded
    redis | 1:M 01 Aug 2024 23:37:30.076 * monotonic clock: POSIX clock_gettime
    redis | 1:M 01 Aug 2024 23:37:30.077 * Running mode=standalone, port=6379.
    redis | 1:M 01 Aug 2024 23:37:30.078 # Server initialized
    redis | 1:M 01 Aug 2024 23:37:30.078 * DB loaded from append only file: 0.000 seconds
    redis | 1:M 01 Aug 2024 23:37:30.078 * Ready to accept connections
    mongo | {"t":{"$date":"2024-08-01T23:37:36.436+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:44174","uuid":"6edb282a-d13c-4f06-b645-4f10d51ec884","connectionId":19,"connectionCount":5}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.441+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn19","msg":"client metadata","attr":{"remote":"127.0.0.1:44174","client":"conn19","negotiatedCompressors":[],"doc":{"application":{"name":"mongosh 2.2.10"},"driver":{"name":"nodejs|mongosh","version":"6.7.0|2.2.10"},"platform":"Node.js v20.12.2, LE","os":{"name":"linux","architecture":"x64","version":"3.10.0-327.22.2.el7.x86_64","type":"Linux"},"env":{"container":{"runtime":"docker"}}}}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.522+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:44178","uuid":"2f6add29-dd9d-436d-91c2-00fde47cfac4","connectionId":20,"connectionCount":6}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.523+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:44184","uuid":"78c755cb-8003-4540-9926-58163b35f86c","connectionId":21,"connectionCount":7}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.527+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn20","msg":"client metadata","attr":{"remote":"127.0.0.1:44178","client":"conn20","negotiatedCompressors":[],"doc":{"application":{"name":"mongosh 2.2.10"},"driver":{"name":"nodejs|mongosh","version":"6.7.0|2.2.10"},"platform":"Node.js v20.12.2, LE","os":{"name":"linux","architecture":"x64","version":"3.10.0-327.22.2.el7.x86_64","type":"Linux"},"env":{"container":{"runtime":"docker"}}}}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.529+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn21","msg":"client metadata","attr":{"remote":"127.0.0.1:44184","client":"conn21","negotiatedCompressors":[],"doc":{"application":{"name":"mongosh 2.2.10"},"driver":{"name":"nodejs|mongosh","version":"6.7.0|2.2.10"},"platform":"Node.js v20.12.2, LE","os":{"name":"linux","architecture":"x64","version":"3.10.0-327.22.2.el7.x86_64","type":"Linux"},"env":{"container":{"runtime":"docker"}}}}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.540+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:44190","uuid":"83f1bd5a-57fd-4aa8-89b2-3b7b3a781290","connectionId":22,"connectionCount":8}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.545+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn22","msg":"client metadata","attr":{"remote":"127.0.0.1:44190","client":"conn22","negotiatedCompressors":[],"doc":{"application":{"name":"mongosh 2.2.10"},"driver":{"name":"nodejs|mongosh","version":"6.7.0|2.2.10"},"platform":"Node.js v20.12.2, LE","os":{"name":"linux","architecture":"x64","version":"3.10.0-327.22.2.el7.x86_64","type":"Linux"},"env":{"container":{"runtime":"docker"}}}}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.829+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn19","msg":"Connection ended","attr":{"remote":"127.0.0.1:44174","uuid":"6edb282a-d13c-4f06-b645-4f10d51ec884","connectionId":19,"connectionCount":7}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.830+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn22","msg":"Connection ended","attr":{"remote":"127.0.0.1:44190","uuid":"83f1bd5a-57fd-4aa8-89b2-3b7b3a781290","connectionId":22,"connectionCount":6}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.831+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn21","msg":"Connection ended","attr":{"remote":"127.0.0.1:44184","uuid":"78c755cb-8003-4540-9926-58163b35f86c","connectionId":21,"connectionCount":5}}
    mongo | {"t":{"$date":"2024-08-01T23:37:36.831+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn20","msg":"Connection ended","attr":{"remote":"127.0.0.1:44178","uuid":"2f6add29-dd9d-436d-91c2-00fde47cfac4","connectionId":20,"connectionCount":4}}

    Context

    The Overleaf server can't be installed.

    Technical Info

    I've verified security group settings and tried changing MongoDB from "localhost" to 127.0.0.1 and 0.0.0.0 IPs on port 27017 to no avail.