# Internal Server Error on first login & interactive apps rsync input/output error issue

**URL:** <https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133>\
**Category:** Get Help\
**Created:** [June 23, 2022, 6:42pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133 "2022-06-23T18:42:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgas20](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rgas20/32/309_2.png) [@rgas20](https://discourse.openondemand.org/u/rgas20)\
**Post date:** [June 23, 2022, 6:42pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/1 "2022-06-23T18:42:35Z")

</div>

All,

Apologies for the posts recently as we work through issues and solve them, we are working on OnDemand integration with Duo/ADFS on a new VM and could use some guidance.

Everything seems to be working well except we have a strange issue, where the first time anyone logs in, they are presented with a page “Internal Server Error: The server encountered an internal error or misconfiguration and was unable to complete your request…”. As soon as the person refreshes the page, they are logged in without further issue. I do not see anything out of the ordinary in the logs. Is there something we can look at that might point to what the issue is?

Another user seems to be having an issue when launching interactive apps. They get:

rsync: mkstemp “/home/user/ondemand/data/sys/dashboard/batch\_connect/sys/jupyterlab/output/6a9ca682-cf2b-4ab8-89ae-86681ec79cf6/.after.sh.HBJD5t” failed: Input/output error (5)  
rsync: mkstemp “/home/user/ondemand/data/sys/dashboard/batch\_connect/sys/jupyterlab/output/6a9ca682-cf2b-4ab8-89ae-86681ec79cf6/.before.sh.erb.oTykOr” failed: Input/output error (5)  
rsync: mkstemp “/home/user/ondemand/data/sys/dashboard/batch\_connect/sys/jupyterlab/output/6a9ca682-cf2b-4ab8-89ae-86681ec79cf6/.script.sh.erb.0PXcxp” failed: Input/output error (5)  
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]

Others have the same issue, other users, like me, can launch the interactive apps just fine.

Any ideas on how to solve these two issues would be greatly appreciated.

---

<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:** [June 24, 2022, 12:52pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/2 "2022-06-24T12:52:09Z")

</div>

No issues with the posts - we budget both in time and money for answering questions. So that’s no issue at all!

> [@rgas20](#):
>
> As soon as the person refreshes the page, they are logged in without further issue. I do not see anything out of the ordinary in the logs.

There should be something in apache’s error logs `/var/log/httpd24-httpd` for this. Whether it’s meaningful or not I can’t say but that’s our best bet to see any output there.

> [@rgas20](#):
>
> Another user seems to be having an issue when launching interactive apps. They get:
> 
> rsync: mkstemp “/home/user/ondemand/data/sys/dashboard/batch\_connect/sys/jupyterlab/output/6a9ca682-cf2b-4ab8-89ae-86681ec79cf6/.after.sh.HBJD5t” failed: Input/output error (5)

My guess is, there’s something funny with one of your HOME drives. At OSC our HOME drives are partitioned to maybe 4-5 storage nodes. One can blow up with a lot of lag and affect a certain number of folks but not others.

That is, my thinking is one of your storage devices is not working well, so it affects a subset of your users. Those users who happen to use _that_ storage device.

There may be something in `dmesg` or `journalctl` about this, but I’m guessing you’ll have to run more tests on that file location with your storage folks.

---

<div class="post-metadata">

**Author:** ![rgas20](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rgas20/32/309_2.png) [@rgas20](https://discourse.openondemand.org/u/rgas20)\
**Post date:** [June 27, 2022, 4:26pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/3 "2022-06-27T16:26:38Z")

</div>

Thanks Jeff for the reply. Good news is, we’ve resolved the issue with the input/output error. However, still getting the Internal Server Error just on the first login for people.

We’ve looked through the logs and really cannot see anything out of the ordinary that would cause this problem. We see the user map successfully, and that’s it, nothing more in the logs to note. It’s on debug as well so we should be getting all of the output. Do you know of anyone else who has seen this issue? A refresh of the page always fixes it, but it throws people off when they first see the error and they think the site is down.

---

<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:** [June 27, 2022, 4:45pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/4 "2022-06-27T16:45:47Z")

</div>

That’s good to hear about the disk drives.

As to your auth issues, I’m not sure. Seems like something in the ADFS handshake flow is going wrong? Maybe you can try `MellonDiagnosticsEnable` and/or get some info from the browser.

This is an example of what I’d be looking for. From chrome, because chrome can capture stuff on redirects (though you may have to enable it?).

In any case, you can se I get a 302, 302, then I hit the dashboard with 200 response codes. I’m wondering what your flow looks like and where you’re 500 is coming from (which page/network call).

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/6/6ebae3d32df9fd5fc3364fb306ebb460ab3347da.png)

---

<div class="post-metadata">

**Author:** ![rgas20](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rgas20/32/309_2.png) [@rgas20](https://discourse.openondemand.org/u/rgas20)\
**Post date:** [August 9, 2022, 9:14pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/5 "2022-08-09T21:14:15Z")

</div>

Jeff, I have quite a few logs to report back on, I don’t know if much of this is relevant to the issue with “Internal Server Error” or not. What I am pasting is an attempt from one of our users, it failed with “internal server error” at first then he refreshed and got in. If people get this error, they are always able to refresh the page and get in immediately after. Usually that error will appear, but not always. Apologies in advance for the incoming wall of text.

I diffed the two entries where someone had an unsuccessful login vs. a successful login. These are the only differences that I see, again not sure of relevance:

Successful: has req\_handler=“proxy\_server” (unsuccessful has req\_handler=“”)  
Successful: has res\_content\_length=“9018” (unsuccessful has res\_content\_length=“527”)  
Successful: has req\_referer=“[https://ondemand.sdstate.edu/pun/sys/dashboard](https://ondemand.sdstate.edu/pun/sys/dashboard)” (unsuccessful has req\_referer=“[https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)”)  
Successful: has res\_content\_disp=“inline; filename=‘icon.png’” (unsuccessful has res\_content\_disp=“”)  
Successful: has req\_filename=“proxy:[http://localhost/pun/sys/dashboard/apps/icon/RStudio/sys/sys](http://localhost/pun/sys/dashboard/apps/icon/RStudio/sys/sys)” req\_uri=“/pun/sys/dashboard/apps/icon/RStudio/sys/sys” (unsuccessful has req\_filename=“/opt/rh/httpd24/root/var/www/html/pun” req\_uri=“/pun/sys/dashboard”)  
Successful: has req\_accept\_encoding=“gzip, deflate, br”, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/) (unsuccessful has req\_accept\_encoding=“gzip, deflate, br”, referer: [https://ondemand.sdstate.edu/pun/sys/dashboard](https://ondemand.sdstate.edu/pun/sys/dashboard))

[Tue Aug 09 13:32:00.576456 2022] [ssl:info] [pid 17136] [client IP:60527] AH01964: Connection to child 8 established (server ondemand.sdstate.edu:443)  
[Tue Aug 09 13:32:00.588525 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.588556 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.588562 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.591200 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_util.c(2622): [client IP:60527] have\_paos\_media\_type=False valid\_paos\_header=False is\_paos=False error\_code=0 ecp options=  
[Tue Aug 09 13:32:00.591226 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_util.c(54): [client IP:60527] reconstruct\_url: url==“[https://ondemand.sdstate.edu/pun/sys/dashboard](https://ondemand.sdstate.edu/pun/sys/dashboard)”, unparsed\_uri==“/pun/sys/dashboard”  
[Tue Aug 09 13:32:00.642330 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_handler.c(278): [client IP:60527] loaded IdP “[http://adfs.sdstate.edu/adfs/services/trust](http://adfs.sdstate.edu/adfs/services/trust)” from “/opt/rh/httpd24/root/etc/httpd/mellon-new/idpmetadata.xml”.  
[Tue Aug 09 13:32:00.642356 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_handler.c(3597): [client IP:60527] Redirecting to login URL: [https://ondemand.sdstate.edu/mellon/login?ReturnTo=https%3A%2F%2Fondemand.sdstate.edu%2Fpun%2Fsys%2Fdashboard&IdP=http%3A%2F%2Fadfs.sdstate.edu%2Fadfs%2Fservices%2Ftrust](https://ondemand.sdstate.edu/mellon/login?ReturnTo=https%3A%2F%2Fondemand.sdstate.edu%2Fpun%2Fsys%2Fdashboard&IdP=http%3A%2F%2Fadfs.sdstate.edu%2Fadfs%2Fservices%2Ftrust)  
[Tue Aug 09 13:32:00.643029 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.643043 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.643048 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.645859 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_util.c(54): [client IP:60527] reconstruct\_url: url==“[https://ondemand.sdstate.edu/mellon/login?ReturnTo=https%3A%2F%2Fondemand.sdstate.edu%2Fpun%2Fsys%2Fdashboard&IdP=http%3A%2F%2Fadfs.sdstate.edu%2Fadfs%2Fservices%2Ftrust](https://ondemand.sdstate.edu/mellon/login?ReturnTo=https%3A%2F%2Fondemand.sdstate.edu%2Fpun%2Fsys%2Fdashboard&IdP=http%3A%2F%2Fadfs.sdstate.edu%2Fadfs%2Fservices%2Ftrust)”, unparsed\_uri==“/mellon/login?ReturnTo=https%3A%2F%2Fondemand.sdstate.edu%2Fpun%2Fsys%2Fdashboard&IdP=http%3A%2F%2Fadfs.sdstate.edu%2Fadfs%2Fservices%2Ftrust”  
[Tue Aug 09 13:32:00.645875 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_cookie.c(211): cookie\_set: mellon-cookie=cookietest; Version=1; Path=/; Domain=ondemand.sdstate.edu;  
[Tue Aug 09 13:32:00.694014 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_handler.c(278): [client IP:60527] loaded IdP “[http://adfs.sdstate.edu/adfs/services/trust](http://adfs.sdstate.edu/adfs/services/trust)” from “/opt/rh/httpd24/root/etc/httpd/mellon-new/idpmetadata.xml”.  
[Tue Aug 09 13:32:00.697231 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.697246 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:00.697252 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table  
[Tue Aug 09 13:32:02.093909 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_handler.c(278): [client IP:60527] loaded IdP “[http://adfs.sdstate.edu/adfs/services/trust](http://adfs.sdstate.edu/adfs/services/trust)” from “/opt/rh/httpd24/root/etc/httpd/mellon-new/idpmetadata.xml”., referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.097656 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_util.c(54): [client IP:60527] reconstruct\_url: url==“[https://ondemand.sdstate.edu/mellon/postResponse](https://ondemand.sdstate.edu/mellon/postResponse)”, unparsed\_uri==“/mellon/postResponse”, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.097690 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_cookie.c(211): cookie\_set: mellon-cookie=7757423f37b3bb7e8ef2893476565133; Version=1; Path=/; Domain=ondemand.sdstate.edu;  
[Tue Aug 09 13:32:02.097777 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_handler.c(551): [client IP:60527] The current LassoProfile object doesn’t contain a LassoIdentity object., referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.097901 2022] [auth\_mellon:debug] [pid 17136] auth\_mellon\_util.c(54): [client IP:60527] reconstruct\_url: url==“[https://ondemand.sdstate.edu/mellon/postResponse](https://ondemand.sdstate.edu/mellon/postResponse)”, unparsed\_uri==“/mellon/postResponse”, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.098353 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.098386 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.098396 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103121 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103137 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103143 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103147 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103151 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103156 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103160 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103164 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103169 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103173 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103179 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching user → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103184 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching clock → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.103188 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching escape → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115080 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching clock → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115102 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching debug → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115129 2022] [lua:debug] [pid 17136] @/opt/ood/mod\_ood\_proxy/lib/ood/user\_map.lua(21): [client IP:60527] Mapped ‘firstname.lastname’ =\> ‘firstname.lastname’ [11.911 ms], referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115135 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115144 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115177 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching unparsed\_uri → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115203 2022] [lua:debug] [pid 17136] lua\_request.c(1874): [client IP:60527] AH01490: request\_rec-\>dispatching is\_https → boolean, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115209 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching hostname → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115213 2022] [lua:debug] [pid 17136] lua\_request.c(1865): [client IP:60527] AH01489: request\_rec-\>dispatching port → int, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115223 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching escape → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:02.115229 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching escape → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.117961 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching info → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118006 2022] [lua:info] [pid 17136] [client IP:60527] socket seems to exist on count 0, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118011 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching info → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118594 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118610 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118615 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching subprocess\_env → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118619 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching clock → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118636 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching log\_id → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118642 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching user → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118646 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching useragent\_ip → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118650 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching method → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118654 2022] [lua:debug] [pid 17136] lua\_request.c(1865): [client IP:60527] AH01489: request\_rec-\>dispatching status → int, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118657 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching uri → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118661 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching protocol → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118675 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching hostname → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118679 2022] [lua:debug] [pid 17136] lua\_request.c(1865): [client IP:60527] AH01489: request\_rec-\>dispatching port → int, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118684 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching server\_name → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118688 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching handler → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118691 2022] [lua:debug] [pid 17136] lua\_request.c(1856): [client IP:60527] AH01488: request\_rec-\>dispatching filename → string, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118695 2022] [lua:debug] [pid 17136] lua\_request.c(1874): [client IP:60527] AH01490: request\_rec-\>dispatching is\_https → boolean, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118699 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118705 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118715 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118723 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118729 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118733 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118737 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118741 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118745 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118749 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_in → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118753 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118758 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118762 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118766 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118770 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118777 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118781 2022] [lua:debug] [pid 17136] lua\_request.c(1838): [client IP:60527] AH01486: request\_rec-\>dispatching headers\_out → apr table, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118844 2022] [lua:debug] [pid 17136] lua\_request.c(1848): [client IP:60527] AH01487: request\_rec-\>dispatching info → lua\_CFunction, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)  
[Tue Aug 09 13:32:04.118855 2022] [lua:info] [pid 17136] [client IP:60527] req\_protocol=“HTTP/1.1” req\_handler=“” req\_method=“GET” req\_accept=“text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,_/_;q=0.8” req\_user\_agent=“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0” res\_content\_length=“527” req\_content\_type=“” res\_content\_encoding=“” req\_status=“500” req\_origin=“” time\_user\_map=“11.911” local\_user=“firstname.lastname” req\_referer=“[https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)” res\_content\_language=“” req\_port=“443” req\_is\_websocket=“false” req\_server\_name=“ondemand.sdstate.edu” log\_hook=“ood” req\_accept\_charset=“” req\_hostname=“ondemand.sdstate.edu” log\_id=“YvKoIs5B1@gywap7TDmyNQAAAAg” res\_content\_location=“” res\_location=“” log\_time=“2022-08-09T18:32:04.118622Z” remote\_user=“firstname.lastname” req\_user\_ip=“IP” res\_content\_disp=“” req\_is\_https=“true” req\_filename=“/opt/rh/httpd24/root/var/www/html/pun” req\_uri=“/pun/sys/dashboard” time\_proxy=“0” res\_content\_type=“text/html; charset=iso-8859-1” req\_accept\_language=“en-us,en;q=0.5” req\_cache\_control=“” req\_accept\_encoding=“gzip, deflate, br”, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)

---

<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:** [August 10, 2022, 1:45pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/6 "2022-08-10T13:45:21Z")

</div>

OK - I apologize for this, but that seems to be a red herring. Meaning it would appear that we move past anything that `mod_auth_mellon` does and in fact fail in _our_ LUA blocks.

> [@rgas20](#):
>
> [Tue Aug 09 13:32:04.118006 2022] [lua:info] [pid 17136] [client IP:60527] socket seems to exist on count 0, referer: [https://adfs.sdstate.edu/](https://adfs.sdstate.edu/)

I think you still have a patch we were testing some time ago.I believe this was a debug log line that I added to debug another issue you were having - meaning we modified it from the original distribution. I’d reset back to the RPM installed files by re-installing. That’ll wipe all the files we modified and put them back to the originals.

Now the issue at hand looks like we’re failing in code that we wrote ourselves. I wonder if it’s simply a timing issue? That is, we’re passing traffic to the PUN before it’s actually started up? Because if you retry, it immediately starts working.

When this occurs, do you see anything interesting in `/var/log/ondemand-nginx/$USER/error.log` (the PUNs logs for a given user)?

It would seem we’re trying to contact the PUN and the 500 is originating from _it_.

---

<div class="post-metadata">

**Author:** ![rgas20](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rgas20/32/309_2.png) [@rgas20](https://discourse.openondemand.org/u/rgas20)\
**Post date:** [August 16, 2022, 7:06pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/7 "2022-08-16T19:06:03Z")

</div>

Jeff, thanks for the pointers. It may be a couple weeks before we can make any changes to our VM but when we can I will do this and report back.

---

<div class="post-metadata">

**Author:** ![rgas20](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rgas20/32/309_2.png) [@rgas20](https://discourse.openondemand.org/u/rgas20)\
**Post date:** [January 18, 2023, 10:36pm UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/8 "2023-01-18T22:36:53Z")

</div>

Jeff, this was ages ago but I just wanted to report back that reinstalling OOD seems to have fixed the issue. Sorry it took so long to get back to you. Thanks for the help on this.

---

<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:** [January 19, 2023, 3:23am UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/9 "2023-01-19T03:23:19Z")

</div>

Good deal! All’s well that ends well I guess!

---

<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:** [July 18, 2023, 3:23am UTC](https://discourse.openondemand.org/t/internal-server-error-on-first-login-interactive-apps-rsync-input-output-error-issue/2133/10 "2023-07-18T03:23:38Z")

</div>

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