Closed SajidK25 closed 2 years ago
Check the output of docker-compose logs -f ondemand
. Are there any errors in there?
Check the output of
docker-compose logs -f ondemand
. Are there any errors in there? No error: here is the outputondemand | ---> Cleaning NGINX ... ondemand | ---> Populating /etc/ssh/ssh_known_hosts from frontend for ondemand... ondemand | # frontend:22 SSH-2.0-OpenSSH_8.0 ondemand | # frontend:22 SSH-2.0-OpenSSH_8.0 ondemand | # frontend:22 SSH-2.0-OpenSSH_8.0 ondemand | ---> Starting SSSD on ondemand ... ondemand | ---> Starting the MUNGE Authentication service (munged) on ondemand ... ondemand | ---> Starting sshd on ondemand... ondemand | ---> Running update ood portal... ondemand | (2022-08-05 18:29:45): [sssd] [server_setup] (0x1f7c0): Starting with debug level = 0x0070 ondemand | (2022-08-05 18:29:45): (2022-08-05 18:29:45): [be[default]] [server_setup] (0x1f7c0): Starting with debug level = 0x0070 ondemand | [be[implicit_files]] [server_setup] (0x1f7c0): Starting with debug level = 0x0070 ondemand | (2022-08-05 18:29:46): [nss] [server_setup] (0x1f7c0): Starting with debug level = 0x0070 ondemand | (2022-08-05 18:29:46): [pam] [server_setup] (0x1f7c0): Starting with debug level = 0x0070 ondemand | cp -p /etc/pki/tls/certs/localhost.crt /etc/ood/dex/localhost.crt ondemand | chown ondemand-dex:ondemand-dex /etc/ood/dex/localhost.crt ondemand | cp -p /etc/pki/tls/private/localhost.key /etc/ood/dex/localhost.key ondemand | chown ondemand-dex:ondemand-dex /etc/ood/dex/localhost.key ondemand | No change in Apache config. ondemand | mv /etc/ood/dex/config.yaml /etc/ood/dex/config.yaml.20220805T182947 ondemand | mv /tmp/dex_config20220805-41-1x4ajo3 /etc/ood/dex/config.yaml ondemand | chown ondemand-dex:ondemand-dex /etc/ood/dex/config.yaml ondemand | chmod 600 /etc/ood/dex/config.yaml ondemand | Backing up previous Dex config to: '/etc/ood/dex/config.yaml.20220805T182947' ondemand | Generating new Dex config at: /etc/ood/dex/config.yaml ondemand | Completed successfully! ondemand | ondemand | Restart the ondemand-dex service now. ondemand | ondemand | Suggested command: ondemand | sudo systemctl restart ondemand-dex.service ondemand | ondemand | ---> Starting ondemand-dex... ondemand | ---> Starting ondemand httpd24... ondemand | time="2022-08-05T18:29:47Z" level=info msg="config issuer: https://localhost:5554" ondemand | AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.144.10. Set the 'ServerName' directive globally to suppress this message ondemand | time="2022-08-05T18:29:47Z" level=info msg="config storage: sqlite3" ondemand | time="2022-08-05T18:29:47Z" level=info msg="config static client: OnDemand" ondemand | time="2022-08-05T18:29:47Z" level=info msg="config connector: ldap" ondemand | time="2022-08-05T18:29:47Z" level=info msg="config skipping approval screen" ondemand | time="2022-08-05T18:29:47Z" level=info msg="keys expired, rotating" ondemand | time="2022-08-05T18:29:47Z" level=info msg="keys rotated, next rotation: 2022-08-06 00:29:47.454819268 +0000 UTC" ondemand | time="2022-08-05T18:29:47Z" level=info msg="listening (http/telemetry) on 0.0.0.0:5558" ondemand | time="2022-08-05T18:29:47Z" level=info msg="listening (http) on 0.0.0.0:5556" ondemand | time="2022-08-05T18:29:47Z" level=info msg="listening (https) on 0.0.0.0:5554" ondemand | time="2022-08-06T00:29:47Z" level=info msg="keys expired, rotating" ondemand | time="2022-08-06T00:29:47Z" level=info msg="keys rotated, next rotation: 2022-08-06 06:29:47.930602445 +0000 UTC"
**When I tried to acces the application using this url "https://75.101.240.220:3443/", it was redirected to "https://localhost:3443/" .**
following is the /etc/ood/dex/config.yml inside ondemand container:-
issuer: http://ondemand:5556
storage:
type: sqlite3
config:
file: "/etc/ood/dex/dex.db"
web:
http: 0.0.0.0:5556
telemetry:
http: 0.0.0.0:5558
staticClients:
- id:
redirectURIs:
- http://:3443/oidc
- https://75.101.240.220:4443/simplesaml/module.php/authoidcoauth2/linkback.php
- https://75.101.240.220:2443/oidc/callback/
name: OnDemand
secret: 334389048b872a533002b34d73f8c29fd09efc50
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: ldap:636
insecureSkipVerify: true
bindDN: cn=admin,dc=example,dc=org
bindPW: admin
userSearch:
baseDN: ou=People,dc=example,dc=org
filter: "(objectClass=posixAccount)"
username: uid
idAttr: uid
emailAttr: mail
nameAttr: gecos
preferredUsernameAttr: uid
groupSearch:
baseDN: ou=Groups,dc=example,dc=org
filter: "(objectClass=posixGroup)"
userMatchers:
- userAttr: DN
groupAttr: member
nameAttr: cn
oauth2:
skipApprovalScreen: true
enablePasswordDB: false
frontend:
dir: "/usr/share/ondemand-dex/web"
theme: ondemand
I am trying to deploy "hpc-toolset-tutorial" into an EC2 instance. I can access all the application accept "OnDeman". Here is my docker-compose.yml file so far:-
I already have edited
ondemand/install.sh
Where I am doing wrong? TIA