Re: Roundup setup with mod_wsgi

Tom Ekberg <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <DM6PR08MB4778E49F1B46D2960FBF4E2ACA9A0@DM6PR08MB4778.namprd08.prod.outlook.com>
Tonu,


Your WSGI file - oranges.py - closely matches mine. Mine differs only that it uses shibboleth, python3, xapian and venv. You apache config differs from mine. I have a user specified in in the WSGIDaemonProcess: user=roundup. I create a roundup user to run roundup. At least the permissions in the db subdirectories need to be such that the roundup user can create files in them. I made the whole tracker directory, where schema.py and config.ini are located, subdirectories too, owned by the roundup user. Another difference is I'm using <location> instead of <directory> (probably not important). Mine specifies Order deny,allow. Not sure what that means (I'd have to look it up). Here is my apache config lmit_oncall.conf:


LogLevel info

# Make sure trailing / is there.
RedirectMatch           permanent ^/(lmit_oncall)$ /$1/

WSGIDaemonProcess       tracker_lmit_oncall_pg user=roundup group=roundup\
    processes=5 threads=1 \
    home=/opt/roundup/trackers/lmit_oncall  python-home=/usr/local/share/virtualenvs/tracker-env

WSGIScriptAlias         /lmit_oncall /opt/roundup/trackers/lmit_oncall/apache/wsgi.py

<location               /lmit_oncall>
  WSGIProcessGroup      tracker_lmit_oncall_pg

  AuthType              Shibboleth
  ShibRequireSession    On
  ShibUseEnvironment    On
  Order                 deny,allow
  Require               shib-attr isMemberOf ~ urn:mace:washington.edu:groups:(u_labmed_app_tracker-admin|u_labmed_div_informatics)

</location>

Not sure what AuthType defaults to if not specified. The apache documentation doesn't say. Did you look in the apache logs. Sometime you can find useful details there.


[cid:766e25dc-6db0-4ae3-956f-7933c872243e]



________________________________
From: Tonu Mikk <[email protected]>
Sent: Thursday, January 24, 2019 12:52 PM
To: [email protected]
Subject: [Roundup-users] Roundup setup with mod_wsgi

Hello,

I am trying to configure roundup with Apache mod_wsgi, but so far I haven't succeeded.  Here is what my setup looks like.

Tracker is installed in /swadm/roundup/trackers/support
In the config.ini the tracker web is set to oranges.drc.umn.edu<http://oranges.drc.umn.edu>
I have a file called oranges.py in /swadm/roundup/trackers with the following content:
---
from roundup.cgi.wsgi_handler import RequestDispatcher
tracker_home = '/swadm/roundup/trackers/support'
application = RequestDispatcher(tracker_home)
---
The Apache virtual config has the following:

<VirtualHost *:443>
        ServerName oranges.drc.umn.edu<http://oranges.drc.umn.edu>

        WSGIScriptAlias / /swadm/roundup/trackers/oranges.py
        WSGIDaemonProcess support.roundup group=support threads=25
        WSGIProcessGroup support.roundup

    <Directory /swadm/roundup/trackers>
        <Files oranges.py>
            Order allow,deny
            Allow from all
        </Files>
    </Directory>

# SSL directives omitted for brevity
</VirtualHost>

When I try to access https://oranges.drc.umn.edu I get a 403 message:
Forbidden
You don't have permission to access / on this server.

I have created a group called "support" with the following content:
support:x:1006:tmikk,swadm,apache,mail

In the Roundup installation documentation for UNIX<http://roundup.sourceforge.net/docs/installation.html#unix-environment-steps> it says:

"The tracker “db” directory should be chmod’ed g+sw so that the group can write to the database, and any new files created in the database will be owned by the group.

This is something I have not done yet.  Can someone tell me what this command would look like in my case.  I am not entirely sure if I need to run it against a folder or a file.

Is there anything else I need to change?  Thank you!




--
Tonu Mikk
Adaptive Technologist | Disability Resource Center | diversity.umn.edu/disability<http://diversity.umn.edu/disability>
University of Minnesota | umn.edu<http://umn.edu>
[email protected]<mailto:[email protected]> | 612-625-3307

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
Outlook-ekfyrifg.jpg (image/jpeg, 14.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.