Skip to content

Patchman server installation on RHEL/CENTOS/Rocky/... with "pip install patchman gunicorn whitenoise also does not work" #840

@litebito

Description

@litebito

Hi,

I'm trying to install patchman server on CentOS Stream 10 using the pip install patchman gunicorn whitenoise also does not seem to work:
Probably because instructions for this way of installing are not complete.
Installing in /opt/patchman

cd /opt/patchman
python3 -m venv .venv
. .venv/bin/activate
pip install patchman gunicorn whitenoise

then you have to update the settings file, but it is not in /etc/patchman, but in .venv/lib/python3.12/site-packages/etc/patchman/local_settings.py

only then you can execute the following two commands

patchman-manage migrate
patchman-manage createsuperuser

then you can run the webserver:
gunicorn patchman.wsgi -b 0.0.0.0:80

there I get stuck no matter what I set as STATIC_ROOT in the settings file, the webserver does not find some static files, it defaults to /patchman

 patchman-manage collectstatic

You have requested to collect static files at the destination
location as specified in your settings:

    /opt/patchman/static

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes

0 static files copied to '/opt/patchman/static', 182 unmodified.

 gunicorn patchman.wsgi -b 0.0.0.0:80
[2026-06-09 23:17:19 +0200] [41330] [INFO] Starting gunicorn 26.0.0
[2026-06-09 23:17:19 +0200] [41330] [INFO] Listening at: http://0.0.0.0:80 (41330)
[2026-06-09 23:17:19 +0200] [41330] [INFO] Using worker: sync
[2026-06-09 23:17:19 +0200] [41331] [INFO] Booting worker with pid: 41331
[2026-06-09 23:17:19 +0200] [41330] [INFO] Control socket listening at /root/.gunicorn/gunicorn.ctl
Not Found: /patchman/login/
Not Found: /patchman/static/css/base.css
Not Found: /patchman/static/js/expandable-text.js
Not Found: /patchman/static/js/sidebar.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions