Thanks again, @holch, for taking the time to help me on this. I know you are a volunteer and your time is valuable. Thank you.
email method is SMTP via gmail. smtp.gmail.com:587. Almost all (99% or more) emails are sent and received successfully. I understand there could be a glitch for a very short window, but we have people completing the survey frequently throughout the day. Since the basic admin notification comes to my email box I can see when people submit their surveys. There were successful submissions and emails within a few minutes on either side of the failures. I don't see any errors or failures in the mail logs. I know the email server could be the cause, but I can't think of any way to determine that.
I have enabled DEBUG=1 within the LS system, but, if I understand it correctly, those errors are displayed in the browser and not logged anywhere. Is that correct? Is there a way to log these errors to a server file?
With the 2 most recent failures where I was actively working with the user, I got their public IP address and looked in the DB.
One of the failures was a "400: Bad Request" error and there was no entry in the DB around that time. The other failure had no http error (such as 400, 401, 404) but the layout_error.twig was activated and displayed. For that failure there is an incomplete survey response in the DB for his IP address.
How we get here: our organization sends out a reminder email every month on the 1st day. (the survey is active only from 1st to the 10th of the month). The email is sent via an email service that attaches a tracking code to the survey URL. Such as: survey.ourorgdomain.org / index.php / 123456? lang=en & ct=YTo1OntzOjY6InNvdXJjZSI........
99% of the people click on the link in the email and the entire process works successfully. A small handful clikc on the link and they get to the first (and only) page of the survey, but then get a failure when they click on "Submit"
With the two failures that I know of this week, I asked each of them to use the direct link and not the tracking link in the email. In both cases it worked correctly, but that could be that the small window of email failure was resolved, too. I'm stumped.
Is there more information in some log area somewhere that I don't know about and should be looking at? I've looked at the apache2 logs, and seeing nothing there either.
thanks again for your help.
Rick