# Rocky linux 8 new install Internal Server Error

**URL:** <https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [March 10, 2023, 2:23am UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529 "2023-03-10T02:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![perrymil](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/perrymil/32/1620_2.png) [@perrymil](https://discourse.openondemand.org/u/perrymil)\
**Post date:** [March 10, 2023, 2:23am UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529/1 "2023-03-10T02:23:47Z")

</div>

Hi,

New VM, running rocky linux VERSION=“8.7 (Green Obsidian)”

Ran through [1. Install Software From Package — Open OnDemand 2.0.20 documentation](https://osc.github.io/ood-documentation/latest/installation/install-software.html) and installed ondemand-dex, created ood user

sudo groupadd ood  
sudo useradd -d /home/ood -g ood -k /etc/skel -m ood

Browsed to the ip address of the server

hostIP/pun/sys/dashboard

Which shows an internal service error 500

I deleted the VM, and tried again just to be sure, but it shows the same error.

I have read a few of the support threads on here with similar problems and saw the recommendation to just go ahead and setup LDAP and skip the test user auth? Is that still current?

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 10, 2023, 2:21pm UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529/2 "2023-03-10T14:21:24Z")

</div>

Hi and welcome!

Yea in 2.0 ondemand-dex being the default puts it into a weird state where you also need `mod_auth_oidc` which may not be installed.

What’s the error output from `/var/log/httpd/error.log`?

---

<div class="post-metadata">

**Author:** ![perrymil](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/perrymil/32/1620_2.png) [@perrymil](https://discourse.openondemand.org/u/perrymil)\
**Post date:** [March 10, 2023, 4:55pm UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529/3 "2023-03-10T16:55:47Z")

</div>

```auto
[Fri Mar 10 01:59:18.430419 2023] [auth_openidc:warn] [pid 10250:tid 140227985554880] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCProviderMetadataURL SHOULD be "https" for security reasons!
[Fri Mar 10 01:59:18.430436 2023] [auth_openidc:warn] [pid 10250:tid 140227985554880] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
[Fri Mar 10 01:59:51.296067 2023] [auth_openidc:warn] [pid 10254:tid 140227291105024] [client 10.96.10.55:51245] oidc_clean_expired_state_cookies: state (mod_auth_openidc_state_hy7bxXa0q9iUuPPGbiaydW4FeBA) has expired (original_url=http://10.96.14.194/pun/sys/dashboard)
[Fri Mar 10 01:59:51.296130 2023] [auth_openidc:warn] [pid 10254:tid 140227291105024] [client 10.96.10.55:51245] oidc_clean_expired_state_cookies: state (mod_auth_openidc_state_XyTukBdzP8FiG-9ZQfqs5zSOPIc) has expired (original_url=http://10.96.14.194/pun/sys/dashboard)
[Fri Mar 10 01:59:51.296175 2023] [auth_openidc:warn] [pid 10254:tid 140227291105024] [client 10.96.10.55:51245] oidc_clean_expired_state_cookies: state (mod_auth_openidc_state_bPtqevnQGnTsq7LPNE_8Lpv74vE) has expired (original_url=http://10.96.14.194/pun/sys/dashboard)
[Fri Mar 10 01:59:51.296194 2023] [auth_openidc:error] [pid 10254:tid 140227291105024] [client 10.96.10.55:51245] oidc_authenticate_user: the URL hostname (openondemand.novalocal) of the configured OIDCRedirectURI does not match the URL hostname of the URL being accessed (10.96.14.194): the "state" and "session" cookies will not be shared between the two!
[Fri Mar 10 02:00:33.091556 2023] [auth_openidc:warn] [pid 10623:tid 140682835258816] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCProviderMetadataURL SHOULD be "https" for security reasons!
[Fri Mar 10 02:00:33.091567 2023] [auth_openidc:warn] [pid 10623:tid 140682835258816] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
[Fri Mar 10 02:00:39.527930 2023] [auth_openidc:error] [pid 10627:tid 140682140808960] [client 10.96.10.55:64209] oidc_authenticate_user: the URL hostname (openondemand.novalocal) of the configured OIDCRedirectURI does not match the URL hostname of the URL being accessed (10.96.14.194): the "state" and "session" cookies will not be shared between the two!
[Fri Mar 10 02:07:12.236410 2023] [auth_openidc:warn] [pid 11436:tid 140645509582272] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCProviderMetadataURL SHOULD be "https" for security reasons!
[Fri Mar 10 02:07:12.236427 2023] [auth_openidc:warn] [pid 11436:tid 140645509582272] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
[Fri Mar 10 02:15:16.897521 2023] [auth_openidc:warn] [pid 11762:tid 140381199134144] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCProviderMetadataURL SHOULD be "https" for security reasons!
[Fri Mar 10 02:15:16.897538 2023] [auth_openidc:warn] [pid 11762:tid 140381199134144] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
[Fri Mar 10 02:16:04.859962 2023] [auth_openidc:warn] [pid 12002:tid 140064914230720] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCProviderMetadataURL SHOULD be "https" for security reasons!
[Fri Mar 10 02:16:04.859974 2023] [auth_openidc:warn] [pid 12002:tid 140064914230720] oidc_check_config_openid_openidc: the URL scheme (http) of the configured OIDCRedirectURI SHOULD be "https" for security reasons (moreover: some Providers may reject non-HTTPS URLs)
[Fri Mar 10 02:17:30.508287 2023] [auth_openidc:warn] [pid 12007:tid 140063975401216] [client 10.96.10.55:36339] oidc_clean_expired_state_cookies: state (mod_auth_openidc_state_ICYxiE-0MbEDimz0OxopmRnbf_s) has expired (original_url=http://10.96.14.194/pun/sys/dashboard)
[Fri Mar 10 02:17:30.508358 2023] [auth_openidc:warn] [pid 12007:tid 140063975401216] [client 10.96.10.55:36339] oidc_clean_expired_state_cookies: state (mod_auth_openidc_state_NGx0Zkq0rIeAsjQoqBELoobxs1Q) has expired (original_url=http://10.96.14.194/pun/sys/dashboard)
[Fri Mar 10 02:17:30.508376 2023] [auth_openidc:error] [pid 12007:tid 140063975401216] [client 10.96.10.55:36339] oidc_authenticate_user: the URL hostname (openondemand.novalocal) of the configured OIDCRedirectURI does not match the URL hostname of the URL being accessed (10.96.14.194): the "state" and "session" cookies will not be shared between the two!
[Fri Mar 10 02:20:35.747013 2023] [auth_openidc:error] [pid 12007:tid 140063933437696] [client 10.96.10.55:48210] oidc_authenticate_user: the URL hostname (openondemand.novalocal) of the configured OIDCRedirectURI does not match the URL hostname of the URL being accessed (10.96.14.194): the "state" and "session" cookies will not be shared between the two!

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 10, 2023, 5:13pm UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529/4 "2023-03-10T17:13:38Z")

</div>

I think you need to set the servername in `/etc/ood/config/ood_portal.yml`. Once you do this, bounce httpd and see if you have the same errors.

```auto
# /etc/ood/config/ood_portal.yml
servername: 'openondemand.novalocal'

```

Note that you should also access apache through that servername. That is, you use that servername in the browser when you try to access the site.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [September 6, 2023, 5:14pm UTC](https://discourse.openondemand.org/t/rocky-linux-8-new-install-internal-server-error/2529/5 "2023-09-06T17:14:35Z")

</div>

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