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># trac-admin
Warning: Detected setuptools version 5.5.1. The environment variable 'PKG_RESOURCES_CACHE_ZIP_MANIFESTS' must be set to avoid significant performance degradation.
trac-admin - Konsola administracyjna Trac 1.0.2
Użycie: trac-admin </sciezka/do/srodowiska-projektu> [polecenie [podpolecenie] [opcja ...]]
Wywołanie trac-admin bez polecenia rozpoczyna tryb interaktywny.
help Show documentation
initenv Create and initialize a new environment
=============================================================
export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1#export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1# trac-admin
trac-admin - Konsola administracyjna Trac 1.0.2
Użycie: trac-admin </sciezka/do/srodowiska-projektu> [polecenie [podpolecenie] [opcja ...]]
Wywołanie trac-admin bez polecenia rozpoczyna tryb interaktywny.
help Show documentation
initenv Create and initialize a new environment# trac-admin
trac-admin - Konsola administracyjna Trac 1.0.2
Użycie: trac-admin </sciezka/do/srodowiska-projektu> [polecenie [podpolecenie] [opcja ...]]
Wywołanie trac-admin bez polecenia rozpoczyna tryb interaktywny.
help Show documentation
initenv Create and initialize a new environment
Unfortunately, my /etc/apache2/envvars has this export since Aug 23 2015... (I even didn't know about it). So the problem is somewhere else.
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.
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/LinuxYou 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.
$ 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
W dniu sobota, 3 grudnia 2016 09:56:39 UTC+1 użytkownik RjOllos napisał: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.Latest stable.Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
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.I'd prefer stay at debian packages. But I can install it on other LXC container - for test purposes. I didn't use pip or easy_setup -which is better?
$ virtualenv pve
$ . pve/bin/activate
$ pip install -U setuptools wheel pip virtualenv
$ pip install trac == 1.0.13 # or 1.2pip installed 1.2 (i don't know how to force to install 1.0.x), == doesn't work
# Modify Apache to point to interpreter and lib directories in pveI totally don't know how ;D I'm newbie in virtualenv. I understand, that after login i have to . pve/bin/activate ;D
On Sunday, December 4, 2016 at 1:37:56 PM UTC-8, Tomasz Brzezina wrote:
W dniu sobota, 3 grudnia 2016 09:56:39 UTC+1 użytkownik RjOllos napisał: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.Latest stable.Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/LinuxI pinged the package maintainer about this:There are hundreds of fixes and minor improvements since 1.0.2.
# Modify Apache to point to interpreter and lib directories in pveI totally don't know how ;D I'm newbie in virtualenv. I understand, that after login i have to . pve/bin/activate ;DLet me get back to you on that, shortly.- Ryan
<Directory /var/lib/trac/apache>
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup trac
Require all granted </Directory>
On Sunday, December 4, 2016 at 1:31:39 PM UTC-8, Tomasz Brzezina wrote:Unfortunately, my /etc/apache2/envvars has this export since Aug 23 2015... (I even didn't know about it). So the problem is somewhere else.I'd still suggest checking the logs to be sure the environment variable is effective.
I have a system with Debian 8 update 6, which I think is the latest.# cat /etc/debian_version8.6# python --versionPython 2.7.9
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>
Is there any way to speed up FIRST run?After long pause (e.g. 24 hours) wsgi is unloaded from memory and first running takes lots of time - about 40 seconds - when it runs, everything runs very fast, but wakeing up is paniful. Any ideas?
Do you have any hints from looking at the logs for Trac and Apache where the time is being spent? I'd be interested to know the time from when the request hits the web server to when the //Environment Startup// message appears in the Trac log.
I think, that "problem" is with logrotate - it restarts apache2, so wsgi isn't loaded - first time next day wsgi needs to start...