```bash
./bin/upgrade
```
How to apply automatically new updates?
Unclear if `./bin/stop`, then `./bin/start` applied the update.
```bash
./bin/doctor
```
<details>
<summary>Output:</summary>
```
...
====== Configuration ======
- config/version
- status: present
- version: 5.0.6
...
```
</details>
seems to show that the update has been applied, see [toolkit/blob/74de8d668682bbea0269622be15872da5b5e2d23/CHANGELOG.md](https://github.com/overleaf/toolkit/blob/74de8d668682bbea0269622be15872da5b5e2d23/CHANGELOG.md).
Note that [overleaf](https://github.com/overleaf/overleaf) and [overleaf/toolkit](https://github.com/overleaf/toolkit) *Releases* and *Tags*, if any, are not interesting.
Checking for code update...
No code update available for download
New docker image version available (5.1.0)
Current image version is '5.0.6' (from config/version)
Upgrade image? [y/n] y
Upgrading config/version from 5.0.6 to 5.1.0
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.
docker services are up, stop them first?
Stop docker services? [y/n] y
Stopping docker services
------------------- 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
At this point, we recommend backing up your data before proceeding
!! WARNING: Only do this while the docker services are stopped!!
Proceed with the upgrade? [y/n] y
Backing up old version file to config/__old-version
Over-writing config/version with 5.1.0
Start docker services again? [y/n] y
Starting docker services
------------------- 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.
ERROR: no such image: sharelatex/sharelatex:with-texlive-full:5.1.0: invalid reference format
```bash
./bin/upgrade
```
<details>
<summary>Output:</summary>
```
Checking for code update...
No code update available for download
New docker image version available (5.1.0)
Current image version is '5.0.6' (from config/version)
Upgrade image? [y/n] y
Upgrading config/version from 5.0.6 to 5.1.0
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.
docker services are up, stop them first?
Stop docker services? [y/n] y
Stopping docker services
------------------- 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
At this point, we recommend backing up your data before proceeding
!! WARNING: Only do this while the docker services are stopped!!
Proceed with the upgrade? [y/n] y
Backing up old version file to config/__old-version
Over-writing config/version with 5.1.0
Start docker services again? [y/n] y
Starting docker services
------------------- 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.
ERROR: no such image: sharelatex/sharelatex:with-texlive-full:5.1.0: invalid reference format
```
</details>
REPOSITORY TAG IMAGE ID CREATED SIZE
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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```bash
docker image ls
```
<details>
<summary>Output:</summary>
```
REPOSITORY TAG IMAGE ID CREATED SIZE
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
```
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```
------------------- 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.
Starting redis ... done
Starting mongo ... done
Starting sharelatex ... done
```bash
./bin/start
```
<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.
Starting redis ... done
Starting mongo ... done
Starting sharelatex ... done
```
</details>
The single occurrence of *Powered by Overleaf*, according to `grep -r 'Powered by Overleaf'`, in both [overleaf](https://github.com/overleaf/overleaf) and [overleaf/toolkit](https://github.com/overleaf/toolkit), is: [overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/services/web/app/views/layout/footer-marketing.pug#L11-L14](https://github.com/overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/services/web/app/views/layout/footer-marketing.pug#L11-L14).
Should maybe try installing an instance temporarily in a virtual machine to check that.
Related to [OverClock3000/issues/1#issuecomment-2103769](https://codeberg.org/Benjamin_Loison/OverClock3000/issues/1#issuecomment-2103769).
Does not seem to mention then how to leverage following Docker images.
ls
CHANGELOG.md LICENSE README.md bin config data doc lib
bin/init
Copying config files to 'config/'
ls config/
overleaf.rc variables.env version
bin/up
Output:
Initiating Mongo replica set...
ERROR: Could not find Docker Compose.
sudo apt install -y docker-compose
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
The following NEW packages will be installed:
docker-compose python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 290 kB of archives.
After this operation, 1545 kB of additional disk space will be used.
Get:1 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-websocket all 1.2.3-1 [34.7 kB]
Get:2 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-docker all 5.0.3-1 [89.3 kB]
Get:3 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-dockerpty all 0.4.1-2 [11.1 kB]
Get:4 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-docopt all 0.6.2-4 [26.9 kB]
Get:5 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-dotenv all 0.19.2-1 [20.5 kB]
Get:6 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-texttable all 1.6.4-1 [11.4 kB]
Get:7 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 docker-compose all 1.29.2-1 [95.8 kB]
Fetched 290 kB in 0s (1827 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package python3-websocket.
(Reading database ... 255985 files and directories currently installed.)
Preparing to unpack .../0-python3-websocket_1.2.3-1_all.deb ...
Unpacking python3-websocket (1.2.3-1) ...
Selecting previously unselected package python3-docker.
Preparing to unpack .../1-python3-docker_5.0.3-1_all.deb ...
Unpacking python3-docker (5.0.3-1) ...
Selecting previously unselected package python3-dockerpty.
Preparing to unpack .../2-python3-dockerpty_0.4.1-2_all.deb ...
Unpacking python3-dockerpty (0.4.1-2) ...
Selecting previously unselected package python3-docopt.
Preparing to unpack .../3-python3-docopt_0.6.2-4_all.deb ...
Unpacking python3-docopt (0.6.2-4) ...
Selecting previously unselected package python3-dotenv.
Preparing to unpack .../4-python3-dotenv_0.19.2-1_all.deb ...
Unpacking python3-dotenv (0.19.2-1) ...
Selecting previously unselected package python3-texttable.
Preparing to unpack .../5-python3-texttable_1.6.4-1_all.deb ...
Unpacking python3-texttable (1.6.4-1) ...
Selecting previously unselected package docker-compose.
Preparing to unpack .../6-docker-compose_1.29.2-1_all.deb ...
Unpacking docker-compose (1.29.2-1) ...
Setting up python3-dotenv (0.19.2-1) ...
Setting up python3-texttable (1.6.4-1) ...
Setting up python3-docopt (0.6.2-4) ...
Setting up python3-websocket (1.2.3-1) ...
Setting up python3-dockerpty (0.4.1-2) ...
Setting up python3-docker (5.0.3-1) ...
Setting up docker-compose (1.29.2-1) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
bin/up
Output:
Initiating Mongo replica set...
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.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 33, in <module>
sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
return get_project(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
client = get_client(
File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
client = docker_client(
File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
Same issue if run again the command.
Note docker-compose all 1.29.2-1 in the previous command output.
sudo apt purge -y docker-compose
Output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
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, 510 kB disk space will be freed.
(Reading database ... 256244 files and directories currently installed.)
Removing docker-compose (1.29.2-1) ...
Processing triggers for man-db (2.10.2-1) ...
sudo apt autoremove -y
From July 2023 Compose V1 stopped receiving updates.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
curl is already the newest version (7.81.0-1ubuntu1.16).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
docker-compose-plugin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 61.4 MB of additional disk space will be used.
Get:1 https://download.docker.com/linux/ubuntu jammy/stable arm64 docker-compose-plugin arm64 2.28.1-1~ubuntu.22.04~jammy [10.8 MB]
Fetched 10.8 MB in 0s (50.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package docker-compose-plugin.
(Reading database ... 255985 files and directories currently installed.)
Preparing to unpack .../docker-compose-plugin_2.28.1-1~ubuntu.22.04~jammy_arm64.deb ...
Unpacking docker-compose-plugin (2.28.1-1~ubuntu.22.04~jammy) ...
Setting up docker-compose-plugin (2.28.1-1~ubuntu.22.04~jammy) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
docker compose version
Docker Compose version v2.28.1
bin/up
Output:
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 9/9
✔ mongo Pulled 10.8s
✔ 4ce000a43472 Pull complete 2.8s
✔ 31884fd206c8 Pull complete 2.9s
✔ 85a322bad11a Pull complete 3.0s
✔ bfd52020136a Pull complete 3.0s
✔ feb892d238d4 Pull complete 3.1s
✔ 89c63a911dca Pull complete 3.1s
✔ 0e19bb752c22 Pull complete 9.1s
✔ 6cb9eecfcb3f Pull complete 9.1s
[+] Running 2/2
✔ Network overleaf_default Created 0.1s
✔ Container mongo Started 5.8s
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
Please configure ALL_TEX_LIVE_DOCKER_IMAGES in /home/ubuntu/overleaf/overleaf-toolkit/config/variables.env
You can read more about configuring Sandboxed Compiles in our documentation:
https://github.com/overleaf/overleaf/wiki/Server-Pro:-sandboxed-compiles#changing-the-texlive-image
to overleaf-toolkit/config/variables.env results in:
bin/up
Output:
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 1/0
✔ Container mongo Running 0.0s
Pulling TeX Live images...
- quay.io/sharelatex/texlive-full:2023.1 download started (may take some time)
Error response from daemon: unauthorized: access to the requested resource is not authorized
Note that there is a Server Pro mention above ALL_TEX_LIVE_DOCKER_IMAGES.
Username: benjamin_loison
Password:
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 1/0
✔ Container mongo Running 0.0s
Pulling TeX Live images...
- quay.io/sharelatex/texlive-full:2023.1 download started (may take some time)
Error response from daemon: unauthorized: access to the requested resource is not authorized
[overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#keeping-up-to-date](https://github.com/overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#keeping-up-to-date) is a mailing list advertisement.
[overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#upgrading](https://github.com/overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#upgrading)
[overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#installation](https://github.com/overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#installation)
[overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/README.md#getting-started](https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/README.md#getting-started)
```bash
git clone --depth 1 https://github.com/overleaf/toolkit.git overleaf-toolkit/
```
<details>
<summary>Output:</summary>
```
Cloning into './overleaf-toolkit'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 66 (delta 7), reused 22 (delta 4), pack-reused 0
Receiving objects: 100% (66/66), 422.99 KiB | 5.87 MiB/s, done.
Resolving deltas: 100% (7/7), done.
```
</details>
[overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/quick-start-guide.md](https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/quick-start-guide.md)
```bash
cd overleaf-toolkit/
```
Does not seem to mention then how to leverage following Docker images.
```bash
ls
```
```
CHANGELOG.md LICENSE README.md bin config data doc lib
```
```bash
bin/init
```
```
Copying config files to 'config/'
```
```bash
ls config/
```
```
overleaf.rc variables.env version
```
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
ERROR: Could not find Docker Compose.
```
</details>
```bash
sudo apt install -y docker-compose
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
The following NEW packages will be installed:
docker-compose python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 290 kB of archives.
After this operation, 1545 kB of additional disk space will be used.
Get:1 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-websocket all 1.2.3-1 [34.7 kB]
Get:2 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-docker all 5.0.3-1 [89.3 kB]
Get:3 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-dockerpty all 0.4.1-2 [11.1 kB]
Get:4 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-docopt all 0.6.2-4 [26.9 kB]
Get:5 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-dotenv all 0.19.2-1 [20.5 kB]
Get:6 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 python3-texttable all 1.6.4-1 [11.4 kB]
Get:7 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 docker-compose all 1.29.2-1 [95.8 kB]
Fetched 290 kB in 0s (1827 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package python3-websocket.
(Reading database ... 255985 files and directories currently installed.)
Preparing to unpack .../0-python3-websocket_1.2.3-1_all.deb ...
Unpacking python3-websocket (1.2.3-1) ...
Selecting previously unselected package python3-docker.
Preparing to unpack .../1-python3-docker_5.0.3-1_all.deb ...
Unpacking python3-docker (5.0.3-1) ...
Selecting previously unselected package python3-dockerpty.
Preparing to unpack .../2-python3-dockerpty_0.4.1-2_all.deb ...
Unpacking python3-dockerpty (0.4.1-2) ...
Selecting previously unselected package python3-docopt.
Preparing to unpack .../3-python3-docopt_0.6.2-4_all.deb ...
Unpacking python3-docopt (0.6.2-4) ...
Selecting previously unselected package python3-dotenv.
Preparing to unpack .../4-python3-dotenv_0.19.2-1_all.deb ...
Unpacking python3-dotenv (0.19.2-1) ...
Selecting previously unselected package python3-texttable.
Preparing to unpack .../5-python3-texttable_1.6.4-1_all.deb ...
Unpacking python3-texttable (1.6.4-1) ...
Selecting previously unselected package docker-compose.
Preparing to unpack .../6-docker-compose_1.29.2-1_all.deb ...
Unpacking docker-compose (1.29.2-1) ...
Setting up python3-dotenv (0.19.2-1) ...
Setting up python3-texttable (1.6.4-1) ...
Setting up python3-docopt (0.6.2-4) ...
Setting up python3-websocket (1.2.3-1) ...
Setting up python3-dockerpty (0.4.1-2) ...
Setting up python3-docker (5.0.3-1) ...
Setting up docker-compose (1.29.2-1) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
</details>
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
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.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 33, in <module>
sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
return get_project(
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
client = get_client(
File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
client = docker_client(
File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
```
</details>
Same issue if run again the command.
Note `docker-compose all 1.29.2-1` in the previous command output.
```bash
sudo apt purge -y docker-compose
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
python3-docker python3-dockerpty python3-docopt python3-dotenv python3-texttable python3-websocket
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, 510 kB disk space will be freed.
(Reading database ... 256244 files and directories currently installed.)
Removing docker-compose (1.29.2-1) ...
Processing triggers for man-db (2.10.2-1) ...
```
</details>
```bash
sudo apt autoremove -y
```
> From July 2023 Compose V1 stopped receiving updates.
Source: https://docs.docker.com/compose/migrate/
https://docs.docker.com/compose/migrate/#how-do-i-switch-to-compose-v2
https://docs.docker.com/compose/install/linux/#install-using-the-repository
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
```bash
sudo apt install -y ca-certificates curl
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
curl is already the newest version (7.81.0-1ubuntu1.16).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
```
</details>
<details>
<summary>Bash script:</summary>
```bash
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
```
</details>
<details>
<summary>Output:</summary>
```
Get:1 https://download.docker.com/linux/ubuntu jammy InRelease [48.8 kB]
Hit:2 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:4 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:5 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Get:6 https://download.docker.com/linux/ubuntu jammy/stable arm64 Packages [35.2 kB]
Hit:7 https://ppa.launchpadcontent.net/ondrej/apache2/ubuntu jammy InRelease
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:9 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7553 B]
Get:10 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7456 B]
Get:11 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease [7450 B]
Get:12 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7449 B]
Fetched 114 kB in 6s (20.6 kB/s)
Reading package lists... Done
```
</details>
```bash
sudo apt install docker-compose-plugin
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
docker-compose-plugin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 61.4 MB of additional disk space will be used.
Get:1 https://download.docker.com/linux/ubuntu jammy/stable arm64 docker-compose-plugin arm64 2.28.1-1~ubuntu.22.04~jammy [10.8 MB]
Fetched 10.8 MB in 0s (50.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package docker-compose-plugin.
(Reading database ... 255985 files and directories currently installed.)
Preparing to unpack .../docker-compose-plugin_2.28.1-1~ubuntu.22.04~jammy_arm64.deb ...
Unpacking docker-compose-plugin (2.28.1-1~ubuntu.22.04~jammy) ...
Setting up docker-compose-plugin (2.28.1-1~ubuntu.22.04~jammy) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
</details>
```bash
docker compose version
```
```
Docker Compose version v2.28.1
```
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 9/9
✔ mongo Pulled 10.8s
✔ 4ce000a43472 Pull complete 2.8s
✔ 31884fd206c8 Pull complete 2.9s
✔ 85a322bad11a Pull complete 3.0s
✔ bfd52020136a Pull complete 3.0s
✔ feb892d238d4 Pull complete 3.1s
✔ 89c63a911dca Pull complete 3.1s
✔ 0e19bb752c22 Pull complete 9.1s
✔ 6cb9eecfcb3f Pull complete 9.1s
[+] Running 2/2
✔ Network overleaf_default Created 0.1s
✔ Container mongo Started 5.8s
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Waiting for Mongo...
Please configure ALL_TEX_LIVE_DOCKER_IMAGES in /home/ubuntu/overleaf/overleaf-toolkit/config/variables.env
You can read more about configuring Sandboxed Compiles in our documentation:
https://github.com/overleaf/overleaf/wiki/Server-Pro:-sandboxed-compiles#changing-the-texlive-image
```
</details>
Adding:
```
ALL_TEX_LIVE_DOCKER_IMAGES=quay.io/sharelatex/texlive-full:2023.1
```
to `overleaf-toolkit/config/variables.env` results in:
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 1/0
✔ Container mongo Running 0.0s
Pulling TeX Live images...
- quay.io/sharelatex/texlive-full:2023.1 download started (may take some time)
Error response from daemon: unauthorized: access to the requested resource is not authorized
```
</details>
Note that there is a *Server Pro* mention above `ALL_TEX_LIVE_DOCKER_IMAGES`.
DuckDuckGo and Google only returns [overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/bin/up#L57](https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/bin/up#L57) for `"Please configure ALL_TEX_LIVE_DOCKER_IMAGES in"`...
```bash
docker login quay.io
```
<details>
<summary>Output:</summary>
```
Username: benjamin_loison
Password:
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
```
</details>
Source: https://quay.io/user/benjamin_loison/?tab=settings
```bash
bin/up
```
<details>
<summary>Output:</summary>
```
Initiating Mongo replica set...
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.base.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.vars.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.redis.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.mongo.yml: `version` is obsolete
WARN[0000] /home/ubuntu/overleaf/overleaf-toolkit/lib/docker-compose.sibling-containers.yml: `version` is obsolete
[+] Running 1/0
✔ Container mongo Running 0.0s
Pulling TeX Live images...
- quay.io/sharelatex/texlive-full:2023.1 download started (may take some time)
Error response from daemon: unauthorized: access to the requested resource is not authorized
```
</details>
[overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#overleaf-docker-image](https://github.com/overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#overleaf-docker-image)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
bridge-utils containerd pigz runc ubuntu-fan
Suggested packages:
ifupdown aufs-tools cgroupfs-mount | cgroup-lite debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
bridge-utils containerd docker.io pigz runc ubuntu-fan
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.2 MB of archives.
After this operation, 231 MB of additional disk space will be used.
Get:1 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 pigz arm64 2.6-1 [55.7 kB]
Get:2 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/main arm64 bridge-utils arm64 1.7-1ubuntu3 [34.4 kB]
Get:3 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 runc arm64 1.1.12-0ubuntu2~22.04.1 [7816 kB]
Get:4 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 containerd arm64 1.7.12-0ubuntu2~22.04.1 [27.1 MB]
Get:5 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 docker.io arm64 24.0.7-0ubuntu2~22.04.1 [21.2 MB]
Get:6 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 ubuntu-fan all 0.12.16 [35.2 kB]
Fetched 56.2 MB in 55s (1021 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package pigz.
(Reading database ... 255649 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.6-1_arm64.deb ...
Unpacking pigz (2.6-1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../1-bridge-utils_1.7-1ubuntu3_arm64.deb ...
Unpacking bridge-utils (1.7-1ubuntu3) ...
Selecting previously unselected package runc.
Preparing to unpack .../2-runc_1.1.12-0ubuntu2~22.04.1_arm64.deb ...
Unpacking runc (1.1.12-0ubuntu2~22.04.1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../3-containerd_1.7.12-0ubuntu2~22.04.1_arm64.deb ...
Unpacking containerd (1.7.12-0ubuntu2~22.04.1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../4-docker.io_24.0.7-0ubuntu2~22.04.1_arm64.deb ...
Unpacking docker.io (24.0.7-0ubuntu2~22.04.1) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../5-ubuntu-fan_0.12.16_all.deb ...
Unpacking ubuntu-fan (0.12.16) ...
Setting up runc (1.1.12-0ubuntu2~22.04.1) ...
Setting up bridge-utils (1.7-1ubuntu3) ...
Setting up pigz (2.6-1) ...
Setting up containerd (1.7.12-0ubuntu2~22.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up ubuntu-fan (0.12.16) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /lib/systemd/system/ubuntu-fan.service.
Setting up docker.io (24.0.7-0ubuntu2~22.04.1) ...
Adding group `docker' (GID 143) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
make build-base
Output:
cp .dockerignore ../
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--file Dockerfile-base \
--pull \
--cache-from sharelatex/sharelatex-base \
--cache-from sharelatex/sharelatex-base:main \
--tag sharelatex/sharelatex-base:main-710cacad2dc8921e1fcfd306c54843266226be89 \
--tag sharelatex/sharelatex-base:main \
../
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%22BUILDKIT_INLINE_CACHE%22%3A%221%22%7D&cachefrom=%5B%22sharelatex%2Fsharelatex-base%22%2C%22sharelatex%2Fsharelatex-base%3Amain%22%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=server-ce%2FDockerfile-base&labels=%7B%7D&memory=0&memswap=0&networkmode=default&pull=1&rm=1&shmsize=0&t=sharelatex%2Fsharelatex-base%3Amain-710cacad2dc8921e1fcfd306c54843266226be89&t=sharelatex%2Fsharelatex-base%3Amain&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied
make: *** [Makefile:17: build-base] Error 1
REPOSITORY TAG IMAGE ID CREATED SIZE
sharelatex/sharelatex main 08175e420961 6 minutes ago 2GB
sharelatex/sharelatex main-710cacad2dc8921e1fcfd306c54843266226be89 08175e420961 6 minutes ago 2GB
sharelatex/sharelatex-base main 52529b41f760 15 minutes ago 1.49GB
sharelatex/sharelatex-base main-710cacad2dc8921e1fcfd306c54843266226be89 52529b41f760 15 minutes ago 1.49GB
phusion/baseimage jammy-1.0.4 2d89d47a9de6 3 months ago 228MB
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
On Oracle instance `instance-20230827-2235` Ubuntu 22.04:
```bash
git clone --depth 1 https://github.com/overleaf/overleaf
```
<details>
<summary>Output:</summary>
```
Cloning into 'overleaf'...
remote: Enumerating objects: 6457, done.
remote: Counting objects: 100% (6457/6457), done.
remote: Compressing objects: 100% (5424/5424), done.
remote: Total 6457 (delta 721), reused 4396 (delta 577), pack-reused 0
Receiving objects: 100% (6457/6457), 44.90 MiB | 22.24 MiB/s, done.
Resolving deltas: 100% (721/721), done.
```
</details>
```bash
cd overleaf/server-ce/
make build-base
```
<details>
<summary>Output:</summary>
```
cp .dockerignore ../
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--file Dockerfile-base \
--pull \
--cache-from sharelatex/sharelatex-base \
--cache-from sharelatex/sharelatex-base:main \
--tag sharelatex/sharelatex-base:main-710cacad2dc8921e1fcfd306c54843266226be89 \
--tag sharelatex/sharelatex-base:main \
../
make: docker: No such file or directory
make: *** [Makefile:17: build-base] Error 127
```
</details>
```bash
sudo apt install -y docker.io
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
bridge-utils containerd pigz runc ubuntu-fan
Suggested packages:
ifupdown aufs-tools cgroupfs-mount | cgroup-lite debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
bridge-utils containerd docker.io pigz runc ubuntu-fan
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.2 MB of archives.
After this operation, 231 MB of additional disk space will be used.
Get:1 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 pigz arm64 2.6-1 [55.7 kB]
Get:2 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/main arm64 bridge-utils arm64 1.7-1ubuntu3 [34.4 kB]
Get:3 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 runc arm64 1.1.12-0ubuntu2~22.04.1 [7816 kB]
Get:4 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 containerd arm64 1.7.12-0ubuntu2~22.04.1 [27.1 MB]
Get:5 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 docker.io arm64 24.0.7-0ubuntu2~22.04.1 [21.2 MB]
Get:6 http://eu-marseille-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy/universe arm64 ubuntu-fan all 0.12.16 [35.2 kB]
Fetched 56.2 MB in 55s (1021 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package pigz.
(Reading database ... 255649 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.6-1_arm64.deb ...
Unpacking pigz (2.6-1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../1-bridge-utils_1.7-1ubuntu3_arm64.deb ...
Unpacking bridge-utils (1.7-1ubuntu3) ...
Selecting previously unselected package runc.
Preparing to unpack .../2-runc_1.1.12-0ubuntu2~22.04.1_arm64.deb ...
Unpacking runc (1.1.12-0ubuntu2~22.04.1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../3-containerd_1.7.12-0ubuntu2~22.04.1_arm64.deb ...
Unpacking containerd (1.7.12-0ubuntu2~22.04.1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../4-docker.io_24.0.7-0ubuntu2~22.04.1_arm64.deb ...
Unpacking docker.io (24.0.7-0ubuntu2~22.04.1) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../5-ubuntu-fan_0.12.16_all.deb ...
Unpacking ubuntu-fan (0.12.16) ...
Setting up runc (1.1.12-0ubuntu2~22.04.1) ...
Setting up bridge-utils (1.7-1ubuntu3) ...
Setting up pigz (2.6-1) ...
Setting up containerd (1.7.12-0ubuntu2~22.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
Setting up ubuntu-fan (0.12.16) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /lib/systemd/system/ubuntu-fan.service.
Setting up docker.io (24.0.7-0ubuntu2~22.04.1) ...
Adding group `docker' (GID 143) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
```
</details>
```bash
make build-base
```
<details>
<summary>Output:</summary>
```
cp .dockerignore ../
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--file Dockerfile-base \
--pull \
--cache-from sharelatex/sharelatex-base \
--cache-from sharelatex/sharelatex-base:main \
--tag sharelatex/sharelatex-base:main-710cacad2dc8921e1fcfd306c54843266226be89 \
--tag sharelatex/sharelatex-base:main \
../
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%22BUILDKIT_INLINE_CACHE%22%3A%221%22%7D&cachefrom=%5B%22sharelatex%2Fsharelatex-base%22%2C%22sharelatex%2Fsharelatex-base%3Amain%22%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=server-ce%2FDockerfile-base&labels=%7B%7D&memory=0&memswap=0&networkmode=default&pull=1&rm=1&shmsize=0&t=sharelatex%2Fsharelatex-base%3Amain-710cacad2dc8921e1fcfd306c54843266226be89&t=sharelatex%2Fsharelatex-base%3Amain&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied
make: *** [Makefile:17: build-base] Error 1
```
</details>
```bash
sudo usermod -aG docker $USER
```
Source: [the Stack Overflow answer 48957722](https://stackoverflow.com/a/48957722)
still have the same error if execute `make build-base`.
```bash
newgrp docker
```
solves this issue:
```bash
make build
```
[output.txt](https://gitea.lemnoslife.com/attachments/9a83acbc-c4f8-46b5-a9b2-b13a1ba5760f)
```bash
make build-community
```
[output.txt](https://gitea.lemnoslife.com/attachments/16370977-bbe7-42ac-ad8c-7a2504e59646)
```bash
docker image ls
```
<details>
<summary>Output:</summary>
```
REPOSITORY TAG IMAGE ID CREATED SIZE
sharelatex/sharelatex main 08175e420961 6 minutes ago 2GB
sharelatex/sharelatex main-710cacad2dc8921e1fcfd306c54843266226be89 08175e420961 6 minutes ago 2GB
sharelatex/sharelatex-base main 52529b41f760 15 minutes ago 1.49GB
sharelatex/sharelatex-base main-710cacad2dc8921e1fcfd306c54843266226be89 52529b41f760 15 minutes ago 1.49GB
phusion/baseimage jammy-1.0.4 2d89d47a9de6 3 months ago 228MB
```
</details>
```bash
docker container ls
```
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```
Searching *host own Overleaf instance* on DuckDuckGo and Google.
https://blog.felixviola.de/overleaf-ce-self-host-your-own-latex-server-tutorial/ does not help.
So should restrain search to recent results.
https://ulysseszh.github.io/guide/2023/09/29/self-host-overleaf.html does not seem interesting too.
I should investigate the wiki.
[overleaf/wiki/Home/7ed4c29753eb6246369b5744a6618a5a05b09e9a#setup](https://github.com/overleaf/overleaf/wiki/Home/7ed4c29753eb6246369b5744a6618a5a05b09e9a#setup)
[overleaf/wiki/Quick-Start-Guide/a0d217c13abc2db095f461927dd2ab9037bc5e11](https://github.com/overleaf/overleaf/wiki/Quick-Start-Guide/a0d217c13abc2db095f461927dd2ab9037bc5e11)
[overleaf/wiki/Server-Pro:-Setup/744d82fa3be7b540798a11a64b0f9a0d84134558](https://github.com/overleaf/overleaf/wiki/Server-Pro:-Setup/744d82fa3be7b540798a11a64b0f9a0d84134558)
------------------- 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 ----------------------
service "sharelatex" is not running
bin/start
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 ----------------------
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 3/3
✔ Container redis Started 0.5s
✔ Container mongo Healthy 0.5s
✔ Container sharelatex Started
bin/shell
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 ----------------------
root@d4f2957ec807:/overleaf#
tlmgr --version
Output:
tlmgr revision 66798 (2023-04-08 02:15:21 +0200)
tlmgr using installation: /usr/local/texlive/2023
TeX Live (https://tug.org/texlive) version 2023
------------------- 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
------------------- 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-with-texlive-full': Error response from daemon: invalid reference format
[overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/upgrading.md](https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/upgrading.md)
<details>
<summary><code>config/version</code>:</summary>
```
5.1.0
```
</details>
[overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/ce-upgrading-texlive.md](https://github.com/overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/ce-upgrading-texlive.md)
```bash
bin/shell
```
<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 ----------------------
service "sharelatex" is not running
```
</details>
```bash
bin/start
```
<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 ----------------------
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 3/3
✔ Container redis Started 0.5s
✔ Container mongo Healthy 0.5s
✔ Container sharelatex Started
```
</details>
```bash
bin/shell
```
<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 ----------------------
root@d4f2957ec807:/overleaf#
```
</details>
```bash
tlmgr --version
```
<details>
<summary>Output:</summary>
```
tlmgr revision 66798 (2023-04-08 02:15:21 +0200)
tlmgr using installation: /usr/local/texlive/2023
TeX Live (https://tug.org/texlive) version 2023
```
</details>
```bash
tlmgr install scheme-full
```
<details>
<summary>Output:</summary>
```
tlmgr: package repository https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet (not verified: valid signature with expired key)
tlmgr install: package already present: scheme-full
```
</details>
```bash
tlmgr path add
```
```bash
docker commit sharelatex sharelatex/sharelatex:5.1.0-with-texlive-full
```
```
sha256:ee4677bbd041878158227470f823b91979a46224d8242cd21a79d94f6e444d3d
```
Related to [Benjamin_Loison/moby/issues/7](https://codeberg.org/Benjamin_Loison/moby/issues/7).
```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>
<details>
<summary>Bash script:</summary>
```bash
echo 5.1.0-with-texlive-full > config/version
bin/up
```
</details>
<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-with-texlive-full': 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
[+] Running 3/3
✔ Container mongo Running 0.0s
✔ Container redis Recreated 1.0s
✔ Container sharelatex Recreated 65.0s
Attaching to mongo, redis, sharelatex
redis | 1:C 22 Jul 2024 13:26:31.769 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
...
```bash
grep -r 'with-texlive-full' --exclude-dir=backup --exclude={CHANGELOG.md,__old*} 2> /dev/null
```
<details>
<summary>Output:</summary>
```
lib/shared-functions.sh: if [[ ! "$IMAGE_VERSION" =~ ^([0-9]+)\.([0-9]+)\.([0-9])+(-RC[0-9]*)?(-with-texlive-full)?$ ]]; then
doc/ce-upgrading-texlive.md:$ docker commit sharelatex sharelatex/sharelatex:5.0.3-with-texlive-full
doc/ce-upgrading-texlive.md:$ echo 5.0.3-with-texlive-full > config/version
config/overleaf.rc:OVERLEAF_IMAGE_NAME=sharelatex/sharelatex:with-texlive-full
config/version:5.1.0-with-texlive-full
bin/upgrade: if [[ ! "$SEED_IMAGE_VERSION" =~ ^([0-9]+)\.([0-9]+)\.[0-9]+(-RC[0-9]*)?(-with-texlive-full)?$ ]]; then
bin/upgrade: echo "* Remove the image: 'docker rm sharelatex/sharelatex:with-texlive-full'"
```
</details>
Replace in `config/overleaf.rc`:
```
OVERLEAF_IMAGE_NAME=sharelatex/sharelatex:with-texlive-full
```
with:
```
OVERLEAF_IMAGE_NAME=sharelatex/sharelatex
```
```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
[+] Running 3/3
✔ Container mongo Running 0.0s
✔ Container redis Recreated 1.0s
✔ Container sharelatex Recreated 65.0s
Attaching to mongo, redis, sharelatex
redis | 1:C 22 Jul 2024 13:26:31.769 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
...
```
</details>
then https://overleaf.lemnoslife.com works back as usual.
------------------- 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 ----------------------
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 3/3
✔ Container mongo Healthy 10.9s
✔ Container redis Started 0.3s
✔ Container sharelatex Started
If replace in config/overleaf.rc:
MONGO_IMAGE=mongo:4.4
with
MONGO_IMAGE=mongo
MONGO_VERSION=4.4
then get:
bin/start
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
[+] Running 3/3
✔ Container mongo Healthy 10.9s
✔ Container redis Started 0.4s
✔ Container sharelatex Started
```bash
bin/start
```
<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 ----------------------
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 3/3
✔ Container mongo Healthy 10.9s
✔ Container redis Started 0.3s
✔ Container sharelatex Started
```
</details>
If replace in `config/overleaf.rc`:
```
MONGO_IMAGE=mongo:4.4
```
with
```
MONGO_IMAGE=mongo
MONGO_VERSION=4.4
```
then get:
```bash
bin/start
```
<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
[+] Running 3/3
✔ Container mongo Healthy 10.9s
✔ Container redis Started 0.4s
✔ Container sharelatex Started
```
</details>
and https://overleaf.lemnoslife.com works fine.
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.
As https://overleaf.lemnoslife.com/project mentions © 2023 Powered by Overleaf.
+61
How to apply automatically new updates?
Unclear if
./bin/stop, then./bin/startapplied the update.Output:
seems to show that the update has been applied, see toolkit/blob/74de8d668682bbea0269622be15872da5b5e2d23/CHANGELOG.md.
Note that overleaf and overleaf/toolkit Releases and Tags, if any, are not interesting.
Output:
Related to Benjamin_Loison/moby/issues/2 and #22.
Output:
Output:
Output:
Output:
Source: dc7c1559b2894ec9ff2df8120480141a24a16265/CHANGELOG.md#2024-07-17
So it seems up-to-date but I still notice the same copyright.
The single occurrence of Powered by Overleaf, according to
grep -r 'Powered by Overleaf', in both overleaf and overleaf/toolkit, is: overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/services/web/app/views/layout/footer-marketing.pug#L11-L14.Should maybe try installing an instance temporarily in a virtual machine to check that.
Related to OverClock3000/issues/1#issuecomment-2103769.
overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#keeping-up-to-date is a mailing list advertisement.
overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#upgrading
overleaf/overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#installation
overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/README.md#getting-started
Output:
overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/quick-start-guide.md
Does not seem to mention then how to leverage following Docker images.
Output:
Output:
Output:
Same issue if run again the command.
Note
docker-compose all 1.29.2-1in the previous command output.Output:
Source: https://docs.docker.com/compose/migrate/
https://docs.docker.com/compose/migrate/#how-do-i-switch-to-compose-v2
https://docs.docker.com/compose/install/linux/#install-using-the-repository
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
Output:
Bash script:
Output:
Output:
Output:
Adding:
to
overleaf-toolkit/config/variables.envresults in:Output:
Note that there is a Server Pro mention above
ALL_TEX_LIVE_DOCKER_IMAGES.DuckDuckGo and Google only returns overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/bin/up#L57 for
"Please configure ALL_TEX_LIVE_DOCKER_IMAGES in"...Output:
Source: https://quay.io/user/benjamin_loison/?tab=settings
Output:
overleaf/blob/710cacad2dc8921e1fcfd306c54843266226be89/README.md#overleaf-docker-image
On Oracle instance
instance-20230827-2235Ubuntu 22.04:Output:
Output:
Output:
Output:
Source: the Stack Overflow answer 48957722
still have the same error if execute
make build-base.solves this issue:
output.txt
output.txt
Output:
Output:
Source: the Stack Overflow answer 18498313
http://129.151.245.17
Searching host own Overleaf instance on DuckDuckGo and Google.
https://blog.felixviola.de/overleaf-ce-self-host-your-own-latex-server-tutorial/ does not help.
So should restrain search to recent results.
https://ulysseszh.github.io/guide/2023/09/29/self-host-overleaf.html does not seem interesting too.
I should investigate the wiki.
overleaf/wiki/Home/7ed4c29753eb6246369b5744a6618a5a05b09e9a#setup
overleaf/wiki/Quick-Start-Guide/a0d217c13abc2db095f461927dd2ab9037bc5e11
overleaf/wiki/Server-Pro:-Setup/744d82fa3be7b540798a11a64b0f9a0d84134558
Can try to install the Overleaf version that I used to install successfully.
Maybe should consider last branch or tag for a community version?
overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/upgrading.md
config/version:overleaf/toolkit/blob/a61d9ebff51e3d2acddc75c00cde48a02b4fd496/doc/ce-upgrading-texlive.md
Output:
Output:
Output:
Output:
Output:
Related to Benjamin_Loison/moby/issues/7.
Output:
Bash script:
Output:
Output:
Replace in
config/overleaf.rc:with:
Output:
then https://overleaf.lemnoslife.com works back as usual.
Output:
If replace in
config/overleaf.rc:with
then get:
Output:
and https://overleaf.lemnoslife.com works fine.
Note that still face 2023 copyright.
Note that there is:
in
config/variables.env.Tracked at Improve_websites_thanks_to_open_source/issues/1128.
See Benjamin_Loison/moby/issues/10#issuecomment-7976219.
Output:
Output:
weird that
latestis older than 5.3.1, but maybe they are identical.See Benjamin_Loison/moby/issues/20.