# LUA Error -- 500

**URL:** <https://discourse.openondemand.org/t/lua-error-500/3922>\
**Category:** Get Help\
**Created:** [December 11, 2024, 1:32am UTC](https://discourse.openondemand.org/t/lua-error-500/3922 "2024-12-11T01:32:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 11, 2024, 1:32am UTC](https://discourse.openondemand.org/t/lua-error-500/3922/1 "2024-12-11T01:32:40Z")

</div>

Greetings,  
We have OOD 3.1.X running on a RHEL 9 server, and it was working fine until a couple of weeks ago. Now when we go to the landing page, we get an http error 500. The OnDemand logs do not detect any errors, but the httpd error log shows a single error for every attempt:

> lua error: /opt/ood/mod\_ood\_proxy/lib/ood/user\_map.lua:12 bad argument #1 to match (string expected, got nil)

Your assistance is much appreciated.

---

<div class="post-metadata">

**Author:** ![mjbludwig](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mjbludwig/32/684_2.png) [@mjbludwig](https://discourse.openondemand.org/u/mjbludwig)\
**Post date:** [December 11, 2024, 5:08pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/2 "2024-12-11T17:08:11Z")

</div>

What auth are you using? Potentially sounds like your auth mechanism is not passing anything back to OOD.

---

<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:** [December 11, 2024, 5:45pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/3 "2024-12-11T17:45:03Z")

</div>

I agree. If you’re using OIDC it’s the `oidc_remote_user_claim` setting that’s telling your OIDC system what to pass back (i.e., what claim to pass back to apache as the `REMOTE_USER`).

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 11, 2024, 6:38pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/4 "2024-12-11T18:38:05Z")

</div>

I tried basic and then I tried none for authentication as I suspected that this could be an issue, and both are throwing the same error. We have an OOD cluster on the “public” network, and the CAS authentication is working like a charm on there because our Center has a central LDAP authentication server that we’re leveraging. The OOD node that has the lua error is on a private network, and we haven’t worked up a secure authentication scheme for it yet.

---

<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:** [December 11, 2024, 6:40pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/5 "2024-12-11T18:40:18Z")

</div>

Did you set `user_env` in `ood_portal.yml`? This also controls `the CGI environment variable that holds the authenticated user name used as the argument for the user mapping command`.

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 11, 2024, 6:46pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/6 "2024-12-11T18:46:30Z")

</div>

I did not. I’m not on-site to try it today, but I can set it tomorrow and let you know. Although I’m not sure what to set it to! Your documentation has “OIDC\_CLAIM\_preferred\_username”, but I don’t know what that does.

---

<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:** [December 11, 2024, 6:57pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/7 "2024-12-11T18:57:51Z")

</div>

You shouldn’t set it to anything if you haven’t already. Can you share your `ood_portal.yml` configurations?

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 11, 2024, 7:18pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/8 "2024-12-11T19:18:22Z")

</div>

I’m removing the domains for security reasons. I believe that this is how it looks like, but I will double check for typing errors tomorrow:

> ---
> 
> servername: gauss.xxx.xxx.xxxx.xxx
> 
> ssl:  
> - ‘SSLCertificateFile “/etc/pki/tls/certs/gauss-server.crt”’  
> - ‘SSLCertificateKeyFile “/etc/pki/tls/private/gauss-server-nopass.key”’
> 
> auth:  
> - ‘AuthType None’  
> - ‘Require All Granted’  
> - ‘Satisfy Any’
> 
> host\_regex: ‘[\w.-]+.xxx.xxx.xxxx.xxx’
> 
> node\_uri: ‘/node’  
> rnode\_uri: ‘/rnode’

---

<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:** [December 11, 2024, 7:26pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/9 "2024-12-11T19:26:40Z")

</div>

> [@gistambo](#):
>
> - ‘AuthType None’

🤦‍♂️ lol - `AuthType None` is your issue. If you can directly login without providing credentials - how’s the system know who you are?

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 11, 2024, 7:35pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/10 "2024-12-11T19:35:49Z")

</div>

It wasn’t working with the basic authentication either, where I was being prompted to enter a username and password at login (browser). I do not remember the configuration file off the top of my head. I will edit ood\_portal.yml tomorrow to go back to the basic password authentication and upload it here

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 13, 2024, 12:16am UTC](https://discourse.openondemand.org/t/lua-error-500/3922/11 "2024-12-13T00:16:33Z")

</div>

Updated ood\_portal.yml back to previous configuration. Here is the Authentication section:

> - ‘AuthType Basic’  
> - ‘AuthBasicProvider file anon’  
> - ‘AuthUserFile “/etc/htpasswd/.htpasswd”’  
> - ‘Anonymous\_NoUserID off’  
> - ‘Require valid-user’  
> - ‘Require user gistambo’  
> - ‘AuthName “Password Authentication”’

We still see an http 500 error, but is now different than before in the logs:

> [proxy:warn] [pid 171014:tid:17113] [client 140.xxx.xxx.xxx:56283] AH01144: No protocol handler was valid for the URL /pun/sys/dashboard (scheme ‘unix’). If you are using a DSO version of mod\_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

Note that the client IP above is the (right) address of the remote terminal that’s making the request.

There is another lua message (at the info level, not an error) below that error with more information, but since I can’t copy and paste from an isolated network, typing that message here would take up a lot of time.

The loaded proxy modules in Apache are:

> proxy\_module (shared)  
> proxy\_ajp\_module (shared)  
> proxy\_balancer\_module (shared)  
> proxy\_connect\_module (shared)  
> proxy\_express\_module (shared)  
> proxy\_fcgi\_module (shared)  
> proxy\_fdpass\_module (shared)  
> proxy\_ftp\_module (shared)  
> proxy\_http\_module (shared)  
> proxy\_hcheck\_module (shared)  
> proxy\_scgi\_module (shared)  
> proxy\_uwsgi\_module (shared)  
> proxy\_wstunnel\_module (shared)  
> proxy\_http2\_module (shared)

Let me know if you want me to start a new thread since this is a different error.

---

<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:** [December 13, 2024, 2:54pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/12 "2024-12-13T14:54:15Z")

</div>

> [@gistambo](#):
>
> No protocol handler was valid for the URL /pun/sys/dashboard (scheme ‘unix’).

What version of OOD specifically are you on? We’ve had a whole kerfuffle with httpd recently over this very issue. `3.1.9` (or 10) should fix this error.

---

<div class="post-metadata">

**Author:** ![gistambo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gistambo/32/1336_2.png) [@gistambo](https://discourse.openondemand.org/u/gistambo)\
**Post date:** [December 17, 2024, 3:57pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/13 "2024-12-17T15:57:43Z")

</div>

It was 3.1.7. Updating it yesterday night to 3.1.10 fixed the issue.  
Thanks for the quick responses. You can close this ticket.

---

<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:** [June 15, 2025, 3:58pm UTC](https://discourse.openondemand.org/t/lua-error-500/3922/14 "2025-06-15T15:58:01Z")

</div>

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