Hi

I have a fresh Trac installation (1.2.3), configured and running under
nicely under Apache (.wsgi) with a PostgreSQL 10 database backend.

I tried to install my first plugin (TracTags). This works when the TracTags
.egg file is placed under the project's own plugin directory. However, when
I try to install the plugin globally, nothing happens.
All configurations are untouched. The only change that makes this work or
not is placement of the .egg file.

This works (OK) (but I have to duplicate the plugin)
cp TracTags-0.11.dev0-py2.7.egg /var/lib/trac/proj1/plugins/
cp TracTags-0.11.dev0-py2.7.egg /var/lib/trac/proj2/plugins/

This does not work:
rm /var/lib/trac/proj1/plugins/*
rm /var/lib/trac/proj2/plugins/*
cp TracTags-0.11.dev0-py2.7.egg /etc/trac/plugins/

After carefully reading the docs I have:
 * explicitly enabled the plugin in each project's trac.ini
 * checked that there are no typos

Don't know how to move forward. I'd appreciate your help.
Below is the description of my setup.

Cheers --fernan

I have currently two projects
/var/lib/trac/projenv1
/var/lib/trac/projenv2
also with .egg-cache under /var/lib/trac
and readable/writable by the apache user (www-data)

$ sudo ls -la /var/lib/trac/
drwxr-xr-x  5 root     root     4096 Jan 25 16:11 .
drwxr-xr-x 43 root     root     4096 Jan 22 16:46 ..
drwxr-xr-x  7 root     root     4096 Jan 22 14:53 proj1
drwxr-xr-x  8 root     root     4096 Jan 25 15:27 proj2
drwxr-xr-x  2 www-data www-data 4096 Jan 25 16:14 .egg-cache

These were deployed to
/var/www/proj1
/var/www/proj2

Each apache vhost has its corresponding Apache conf lines (apart from other
standard stuff):
WSGIScriptAlias /trac/proj1 /var/www/proj1/cgi-bin/trac.wsgi
WSGIScriptAlias /trac/proj2 /var/www/proj2/cgi-bin/trac.wsgi

The TracTags plugin has been placed in /etc/trac/plugins_:
$ ls -l /etc/trac/
drwxr-xr-x 2 root     root     4096 Jan 25 16:17 conf
drwxr-xr-x 2 www-data www-data 4096 Jan 25 15:19 plugins
drwxr-xr-x 2 root     root     4096 Jan 25 12:51 templates

$ ls -l /etc/trac/plugins/
-rw-r--r-- 1 www-data www-data 136250 Jan 25 15:19
TracTags-0.11.dev0-py2.7.egg

There is a global trac.ini in /etc/trac/conf with this content:
[inherit]
plugins_dir = /etc/trac/plugins
htdocs_dir = /etc/trac/htdocs
templates_dir = /etc/trac/templates

Then in proj1/conf/trac.ini
[inherit]
file = /etc/trac/conf/trac.ini
[components]
tractags.* = enabled

(idem config for proj2/conf/trac.ini)

-- 
fernan

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