patchman icon indicating copy to clipboard operation
patchman copied to clipboard

Installation default wsgi apache config

Open Dustlayer opened this issue 4 years ago • 2 comments

I've installed patchman on Ubuntu 20.04 using the repository way mentionend in the installation instructions. After adding the allowed networks for sending reports I see errors in the patchman-client and in the apache error logs. The patchman-client, when started with -v, shows an 500 Internal Server Error (default response code 500 html page).

In the apache error.log I see once this error, once the other error: Error 1: ImportError: Interpreter change detected - this module can only be loaded into one interpreter per process. Error 2: RuntimeError: populate() isn't reentrant

The reports also don't come up in patchman, as they can't be transmitted.

I can fix this adding following line to /etc/apache2/conf-enabled/patchman.conf:

WSGIApplicationGroup %{GLOBAL}

After a restart from apache, the reports can be sent successfully.

So maybe this line should be added to the default config for the package in Ubuntu 20.04?

Dustlayer avatar Oct 21 '21 11:10 Dustlayer

Thanks for the bug report! I didn't come across this in my testing but if it fixes it for you, could you submit a PR with the fix? Thanks

furlongm avatar Oct 21 '21 18:10 furlongm

Do you have multple django apps running on the same apache server?

furlongm avatar Feb 13 '22 20:02 furlongm