On Friday, December 2, 2016 at 9:20:19 PM UTC-8, RjOllos wrote:
>
>
>
> 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>
>>
>>
>
> Did you find any other exception or error messages in your logs?
>
> We discussed PKG_RESOURCE_ZIP_MANIFEST. Please confirm that you see the 
> message before setting environment variable, and that the message is not 
> seen after setting the environment variable:
>
> "Warning: Detected setuptools version 5.5.1. The environment variable 
> 'PKG_RESOURCES_CACHE_ZIP_MANIFESTS' must be set to avoid significant 
> performance degradation."
>  
> The message will be seen when issuing any trac-admin command. See:
> https://trac.edgewall.org/ticket/12085#comment:5
>
> - Ryan
>


The setuptools issue was originally discussed in (1).

Which version of Debian are you using? I would be surprised to see the 
latest Debian packaging such an old version of Trac.

You could just install the latest Trac, and the latest setuptools as well 
while you are at it. If you are worried about polluting your system 
packages directory, an option would be to install Trac in a virtual 
environment. I'm going to modify the install steps soon (2) to describe how 
to do that. There are a few tricky parts, such as modifying your Apache 
config and getting the subversion bindings to import. I could write that up 
if you are willing to pursue that as an option.

The latest Trac is 1.2, and the latest on 1.0-stable is 1.0.13. A lot of 
stuff has been fixed since 1.0.2, and there are many improvements in 1.2.

If you'd like to go this route, let me know which version of Python you are 
running, and whether python-virtualenv and python-pip are packages 
available on your system (and what their versions are). If those packages 
are available, the steps are basically:

$ virtualenv pve
$ . pve/bin/activate
$ pip install -U setuptools wheel pip virtualenv
$ pip install trac == 1.0.13 # or 1.2
# Modify Apache to point to interpreter and lib directories in pve
# Make Subversion libraries visible to "pve"

I'll provide more detail if you have interest. I would need to pull those 
details from some of my installations, notes and scripts.

- Ryan

 (1) https://groups.google.com/d/msg/trac-users/gX5kYTUFXM4/dDbPFEojF9MJ
 (2) https://trac.edgewall.org/ticket/12288

-- 
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.

Reply via email to