Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation default wsgi apache config #351

Open
Dustlayer opened this issue Oct 21, 2021 · 2 comments
Open

Installation default wsgi apache config #351

Dustlayer opened this issue Oct 21, 2021 · 2 comments

Comments

@Dustlayer
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants