I want to run all the services except computing on a host node.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
The details of installation.
-
git clone https://github.com/arvados/arvados
and checkout to 2.4-release. -
run
cp local.params.example.multiple_hosts local.params
cp -r config_examples/multi_host/aws local_config_dir
- modify the local.param
# Internal IPs for the configuration
CLUSTER_INT_CIDR=10.0.0.0/16
# Note the IPs in this example are shared between roles, as suggested in
# https://doc.arvados.org/main/install/salt-multi-host.html
CONTROLLER_INT_IP=10.0.0.4
WEBSOCKET_INT_IP=10.0.0.4
KEEP_INT_IP=10.0.0.4
# Both for collections and downloads
KEEPWEB_INT_IP=10.0.0.4
KEEPSTORE0_INT_IP=10.0.0.4
WORKBENCH1_INT_IP=10.0.0.4
WEBSHELL_INT_IP=10.0.0.4
DATABASE_INT_IP=10.0.0.4
SHELL_INT_IP=10.0.0.4
INITIAL_USER="admin"
SSL_MODE="self-signed"
RELEASE="production"
-
create a crt and a key and copy them for all services.
-
run
sudo ./provision.sh --config local.params --roles database
It throws error but success (Succeeded: 39 (changed=15), Failed: 0).
Error:
Initializing git_internal_dir /var/lib/arvados/internal.git: directory exists, skipped.
Making sure '/var/lib/arvados/internal.git' has the right permission... done.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
dpkg: error processing package arvados-api-server (--configure):
installed arvados-api-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
arvados-api-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------------------
â—Ź nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-04-29 15:13:23 UTC; 2min 35s ago
Docs: man:nginx(8)
Process: 4016248 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Apr 29 15:13:23 pai-master systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 29 15:13:23 pai-master nginx[4016248]: nginx: [emerg] host not found in upstream "keepproxy_upstream" in /etc/nginx/sites-enabled/arvados_keepproxy_ssl.conf:13
Apr 29 15:13:23 pai-master nginx[4016248]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 29 15:13:23 pai-master systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Apr 29 15:13:23 pai-master systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 29 15:13:23 pai-master systemd[1]: Failed to start A high performance web server and a reverse proxy server.
/etc/nginx/sites-enabled/arvados_keepproxy_ssl.conf:
server {
server_name keep.admin.qc;
listen 443 http2 ssl;
index index.html index.htm;
location / {
proxy_pass http://keepproxy_upstream;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
}
client_body_buffer_size 64M;
client_max_body_size 64M;
proxy_http_version 1.1;
proxy_request_buffering off;
include snippets/ssl_hardening_default.conf;
ssl_certificate /etc/nginx/ssl/arvados-keepproxy.pem;
ssl_certificate_key /etc/nginx/ssl/arvados-keepproxy.key;
access_log /var/log/nginx/keepproxy.admin.qc.access.log combined;
error_log /var/log/nginx/keepproxy.admin.qc.error.log;
}