WSGI trouble

Tom Ekberg <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <CO3PR08MB79573F71985ECC8B294024A6CA889@CO3PR08MB7957.namprd08.prod.outlook.com>
I spent much of the past several days incrementally adding debug statements to roundup/cgi/client.py of the form

if self.debug:
    print(f'something', file=sys.stderr)

When using Apache's mod_wsgi, when run this will write 'something' to /var/log/apache2/error.log.

A few minutes ago I got to a place where I had added code in roundup.cgi.client.determine_user() which records the username into a log file. Unfortunately the /var/log/tracker directory hadn't been created so it just raised an exception and exited that function back to the caller client.inner_main(), not reporting any problems. This skipped past the call to request.start_response, resulting in the apache WSGI error messages I got.

I manually created the directory and updated my Ansible install script to create it. My it_test tracker now comes up and displays data from the database! Woo Hoo!

I'll look at the exception handling in the call tree to see if this could be caught earlier, and suggest a patch after I upgrade to Roundup 2.2.

Thanks for all of your help.

Tom Ekberg
Senior Computer Specialist
Department of Laboratory Medicine and Pathology
4th Floor, Pat Steel Building, currently WFH
Home: (253) 561-2509
Email: [email protected]<mailto:[email protected]>

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.