500 Internal Server Error when using default server name(accessing through IP address)

Hi all,

I am using Ubuntu20.04 to install OOD in a test cluster.
I am getting a 500 Internal Error after browsing to the server using the IP address.

In the /var/log/apache2/error.log, I am getting

oidc_authenticate_user: the URL hostname (ood.novalocal) of the configured OIDCRedirectURI does not match the URL hostname of the URL being accessed (My IP): the "state" and "session" cookies will not be shared between the two!

ood.novalocal is the default hostname listed in

/etc/ood/dex/config.yaml

---
issuer: http://ood.novalocal: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: ood.novalocal
  redirectURIs:
  - http://ood.novalocal/oidc
  name: OnDemand
  secret: ########
oauth2:
  skipApprovalScreen: true
enablePasswordDB: true
staticPasswords:
- email: ood@localhost
  hash: "#######"
  username: ood
  userID: '########'
frontend:
  dir: "/usr/share/ondemand-dex/web"
  theme: ondemand

What should I change in /etc/ood/dex/config.yaml to fix this error?

Thanks,
Yusuke

I solved the error.

I needed to specify a server name in /etc/ood/config/ood_portal.yml and browse the domain name instead of using IP address.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.