netmaker
netmaker copied to clipboard
[Bug]:
Contact Details
What happened?
At installing at a aws ec2 free tier i am getting the error
"Caddy is having an issue setting up certificates, please investigate (docker logs caddy) Exiting..."
Docker Logs: permission denied while trying to connect to the Docker daemon socy/json": dial unix /var/run/docker.sock: connect: permission denied
Version
v0.20.6
What OS are you using?
Linux
Relevant log output
permission denied while trying to connect to the Docker daemon socy/json": dial unix /var/run/docker.sock: connect: permission denied
Contributing guidelines
- [X] Yes, I did.
Logs Setup
ubuntu@ip-172-31-17-226:~$ sudo wget -qO /root/nm-quick.sh https://raw.githubuse rcontent.com/gravitl/netmaker/master/scripts/nm-quick.sh && sudo chmod +x /root/ nm-quick.sh && sudo /root/nm-quick.sh
/\ "-.\ \ /\ \ /_ \ /\ "-./ \ /\ __ \ /\ / / /\ \ /\ ==
\ \ -. \ \ \ __\ //\ / \ \ -./\ \ \ \ __ \ \ \ "-. \ \ __\ \ \ __<
\ _\"_\ \ _\ \ _\ \ _\ \ _\ \ _\ _\ \ _\ _\ \ _\ \ _\ _
// // // // // // //// ///_/ // // //
Would you like to install Netmaker Community Edition (CE), or Netmaker Enterpris e Edition (EE)? EE will require you to create an account at https://app.netmaker.io
- Community Edition
- Enterprise Edition #? 1 installing Netmaker CE -----------Build Options----------------------------- EE or CE: ce Build Type: version Build Tag: v0.21.0 Image Tag: v0.21.0 Installer: v0.1.1
checking dependencies... Hit:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InReleas e [109 kB] Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:5 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Pac kages [14.1 MB] Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe Translati on-en [5652 kB] Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n -f Metadata [286 kB] Get:8 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 P ackages [217 kB] Get:9 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Transla tion-en [112 kB] Get:10 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B] Get:11 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd6 4 Packages [970 kB] Get:12 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Tran slation-en [222 kB] Get:13 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd6 4 c-n-f Metadata [15.6 kB] Get:14 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricte d amd64 Packages [838 kB] Get:15 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricte d Translation-en [135 kB] Get:16 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricte d amd64 c-n-f Metadata [536 B] Get:17 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [979 kB] Get:18 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [213 kB] Get:19 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [21.8 kB] Get:20 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multivers e amd64 Packages [41.6 kB] Get:21 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multivers e Translation-en [9768 B] Get:22 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multivers e amd64 c-n-f Metadata [476 B] Get:23 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main am d64 Packages [41.7 kB] Get:24 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Tr anslation-en [10.5 kB] Get:25 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main am d64 c-n-f Metadata [388 B] Get:26 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/restric ted amd64 c-n-f Metadata [116 B] Get:27 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/univers e amd64 Packages [24.3 kB] Get:28 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/univers e Translation-en [16.4 kB] Get:29 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/univers e amd64 c-n-f Metadata [640 B] Get:30 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multive rse amd64 c-n-f Metadata [116 B] Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [761 kB] Get:32 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [164 kB] Get:33 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadat a [11.3 kB] Get:34 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Package s [822 kB] Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-e n [132 kB] Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f M etadata [536 B] Get:37 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [781 kB] Get:38 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [143 kB] Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Met adata [16.7 kB] Get:40 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Package s [36.5 kB] Get:41 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-e n [7060 B] Get:42 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f M etadata [260 B] Fetched 27.1 MB in 5s (5609 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 113 packages can be upgraded. Run 'apt list --upgradable' to see them. git is installed dpkg-query: no packages found matching wireguard wireguard is not installed. Attempting install. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: wireguard-tools Suggested packages: openresolv | resolvconf The following NEW packages will be installed: wireguard wireguard-tools 0 upgraded, 2 newly installed, 0 to remove and 113 not upgraded. Need to get 90.0 kB of archives. After this operation, 345 kB of additional disk space will be used. Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 wiregua rd-tools amd64 1.0.20210914-1ubuntu2 [86.9 kB] Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 wir eguard all 1.0.20210914-1ubuntu2 [3114 B] Fetched 90.0 kB in 0s (4182 kB/s) Selecting previously unselected package wireguard-tools. (Reading database ... 64295 files and directories currently installed.) Preparing to unpack .../wireguard-tools_1.0.20210914-1ubuntu2_amd64.deb ... Unpacking wireguard-tools (1.0.20210914-1ubuntu2) ... Selecting previously unselected package wireguard. Preparing to unpack .../wireguard_1.0.20210914-1ubuntu2_all.deb ... Unpacking wireguard (1.0.20210914-1ubuntu2) ... Setting up wireguard-tools (1.0.20210914-1ubuntu2) ... wg-quick.target is a disabled or a static unit not running, not starting it. Setting up wireguard (1.0.20210914-1ubuntu2) ... 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. wireguard is installed wireguard-tools is installed dnsutils is not installed. Attempting install. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: dnsutils 0 upgraded, 1 newly installed, 0 to remove and 113 not upgraded. Need to get 3926 B of archives. After this operation, 58.4 kB of additional disk space will be used. Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe a md64 dnsutils all 1:9.18.12-0ubuntu0.22.04.2 [3926 B] Fetched 3926 B in 0s (279 kB/s) Selecting previously unselected package dnsutils. (Reading database ... 64375 files and directories currently installed.) Preparing to unpack .../dnsutils_1%3a9.18.12-0ubuntu0.22.04.2_all.deb ... Unpacking dnsutils (1:9.18.12-0ubuntu0.22.04.2) ... Setting up dnsutils (1:9.18.12-0ubuntu0.22.04.2) ... 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. dnsutils is installed dpkg-query: no packages found matching jq jq is not installed. Attempting install. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libjq1 libonig5 The following NEW packages will be installed: jq libjq1 libonig5 0 upgraded, 3 newly installed, 0 to remove and 113 not upgraded. Need to get 357 kB of archives. After this operation, 1087 kB of additional disk space will be used. Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 libonig 5 amd64 6.9.7.1-2build1 [172 kB] Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 libjq1 amd64 1.6-2.1ubuntu3 [133 kB] Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 jq amd6 4 1.6-2.1ubuntu3 [52.5 kB] Fetched 357 kB in 0s (11.8 MB/s) Selecting previously unselected package libonig5:amd64. (Reading database ... 64379 files and directories currently installed.) Preparing to unpack .../libonig5_6.9.7.1-2build1_amd64.deb ... Unpacking libonig5:amd64 (6.9.7.1-2build1) ... Selecting previously unselected package libjq1:amd64. Preparing to unpack .../libjq1_1.6-2.1ubuntu3_amd64.deb ... Unpacking libjq1:amd64 (1.6-2.1ubuntu3) ... Selecting previously unselected package jq. Preparing to unpack .../jq_1.6-2.1ubuntu3_amd64.deb ... Unpacking jq (1.6-2.1ubuntu3) ... Setting up libonig5:amd64 (6.9.7.1-2build1) ... Setting up libjq1:amd64 (1.6-2.1ubuntu3) ... Setting up jq (1.6-2.1ubuntu3) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for libc-bin (2.35-0ubuntu3.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. jq is installed dpkg-query: no packages found matching docker.io docker.io is not installed. Attempting install. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: bridge-utils containerd dns-root-data dnsmasq-base 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 dns-root-data dnsmasq-base docker.io pigz runc ubuntu-fan 0 upgraded, 8 newly installed, 0 to remove and 113 not upgraded. Need to get 69.7 MB of archives. After this operation, 267 MB of additional disk space will be used. Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pig z amd64 2.6-1 [63.6 kB] Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 bridge- utils amd64 1.7-1ubuntu3 [34.4 kB] Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 runc amd64 1.1.7-0ubuntu1~22.04.1 [4249 kB] Get:4 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 containerd amd64 1.7.2-0ubuntu1~22.04.1 [36.0 MB] Get:5 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 dns-roo t-data all 2021011101 [5256 B] Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 dnsmasq-base amd64 2.86-1.1ubuntu0.3 [354 kB] Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe a md64 docker.io amd64 24.0.5-0ubuntu1~22.04.1 [28.9 MB] Get:8 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 ubu ntu-fan all 0.12.16 [35.2 kB] Fetched 69.7 MB in 1s (60.3 MB/s) Preconfiguring packages ... Selecting previously unselected package pigz. (Reading database ... 64396 files and directories currently installed.) Preparing to unpack .../0-pigz_2.6-1_amd64.deb ... Unpacking pigz (2.6-1) ... Selecting previously unselected package bridge-utils. Preparing to unpack .../1-bridge-utils_1.7-1ubuntu3_amd64.deb ... Unpacking bridge-utils (1.7-1ubuntu3) ... Selecting previously unselected package runc. Preparing to unpack .../2-runc_1.1.7-0ubuntu1~22.04.1_amd64.deb ... Unpacking runc (1.1.7-0ubuntu1~22.04.1) ... Selecting previously unselected package containerd. Preparing to unpack .../3-containerd_1.7.2-0ubuntu1~22.04.1_amd64.deb ... Unpacking containerd (1.7.2-0ubuntu1~22.04.1) ... Selecting previously unselected package dns-root-data. Preparing to unpack .../4-dns-root-data_2021011101_all.deb ... Unpacking dns-root-data (2021011101) ... Selecting previously unselected package dnsmasq-base. Preparing to unpack .../5-dnsmasq-base_2.86-1.1ubuntu0.3_amd64.deb ... Unpacking dnsmasq-base (2.86-1.1ubuntu0.3) ... Selecting previously unselected package docker.io. Preparing to unpack .../6-docker.io_24.0.5-0ubuntu1~22.04.1_amd64.deb ... Unpacking docker.io (24.0.5-0ubuntu1~22.04.1) ... Selecting previously unselected package ubuntu-fan. Preparing to unpack .../7-ubuntu-fan_0.12.16_all.deb ... Unpacking ubuntu-fan (0.12.16) ... Setting up dnsmasq-base (2.86-1.1ubuntu0.3) ... Setting up runc (1.1.7-0ubuntu1~22.04.1) ... Setting up dns-root-data (2021011101) ... Setting up bridge-utils (1.7-1ubuntu3) ... Setting up pigz (2.6-1) ... Setting up containerd (1.7.2-0ubuntu1~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.5-0ubuntu1~22.04.1) ... Adding group `docker' (GID 122) ... Done. Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /li b/systemd/system/docker.service. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/sy stemd/system/docker.socket. Processing triggers for dbus (1.12.20-2ubuntu4.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. docker.io is installed dpkg-query: no packages found matching docker-compose docker-compose is not installed. Attempting install. 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 113 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-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-websocket all 1.2.3-1 [34.7 kB] Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-docker all 5.0.3-1 [89.3 kB] Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-dockerpty all 0.4.1-2 [11.1 kB] Get:4 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-docopt all 0.6.2-4 [26.9 kB] Get:5 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-dotenv all 0.19.2-1 [20.5 kB] Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 pyt hon3-texttable all 1.6.4-1 [11.4 kB] Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 doc ker-compose all 1.29.2-1 [95.8 kB] Fetched 290 kB in 0s (7634 kB/s) Selecting previously unselected package python3-websocket. (Reading database ... 64759 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. docker-compose is installed grep is installed gawk is installed
dependency check complete
Would you like to use your own domain for netmaker, or an auto-generated domain? To use your own domain, add a Wildcard DNS record (e.x: *.netmaker.example.com) pointing to 123.123.123.111 IMPORTANT: Due to the high volume of requests, the auto-generated domain has bee n rate-limited by the certificate provider. For this reason, we STRONGLY RECOMMEND using your own domain. Using the auto-gen erated domain may lead to a failed installation due to rate limiting.
- Auto Generated (nm.3-76-216-24.nip.io)
- Custom Domain (e.x: netmaker.example.com) #? 2 Enter Custom Domain (make sure *.domain points to 123.123.123.111 first): netmaker. mydomainhidden.com using netmaker.mydomainhidden.com . . . . . .
The following subdomains will be used: dashboard.netmaker.mydomainhidden.com api.netmaker.mydomainhidden.com broker.netmaker.mydomainhidden.com turn.netmaker.mydomainhidden.com turnapi.netmaker.mydomainhidden.com
before continuing, confirm DNS is configured correctly, with records pointing to 123.123.123.111 Does everything look right? [y/n]: y . . . Email Address for Domain Registration (click 'enter' to use efe20302d5cd1d3f@ema il.com): using rand email . . . Enter Credentials For MQ... MQ Username (click 'enter' to use 'netmaker'): using default username for mq
- Auto Generated / Config Password
- Input Your Own Password #? 1 using random password for mq Enter Credentials For TURN... TURN Username (click 'enter' to use 'netmaker'): using default username for TURN
- Auto Generated / Config Password
- Input Your Own Password #? 1 using random password for turn . . . . . .
SETUP ARGUMENTS
domain: netmaker.mydomainhidden.com
email: [email protected]
public ip: 123.123.123.111
Confirm Settings for Installation
Does everything look right? [y/n]: y Stopping all containers...
Beginning installation...
. . . . . . . . . Pulling config files... Saving the config to /root/netmaker.env Setting up SSL certificates... Unable to find image 'certbot/certbot:latest' locally latest: Pulling from certbot/certbot 91d30c5bc195: Pull complete 5d0bb5b9b8b7: Pull complete 9369f9a4ffc3: Pull complete d7106b6bd561: Pull complete 8c76a60d2b3a: Pull complete e08bf95bbd48: Pull complete 26174528a65c: Pull complete 41fea484b2e1: Pull complete 5dd9ac53b45b: Pull complete 899e8acb0a4c: Pull complete dad4a746029b: Pull complete b524cdf16a36: Pull complete Digest: sha256:92092d214a4eb75d049720d04f7acc50b40ea226d77736bce6a6bf43981b6e86 Status: Downloaded newer image for certbot/certbot:latest fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz v3.16.7-62-g73b4155fb0a [https://dl-cdn.alpinelinux.org/alpine/v3.16/main] v3.16.7-60-gdbbe893286f [https://dl-cdn.alpinelinux.org/alpine/v3.16/community] OK: 17048 distinct packages available (1/5) Installing bash (5.1.16-r2) Executing bash-5.1.16-r2.post-install (2/5) Installing brotli-libs (1.0.9-r6) (3/5) Installing nghttp2-libs (1.47.0-r1) (4/5) Installing libcurl (8.2.1-r0) (5/5) Installing curl (8.2.1-r0) Executing busybox-1.35.0-r17.trigger OK: 29 MiB in 46 packages certonly --standalone --non-interactive --agree-tos -m [email protected] -d api.netmaker.mydomainhidden.com -d broker.netmaker.mydomainhidden.com -d dashboard.netmaker.mydomainhidden.com -d turn.netmaker.mydomainhidden.com -d turnapi.netmaker.mydomainhidden.com Saving debug log to /var/log/letsencrypt/letsencrypt.log Account registered. Requesting a certificate for api.netmaker.mydomainhidden.com and 4 more domains
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/api.netmaker.mydomainhidden.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/api.netmaker.mydomainhidden.com/privkey.pem This certificate expires on 2023-12-09. These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
If you like Certbot, please consider supporting our work by:
- Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
- Donating to EFF: https://eff.org/donate-le
cp: cannot create regular file '/root/certs/fullchain.pem': No such file or directory cp: cannot create regular file '/root/certs/privkey.pem': No such file or directory SSL certificates ready Starting containers... Creating network "root_default" with the default driver Creating volume "root_caddy_data" with default driver Creating volume "root_caddy_conf" with default driver Creating volume "root_sqldata" with default driver Creating volume "root_dnsconfig" with default driver Creating volume "root_mosquitto_logs" with default driver Creating volume "root_mosquitto_data" with default driver Creating volume "root_turn_server" with default driver Pulling netmaker (gravitl/netmaker:v0.21.0)... v0.21.0: Pulling from gravitl/netmaker 7264a8db6415: Pull complete 4f4fb700ef54: Pull complete b3c5b43a568a: Pull complete 01b192da88a0: Pull complete 3d51acebf2e7: Pull complete Digest: sha256:b38b24d995bdd0468f1ea57627bb3918dbd502f74755e86982da80309c986b28 Status: Downloaded newer image for gravitl/netmaker:v0.21.0 Pulling netmaker-ui (gravitl/netmaker-ui:v0.21.0)... v0.21.0: Pulling from gravitl/netmaker-ui 9398808236ff: Pull complete 7b8bdebbb770: Pull complete a2a4fe64baa0: Pull complete 0777b518fc6e: Pull complete 63f4060a8ef3: Pull complete 9cbe387ec693: Pull complete 48703ecfcf80: Pull complete e6a5b5694466: Pull complete 27523922c61d: Pull complete 6cc7dfdbdfa4: Pull complete 1a3cec971e19: Pull complete c2f56e4b3790: Pull complete 2528f9f08f46: Pull complete Digest: sha256:14a280c0a667ca70b9d81006b8d193664df8e4e12724b4adf2e4f011705668f2 Status: Downloaded newer image for gravitl/netmaker-ui:v0.21.0 Pulling caddy (caddy:2.6.2)... 2.6.2: Pulling from library/caddy 213ec9aee27d: Pull complete 5625668cf98f: Pull complete 675d09b34c53: Pull complete f1747be70658: Pull complete db8ee6c4c21d: Pull complete Digest: sha256:16f4d944907ac8adc93e11df3e4d1b8405d42e4f45e6bc1aae4eb1119552ee79 Status: Downloaded newer image for caddy:2.6.2 Pulling coredns (coredns/coredns:1.10.1)... 1.10.1: Pulling from coredns/coredns 25b7032c281a: Pull complete 3799eae1a077: Pull complete Digest: sha256:a0ead06651cf580044aeb0a0feba63591858fb2e43ade8c9dea45a6a89ae7e5e Status: Downloaded newer image for coredns/coredns:1.10.1 Pulling mq (eclipse-mosquitto:2.0.15-openssl)... 2.0.15-openssl: Pulling from library/eclipse-mosquitto 7264a8db6415: Already exists 6651ad21d56f: Pull complete b7283c212019: Pull complete Digest: sha256:a7c946835713b2865bd313456ad1b5c9eee784a775368556409e74be7c448dc2 Status: Downloaded newer image for eclipse-mosquitto:2.0.15-openssl Pulling turn (gravitl/turnserver:v1.0.0)... v1.0.0: Pulling from gravitl/turnserver 3aa4d0bbde19: Pull complete 4f4fb700ef54: Pull complete 9fff0440bf87: Pull complete Digest: sha256:aa9034872afcf191770e1f2ae7cd29cc6354081dd88b6d01069b71b80b22664e Status: Downloaded newer image for gravitl/turnserver:v1.0.0 Creating caddy ... done Creating turn ... done Creating netmaker ... done Creating netmaker-ui ... done Creating coredns ... done Creating mq ... done . . . . . . Testing Caddy setup (please be patient, this may take 1-2 minutes) Issue establishing connection...retrying in 15 seconds... Issue establishing connection...retrying in 20 seconds... Issue establishing connection...retrying in 25 seconds... Issue establishing connection...retrying in 30 seconds... Issue establishing connection...retrying in 35 seconds... Issue establishing connection...retrying in 40 seconds... Issue establishing connection...retrying in 45 seconds... Caddy is having an issue setting up certificates, please investigate (docker logs caddy) Exiting... ubuntu@ip-172-31-17-226:~$ docker logs caddy permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/caddy/json": dial unix /var/run/docker.sock: connect: permission denied ubuntu@ip-172-31-17-226:~$ ^C ubuntu@ip-172-31-17-226:~$ permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/caddy/json": dial unix /var/run/docker.sock: connect: permission denied
cp: cannot create regular file '/root/certs/fullchain.pem': No such file or directory cp: cannot create regular file '/root/certs/privkey.pem': No such file or directory
This appears to be the issue.
I'm having the same issue, it seems to originate from nm-certs.sh but haven't looked into it yet