You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After days of attempting to solve the problem myself I'm forced to realize that I don't have the skills to debug Python or Apache.
On a brand new RHEL8 system with @minimal installed, I am unable to get Puppetboard installed properly due to an error about the flask module not being found.
Using a simple:
class { 'puppetboard':
manage_git => true,
manage_virtualenv => true,
}
Apache barks with:
[Tue Mar 29 08:57:24.729351 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] mod_wsgi (pid=6074): Failed to exec Python script file '/srv/puppetboard/puppetboard/wsgi.py'.
[Tue Mar 29 08:57:24.729453 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] mod_wsgi (pid=6074): Exception occurred processing WSGI script '/srv/puppetboard/puppetboard/wsgi.py'.
[Tue Mar 29 08:57:24.729764 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] Traceback (most recent call last):
[Tue Mar 29 08:57:24.729823 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] File "/srv/puppetboard/puppetboard/wsgi.py", line 14, in <module>
[Tue Mar 29 08:57:24.729831 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] from puppetboard.app import app as application
[Tue Mar 29 08:57:24.729840 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] File "/srv/puppetboard/puppetboard/puppetboard/app.py", line 7, in <module>
[Tue Mar 29 08:57:24.729845 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] from flask import render_template, Response
[Tue Mar 29 08:57:24.729863 2022] [wsgi:error] [pid 6074] [remote 1.17.1.5:58516] ModuleNotFoundError: No module named 'flask'
Now, Puppetboard does seem to install properly but it's the Python module (I hope I'm describing it properly) that's giving me trouble.
Apache is running, but I get the following from curl/browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
A manual run of the WSGI yeilds:
[root@rhel8gold ~]# python3.8 /srv/puppetboard/puppetboard/wsgi.pyTraceback (most recent call last): File "/srv/puppetboard/puppetboard/wsgi.py", line 14, in <module> from puppetboard.app import app as application File "/srv/puppetboard/puppetboard/puppetboard/app.py", line 7, in <module> from flask import render_template, ResponseModuleNotFoundError: No module named 'flask'
It's been about four years since I've implemented a Puppet environment so I'm a bit rusty. I've tried the recommendations here:
After days of attempting to solve the problem myself I'm forced to realize that I don't have the skills to debug Python or Apache.
On a brand new RHEL8 system with @minimal installed, I am unable to get Puppetboard installed properly due to an error about the flask module not being found.
Using a simple:
Apache barks with:
Now, Puppetboard does seem to install properly but it's the Python module (I hope I'm describing it properly) that's giving me trouble.
Apache is running, but I get the following from curl/browser:
A manual run of the WSGI yeilds:
It's been about four years since I've implemented a Puppet environment so I'm a bit rusty. I've tried the recommendations here:
#527
and here:
#582
but to no avail.
I've had even less success with RHEL7.
SELinux is off and the local firewall allows incoming TCP/80.
Here's my apache vhost config:
The text was updated successfully, but these errors were encountered: