------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Stopping sharelatex ... done
Stopping redis ... done
Stopping mongo ... done
Maybe related to [Benjamin_Loison/moby/issues/2](https://codeberg.org/Benjamin_Loison/moby/issues/2).
On OverClock3000.
Should measure with `time`.
```bash
bin/stop
```
<details>
<summary>Output:</summary>
```
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Stopping sharelatex ... done
Stopping redis ... done
Stopping mongo ... done
```
</details>
Related to #7.
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Starting mongo ... done
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Waiting for Mongo...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
ERROR: no such image: sharelatex/sharelatex:with-texlive-full:5.1.0: invalid reference format
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Starting mongo ... done
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
Waiting for Mongo...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARNING: 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.
ERROR: no such image: sharelatex/sharelatex:with-texlive-full:5.1.0: invalid reference format
```
</details>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
arch-test cgroupfs-mount containerd debootstrap docker.io libintl-perl libintl-xs-perl libmodule-find-perl libmodule-scandeps-perl
libproc-processtable-perl libsort-naturally-perl needrestart python3-cached-property python3-docker python3-dockerpty python3-docopt
python3-dotenv python3-json-pointer python3-jsonschema python3-pyrsistent python3-rfc3987 python3-texttable python3-uritemplate
python3-webcolors python3-websocket runc tini
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
docker-compose*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 538 kB disk space will be freed.
(Reading database ... 569464 files and directories currently installed.)
Removing docker-compose (1.29.2-3) ...
Processing triggers for man-db (2.11.2-2) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311).
curl is already the newest version (7.88.1-10+deb12u6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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 1.5s
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
Waiting for Mongo...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
After replacing in config/overleaf.rc:
MONGO_IMAGE=mongo:4.4
with:
MONGO_IMAGE=mongo
MONGO_VERSION=6.0
bin/up
Output:
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 9/9
✔ mongo Pulled 14.3s
✔ 3713021b0277 Pull complete 2.3s
✔ d530feffd030 Pull complete 2.4s
✔ 33eb4d8e3c2b Pull complete 2.6s
✔ 5f6b6ddebd98 Pull complete 2.7s
✔ bdf2f11848eb Pull complete 2.7s
✔ 6c38c0548d3d Pull complete 2.8s
✔ ad44eb05f95c Pull complete 12.7s
✔ 8a906a03f233 Pull complete 12.7s
[+] Running 1/1
✔ Container mongo Started 1.3s
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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 1.5s
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
Waiting for Mongo...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
```
</details>
After replacing in `config/overleaf.rc`:
```
MONGO_IMAGE=mongo:4.4
```
with:
```
MONGO_IMAGE=mongo
MONGO_VERSION=6.0
```
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 9/9
✔ mongo Pulled 14.3s
✔ 3713021b0277 Pull complete 2.3s
✔ d530feffd030 Pull complete 2.4s
✔ 33eb4d8e3c2b Pull complete 2.6s
✔ 5f6b6ddebd98 Pull complete 2.7s
✔ bdf2f11848eb Pull complete 2.7s
✔ 6c38c0548d3d Pull complete 2.8s
✔ ad44eb05f95c Pull complete 12.7s
✔ 8a906a03f233 Pull complete 12.7s
[+] Running 1/1
✔ Container mongo Started 1.3s
WARNING: the value of REDIS_AOF_PERSISTENCE is not set in config/overleaf.rc
See https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
```
</details>
[overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default](https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default)
[overleaf/wiki/Data-and-Backups/#redis](https://github.com/overleaf/overleaf/wiki/Data-and-Backups/#redis)
https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/#how-i-can-switch-to-aof-if-im-currently-using-dumprdb-snapshots
```bash
redis-cli --version
```
```
redis-cli 7.0.15
```
```bash
find / -name 'dump.rdb' 2> /dev/null
```
<details>
<summary>Output:</summary>
```
/var/lib/redis/dump.rdb
/var/opt/gitlab/redis/dump.rdb
/home/benjamin/overleaf-toolkit/data/redis/dump.rdb
```
</details>
```bash
mkdir backup/
sudo cp /var/lib/redis/dump.rdb backup/
sudo cp /home/benjamin/overleaf-toolkit/data/redis/dump.rdb backup/dump_bis.rdb
```
```bash
redis-cli config set appendonly yes
```
```
OK
```
After adding REDIS_AOF_PERSISTENCE=true to config/overleaf.rc:
bin/up
Output:
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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/0
✔ Container mongo Started 0.0s
Error response from daemon: Container d3f36c187abcd85375ed1bd9d6bf6fda7ac7f98da6444fd238397df56d2c8ab4 is restarting, wait until the container is running
After adding `REDIS_AOF_PERSISTENCE=true` to `config/overleaf.rc`:
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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/0
✔ Container mongo Started 0.0s
Error response from daemon: Container d3f36c187abcd85375ed1bd9d6bf6fda7ac7f98da6444fd238397df56d2c8ab4 is restarting, wait until the container is running
```
</details>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3f36c187abc mongo:6.0 "docker-entrypoint.s…" 33 minutes ago Restarting (62) 36 seconds ago mongo
d4f2957ec807 sharelatex/sharelatex:4.0.1 "/sbin/my_init" 13 months ago Up 36 minutes 127.0.0.1:9986->80/tcp sharelatex
9ca9bc0e06f2 redis:6.2 "docker-entrypoint.s…" 13 months ago Up 36 minutes 6379/tcp redis
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.base.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.vars.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.redis.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.mongo.yml#L2
are the latest version and still mention `version`.
```bash
docker container ls
```
<details>
<summary>Output:</summary>
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3f36c187abc mongo:6.0 "docker-entrypoint.s…" 33 minutes ago Restarting (62) 36 seconds ago mongo
d4f2957ec807 sharelatex/sharelatex:4.0.1 "/sbin/my_init" 13 months ago Up 36 minutes 127.0.0.1:9986->80/tcp sharelatex
9ca9bc0e06f2 redis:6.2 "docker-entrypoint.s…" 13 months ago Up 36 minutes 6379/tcp redis
```
</details>
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Stopping 3/3
✔ Container sharelatex Stopped 60.4s
✔ Container redis Stopped 0.3s
✔ Container mongo Stopped 0.0s
bin/stop
Output:
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Stopping 3/0
✔ Container sharelatex Stopped 0.0s
✔ Container redis Stopped 0.0s
✔ Container mongo Stopped 0.0s
bin/up
Output:
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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.3s
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
sudo netstat -tulpn | grep 27017
does not return anything.
https://www.overleaf.com and https://www.overleaf.com/login were responding but not logging in and https://www.overleaf.com/projects
```bash
bin/stop
```
<details>
<summary>Output:</summary>
```
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Stopping 3/3
✔ Container sharelatex Stopped 60.4s
✔ Container redis Stopped 0.3s
✔ Container mongo Stopped 0.0s
```
</details>
```bash
bin/stop
```
<details>
<summary>Output:</summary>
```
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Stopping 3/0
✔ Container sharelatex Stopped 0.0s
✔ Container redis Stopped 0.0s
✔ Container mongo Stopped 0.0s
```
</details>
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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.3s
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
```
</details>
```bash
sudo netstat -tulpn | grep 27017
```
does not return anything.
Both [overleaf/issues](https://github.com/overleaf/overleaf/issues) and [overleaf/toolkit/issues](https://github.com/overleaf/toolkit/issues) do not return any issue for `MongoNetworkError`.
Maybe related to [the Stack Overflow question 46523321](https://stackoverflow.com/q/46523321).
REPOSITORY TAG IMAGE ID CREATED SIZE
mongo 6.0 ba023ee7a779 3 weeks ago 729MB
sharelatex/sharelatex with-texlive-full e1076fe59920 13 months ago 6.39GB
sharelatex/sharelatex 4.0.1 26c75dfb6485 14 months ago 2.72GB
redis 6.2 f2ed029e761a 14 months ago 113MB
mongo 4.4 afef20758bd3 16 months ago 431MB
postgres 14 75993dd36176 22 months ago 376MB
nginx 1.19-alpine a64a6e03b055 3 years ago 22.6MB
docker container ls
Output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3f36c187abc mongo:6.0 "docker-entrypoint.s…" 42 minutes ago Restarting (62) 47 seconds ago mongo
docker container rm d3f36c187abc
Error response from daemon: cannot remove container "/mongo": container is restarting: stop the container before removing or force remove
docker container rm -f d3f36c187abc
d3f36c187abc
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
If replace:
MONGO_IMAGE=mongo
MONGO_VERSION=6.0
with:
MONGO_IMAGE=mongo:4.4
then get:
bin/up
Output:
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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
Waiting for Mongo...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
```bash
docker image ls
```
<details>
<summary>Output:</summary>
```
REPOSITORY TAG IMAGE ID CREATED SIZE
mongo 6.0 ba023ee7a779 3 weeks ago 729MB
sharelatex/sharelatex with-texlive-full e1076fe59920 13 months ago 6.39GB
sharelatex/sharelatex 4.0.1 26c75dfb6485 14 months ago 2.72GB
redis 6.2 f2ed029e761a 14 months ago 113MB
mongo 4.4 afef20758bd3 16 months ago 431MB
postgres 14 75993dd36176 22 months ago 376MB
nginx 1.19-alpine a64a6e03b055 3 years ago 22.6MB
```
</details>
```bash
docker container ls
```
<details>
<summary>Output:</summary>
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3f36c187abc mongo:6.0 "docker-entrypoint.s…" 42 minutes ago Restarting (62) 47 seconds ago mongo
```
</details>
```bash
docker container rm d3f36c187abc
```
```
Error response from daemon: cannot remove container "/mongo": container is restarting: stop the container before removing or force remove
```
```bash
docker container rm -f d3f36c187abc
```
```
d3f36c187abc
```
```bash
docker container ls
```
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```
If replace:
```
MONGO_IMAGE=mongo
MONGO_VERSION=6.0
```
with:
```
MONGO_IMAGE=mongo:4.4
```
then get:
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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
Waiting for Mongo...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
```
</details>
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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/0
✔ Container mongo Running 0.0s
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
history| grep texlive
does not return anything interesting.
```bash
docker pull sharelatex/sharelatex:with-texlive-full:5.1.0
```
```
invalid reference format
```
```bash
docker pull sharelatex/sharelatex:with-texlive-full
```
```
Error response from daemon: manifest for sharelatex/sharelatex:with-texlive-full not found: manifest unknown: manifest unknown
```
> ```bash
> docker image pull [OPTIONS] NAME[:TAG|@DIGEST]
> ```
Source: https://docs.docker.com/reference/cli/docker/image/pull/
```bash
docker pull sharelatex/sharelatex:5.1.0
```
<details>
<summary>Output:</summary>
```
5.1.0: Pulling from sharelatex/sharelatex
7021d1b70935: Pull complete
467e34e18282: Pull complete
6db07a32b0d2: Pull complete
ffa8453078b5: Pull complete
333cd123c46f: Pull complete
152610ff4f2d: Pull complete
03bead01b2c4: Pull complete
c129587caee5: Pull complete
3f27657f5e57: Pull complete
1e4118e24567: Pull complete
1b9728c32a20: Pull complete
999a880f498b: Pull complete
c6d1cd8ba636: Pull complete
384c4f4749fb: Pull complete
9795cb718c39: Pull complete
c5370cb3b493: Pull complete
35b2bb5040e5: Pull complete
113ab03b0d35: Pull complete
0435a1430da5: Pull complete
96b96f87bb7d: Pull complete
b59c7e031077: Pull complete
9e4dd20a818a: Pull complete
9a37a58b373d: Pull complete
9bcc70a1a2b0: Pull complete
2265658b41cf: Pull complete
2083690e762b: Pull complete
c5d7a182cedc: Pull complete
de7cb47d2a6c: Pull complete
aad0b9663b66: Pull complete
cf266f65cf2f: Pull complete
2f5e5beee699: Pull complete
771718dcc04c: Pull complete
2ec448626ef7: Pull complete
7810574b420c: Pull complete
75dad03a77cd: Pull complete
e44d1b4bbcc3: Pull complete
b4b98855d9b5: Pull complete
Digest: sha256:790b655a04ecdc07ea53276d6e3c0e5bb8cd016676402c71ea73007d2f801015
Status: Downloaded newer image for sharelatex/sharelatex:5.1.0
docker.io/sharelatex/sharelatex:5.1.0
```
</details>
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
------------------- WARNING ----------------------
Deprecation warning: the mongo image is now split between MONGO_IMAGE
and MONGO_VERSION configurations. Please update your config/overleaf.rc as
your current configuration may stop working in future versions of the toolkit.
Example: MONGO_IMAGE=mongo
MONGO_VERSION=6.0
------------------- WARNING ----------------------
Initiating Mongo replica set...
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/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/0
✔ Container mongo Running 0.0s
WARN[0000] /home/benjamin/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/benjamin/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/benjamin/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/benjamin/overleaf-toolkit/lib/docker-compose.mongo.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
unable to get image 'sharelatex/sharelatex:with-texlive-full:5.1.0': Error response from daemon: invalid reference format
```
</details>
```bash
history | grep texlive
```
does not return anything interesting.
REPOSITORY TAG IMAGE ID CREATED SIZE
sharelatex/sharelatex 5.1.0 41a77f59f69e 7 days ago 2.07GB
mongo 6.0 ba023ee7a779 3 weeks ago 729MB
sharelatex/sharelatex with-texlive-full e1076fe59920 13 months ago 6.39GB
sharelatex/sharelatex 4.0.1 26c75dfb6485 14 months ago 2.72GB
redis 6.2 f2ed029e761a 14 months ago 113MB
mongo 4.4 afef20758bd3 16 months ago 431MB
postgres 14 75993dd36176 22 months ago 376MB
nginx 1.19-alpine a64a6e03b055 3 years ago 22.6MB
https://hub.docker.com/r/sharelatex/sharelatex
https://hub.docker.com/r/sharelatex/sharelatex/tags
https://hub.docker.com/u/sharelatex does not showcase any other interesting docker image.
```bash
docker image ls
```
<details>
<summary>Output:</summary>
```
REPOSITORY TAG IMAGE ID CREATED SIZE
sharelatex/sharelatex 5.1.0 41a77f59f69e 7 days ago 2.07GB
mongo 6.0 ba023ee7a779 3 weeks ago 729MB
sharelatex/sharelatex with-texlive-full e1076fe59920 13 months ago 6.39GB
sharelatex/sharelatex 4.0.1 26c75dfb6485 14 months ago 2.72GB
redis 6.2 f2ed029e761a 14 months ago 113MB
mongo 4.4 afef20758bd3 16 months ago 431MB
postgres 14 75993dd36176 22 months ago 376MB
nginx 1.19-alpine a64a6e03b055 3 years ago 22.6MB
```
</details>
<details>
<summary>Output:</summary>
```
mongo | {"t":{"$date":"2024-07-22T13:27:09.982+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn252","msg":"Connection ended","attr":{"remote":"127.0.0.1:50008","connectionId":252,"connectionCount":33}}
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 3/3
✔ Container sharelatex Stopped 60.4s
✔ Container mongo Stopped 1.5s
✔ Container redis Stopped 0.4s
canceled
```
</details>
Maybe it is a one minute timer to prevent users that the instance will shut down?
*minute* does not seem to return any interesting issue in both [overleaf/issues](https://github.com/overleaf/overleaf/issues) and [overleaf/toolkit/issues](https://github.com/overleaf/toolkit/issues).
```bash
env | grep -iE 'second|60|minute'
```
does not return anything.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Maybe related to Benjamin_Loison/moby/issues/2.
On OverClock3000.
Should measure with
time.Output:
Related to #7.
Output:
Output:
https://docs.docker.com/compose/install/linux/#install-using-the-repository
https://docs.docker.com/engine/install/debian/#install-using-the-repository
Output:
Bash script:
Output:
Output:
Output:
Output:
After replacing in
config/overleaf.rc:with:
Output:
overleaf/wiki/Release-Notes-5.x.x#redis-aof-persistence-enabled-by-default
overleaf/wiki/Data-and-Backups/#redis
https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/#how-i-can-switch-to-aof-if-im-currently-using-dumprdb-snapshots
Output:
After adding
REDIS_AOF_PERSISTENCE=truetoconfig/overleaf.rc:Output:
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.base.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.vars.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.redis.yml#L2
https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/lib/docker-compose.mongo.yml#L2
are the latest version and still mention
version.Output:
https://www.overleaf.com and https://www.overleaf.com/login were responding but not logging in and https://www.overleaf.com/projects
Output:
Output:
Output:
does not return anything.
Both overleaf/issues and overleaf/toolkit/issues do not return any issue for
MongoNetworkError.Maybe related to the Stack Overflow question 46523321.
Output:
Output:
If replace:
with:
then get:
Output:
Source: https://docs.docker.com/reference/cli/docker/image/pull/
Output:
Output:
does not return anything interesting.
https://hub.docker.com/r/sharelatex/sharelatex
https://hub.docker.com/r/sharelatex/sharelatex/tags
https://hub.docker.com/u/sharelatex does not showcase any other interesting docker image.
Output:
Output:
Maybe it is a one minute timer to prevent users that the instance will shut down?
minute does not seem to return any interesting issue in both overleaf/issues and overleaf/toolkit/issues.
does not return anything.
Following Benjamin_Loison/overleaf/issues/25#issuecomment-2112:
Output:
Maybe there is not this delay if there is nobody using the instance.
So
bin/upcan be instantly stopped thanks to ctrl + c while it does not seem possible withbin/startorbin/up -d.