Removed all docker containers.
Code:
<user>@EspoCRM:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Code:
<user>@EspoCRM:~$ sudo ls /var/www/ espocrm-backup html
Code:
<user>@EspoCRM:~$ sudo lsof -n -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dhclient 675 root 7u IPv4 29161 0t0 UDP *:bootpc sshd 47280 root 3u IPv4 900997 0t0 TCP *:ssh (LISTEN) sshd 47280 root 4u IPv6 900999 0t0 TCP *:ssh (LISTEN) sshd 2178904 root 4u IPv4 40572299 0t0 TCP 192.168.22.213:ssh->192.168.22.168:60003 (ESTABLISHED) sshd 2178910 <user> 4u IPv4 40572299 0t0 TCP 192.168.22.213:ssh->192.168.22.168:60003 (ESTABLISHED)
Code:
<user>@EspoCRM:~$ wget https://github.com/espocrm/espocrm-installer/releases/latest/download/install.sh --2024-05-13 08:10:24-- https://github.com/espocrm/espocrm-installer/releases/latest/download/install.sh Resolving github.com (github.com)... 140.82.112.3 Connecting to github.com (github.com)|140.82.112.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github.com/espocrm/espocrm-installer/releases/download/2.4.0/install.sh [following] --2024-05-13 08:10:25-- https://github.com/espocrm/espocrm-installer/releases/download/2.4.0/install.sh Reusing existing connection to github.com:443. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/372446601/fa7b0c45-b59a-475d-976e-ce7b239b3277?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240513%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240513T131025Z&X-Amz-Expires=300&X-Amz-Signature=9edf7ee07bca996cd5e8208c0a990e64d5106db4 a6e37a92214ba9a1b352c7d9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372 446601&response-content-disposition=attachment%3B%20filename%3Dinstall.sh& response-content-type=application%2Foctet-stream [following] --2024-05-13 08:10:25-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/372446601/fa7b0c45-b59a-475d-976e-ce7b239b3277?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240513%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240513T131025Z&X-Amz-Expires=300&X-Amz-Signature=9edf7ee07bca996cd5e8208c0a990e64d5106db4 a6e37a92214ba9a1b352c7d9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372 446601&response-content-disposition=attachment%3B%20filename%3Dinstall.sh& response-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:4 43... connected. HTTP request sent, awaiting response... 200 OK Length: 25543 (25K) [application/octet-stream] Saving to: ‘install.sh’ install.sh 100%[================================================== ==================================>] 24.94K --.-KB/s in 0.01s 2024-05-13 08:10:26 (2.14 MB/s) - ‘install.sh’ saved [25543/25543]
Install the instance via script:
Code:
<user>@EspoCRM:~$ sudo bash install.sh --ssl --letsencrypt --domain=material.<domain>.com --email=<user>@<domain>.com This script will install EspoCRM with all the needed prerequisites (including Docker, Nginx, PHP, MariaDB). Do you want to continue the installation? [y/n] y Summary information: Domain: material.<domain>.com Mode: Let's Encrypt certificate Email for the Let's Encrypt certificate: <user>@<domain>.com Do you want to continue? [y/n] y Hit:1 https://download.docker.com/linux/debian bookworm InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB] Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:5 http://security.debian.org/debian-security bookworm-security/main Sources [95.9 kB] Get:6 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [156 kB] Get:7 http://security.debian.org/debian-security bookworm-security/main Translation-en [92.9 kB] Fetched 448 kB in 5s (84.2 kB/s) Reading package lists... Done 08b363f55773b5216a6cf0452eadafdd47985042cf27101cad 79789bb9019b46 Saving debug log to /var/log/letsencrypt/letsencrypt.log Account registered. Requesting a certificate for material.<domain>.com Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems: Domain: material.<domain>.com Type: unauthorized Detail: During secondary validation: 69.55.45.147: Invalid response from http://material.<domain>.com/.well-known/acme-challenge/s2qBpf19nqc8kyBi1-9LlkYz8pxpzW62yI3m00ZBbhU: 403 Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet. Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
HTTP is now bound to a docker container.
Code:
<user>@EspoCRM:~$ sudo lsof -n -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dhclient 675 root 7u IPv4 29161 0t0 UDP *:bootpc sshd 47280 root 3u IPv4 900997 0t0 TCP *:ssh (LISTEN) sshd 47280 root 4u IPv6 900999 0t0 TCP *:ssh (LISTEN) sshd 2178904 root 4u IPv4 40572299 0t0 TCP 192.168.22.213:ssh->192.168.22.168:60003 (ESTABLISHED) sshd 2178910 <user> 4u IPv4 40572299 0t0 TCP 192.168.22.213:ssh->192.168.22.168:60003 (ESTABLISHED) docker-pr 2180077 root 4u IPv4 40569157 0t0 TCP *:http (LISTEN) docker-pr 2180084 root 4u IPv6 40560404 0t0 TCP *:http (LISTEN)
Code:
<user>@EspoCRM:~$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 08b363f55773 nginx "/docker-entrypoint.…" 3 minutes ago Up 3 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp espocrm-nginx-tmp
Leave a comment: