Error Logs from ServerModules

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Error Logs from ServerModules

Post by jyoung »

Sometimes my ServerModule crashes with a Fatal Error and I get the "Unrecoverable error occurred while executing the Web application routine" message.
Capture.PNG
Capture.PNG (13.99 KiB) Viewed 12642 times
When I look for the error logs under local or web (both data and webserver) I don't have any log entries.

Should these errors be logged?

Perhaps I don't have logging enabled properly on my dev box. Is there a setting or something I need to check to ensure I get the logs?
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Error Logs from ServerModules

Post by atostaine »

Is your server running on i? Have you tried looking for LWEB_JOB Joblogs?
Art Tostaine
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Error Logs from ServerModules

Post by jyoung »

This is happening on my local dev box, so its Windows.
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Error Logs from ServerModules

Post by Stewart Marshall »

RDMLX errors that occur in the web server side are recorded in the Data/Application server error log.
Capture.PNG
Capture.PNG (49.28 KiB) Viewed 12460 times
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Error Logs from ServerModules

Post by jyoung »

That's the problem, I am not getting any of those logs.

The problem turned out to be a error in the select_sql command.

I tried a divide by zero error to see if I get the log and I don't.
error.png
error.png (12.42 KiB) Viewed 12441 times
Web Server Log
log1.png
log1.png (14.91 KiB) Viewed 12441 times
Data Server Log
log2.png
log2.png (18.02 KiB) Viewed 12441 times
Bikel
Posts: 3
Joined: Wed Sep 07, 2016 3:32 pm

Re: Error Logs from ServerModules

Post by Bikel »

As we can see from your screenshot, the location of the web logs is c:\windows\temp, this C:\Windows\Temp location is effectively %TEMP% when IIS is running as a service. The most obvious explanation is that you don't have the authority to write to the c:\windows\temp location.

From a DOS command line, type this
start c:\windows\temp
If it opens, try to create a simple text file. If you can't do either of these, lack of permissions is probably the reason the logs can't be written.
After running that command, I was told (I've never seen this) that if you don't have permission to view this folder, a dialog is displayed where you can select to allow you to view the folder.
HTH
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Error Logs from ServerModules

Post by jyoung »

Come to find out I don't have access to that folder.
I got the dialog like you mentioned (wish I would have screen shot it) but after I hit Ok (or something I don't recall what it was) I can run the command again and get access to the folder.

Running the divide by zero routine and I get the error in the logs!

Thanks a ton! That has been bothering me for awhile and I did not even think to check the permissions.

Thanks again!

Joe
Post Reply