On Friday, December 2, 2016 at 2:54:01 PM UTC-8, Tomasz Brzezina wrote:
>
> I have a problem with envirnoment startups during working on trac, I can
> see it in debug.file. Previously i thought, that this is XMLRPCPlugin
> connected problem
>
> https://trac-hacks.org/ticket/12977, but when I uninstall plugin, problem
> persists (less but still).
>
> I can reproduce it but not everytime. If I go through the webpage
> sometimes I see environment startup in log. Of course this leads to
> performance degradation. (instead of 0.2 ms web page loads in 1300ms). This
> isn't connected to exact link, I can refresh link 40 times without startup,
> but after few seconds of doing nothing next refresh produces envirnonment
> startup.
>
> rjollos said, that environment startup should be done only after apache
> restart, so i've got a problem ;D
>
> My trac installation is debian style - apt-get install trac - and I use
> apache2 with mod_wsgi with multiple tracs, first Alias is a result of
> finding of solution, TRAC1 is the instalation I focused. If I solve one, I
> think I could solve others ;D
>
> Alias /trac/TRAC1/chrome /var/www/html/trac1/trac/htdocs/
> WSGIDaemonProcess trac
> WSGIScriptAlias /trac /var/lib/trac/apache/trac.wsgi
> <Directory /var/lib/trac/apache>
> WSGIApplicationGroup %{GLOBAL}
> Require all granted
> </Directory>
> <Location ~ "/(trac|svn)/TRAC1/login">
> AuthUserFile /etc/apache2/users.trac1
> Require valid-user
> </Location>
> <Location ~ "/(trac|svn)/TRAC2">
> AuthUserFile /etc/apache2/users.trac2
> Require user user1 user2
> </Location>
> <Location ~ "/(trac|svn)/TRAC3">
> AuthUserFile /etc/apache2/users.trac2
> Require user user1 user3
> </Location>
> <Location /svn/>
> DAV svn
> SVNParentPath /var/lib/svn/
> AuthType Basic
> AuthName "My's SVN"
> AuthzSVNAccessFile /etc/subversion/access
> </Location>
>
>
I also noticed a difference between my Apache configs and the one you
showed in the first post. Below "WSGIApplicationGroup %{GLOBAL}" I have
"WSGIProcessGroup trac". I am not sure whether that should make a
difference, however you could try:
<Directory /var/lib/trac/apache>
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup trac
Require all granted
</Directory>
- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.