furlongm / patchman

Patchman is a Linux Patch Status Monitoring System
http://patchman.openbytes.ie
GNU General Public License v3.0
358 stars 78 forks source link

Installation default wsgi apache config #351

Open Dustlayer opened 3 years ago

Dustlayer commented 3 years ago

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?

furlongm commented 3 years ago

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 commented 2 years ago

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