Koozali.org formerly Contribs.org

[ANNOUNCE] smeserver-trac contrib

[ANNOUNCE] smeserver-trac contrib
« on: March 25, 2007, 06:20:55 PM »
Hi All,

For those of you who would like to use Trac on your SME server, I like to announce the availability of the an updated smeserver-trac contrib.

The contrib has the following features:
  • Simple setup of Trac environments through SME server-manager panel
  • Can be selectively enabled per domain
  • Access configurable for ''Local Network Only'' or ''Entire Internet''
  • Configurable list of users and/or user groups that are allowed to login.
  • User authentication uses SME user names and passwords
  • Complements the smeserver-subversion contrib with a powerfull repository browser giving a very nice view of change sets in your repository and syntax colouring and line number views of your repository files.
  • Many Trac configuration items automatically configured and updated by the SME server configuration.
  • Preset Trac permissions with ''anonymous'' users mostly having read only access and wiki create and write access only granted to ''authenticated''  users.
  • SME ''admin'' is also the Trac Administrator.
  • Trac WebAdmin interface accessible  to the ''admin'' user for further

    configuration of ''components'', ''versions'',  ''milestones'' and
    ''permissions''.[/list]

For the moment the smeserver-trac contrib and a set of associated rpms are available from my own server. It may be easiest to set it up as a repository in yum as follows:

Code: [Select]
db yum_repositories set through-ip repository \
   BaseURL http://through-ip.com/packages/smeserver/i386/ \
   Name 'Through IP Pty. Ltd. Packages Repository' \
   EnableGroups yes \
   Visible yes \
   GPGCheck no \
   status disabled

expand-template /etc/yum.conf

yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac


Please note that this is a preliminary release and may not be completely stable (although it works for me), so use at your own peril.

This is my first project at building a contrib for SME and I welcome your (constructive) comments and feedback.

Enjoy!

Marco Hess
Adelaide - Australia

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #1 on: March 27, 2007, 04:39:56 AM »
Great stuff!
Thanks,

Missing mod_python:
Error: Missing Dependency: mod_python is needed by package smeserver-mod_python
Error: Missing Dependency: mod_python >= 3.1 is needed by package smeserver-trac

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #2 on: March 27, 2007, 05:52:18 AM »
Ouch!
Code: [Select]

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6953 root      25   0 1275m 839m  800 R  100 83.8   1:47.26 trac-admin

[ANNOUNCE] smeserver-trac contrib
« Reply #3 on: March 27, 2007, 06:28:43 AM »
Quote from: "stuntshell"
Missing mod_python:
Error: Missing Dependency: mod_python is needed by package smeserver-mod_python
Error: Missing Dependency: mod_python >= 3.1 is needed by package smeserver-trac


mod_python is actually available from the base repository which I think is enabled as standard on new SME installs.

However, I have copied the mod_python rpm into my own repository for convenience

Cheers,
Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #4 on: March 27, 2007, 06:35:02 AM »
Quote from: "stuntshell"
Ouch!
Code: [Select]

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
6953 root      25   0 1275m 839m  800 R  100 83.8   1:47.26 trac-admin


What where you doing when that happened? Is there anything in your logs that indicate what is going on?

trac-admin is only used during the creation of a new trac project environment.

Marco
Adelaide - Australia

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #5 on: March 27, 2007, 06:38:34 AM »
exactly what I was doing, creating a new trac project.
I had to kill it as it hung there for over 10 minutes and my other processes started to die  :(

[ANNOUNCE] smeserver-trac contrib
« Reply #6 on: March 27, 2007, 06:45:45 AM »
Quote from: "stuntshell"
exactly what I was doing, creating a new trac project.
I had to kill it as it hung there for over 10 minutes and my other processes started to die  :(


Can you quote me the exact parameters that you used in the SME panel or send me a screenshot of the panel just before you press the ADD button so I can try to reproduce it?

Marco
Adelaide - Australia

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #7 on: March 27, 2007, 07:01:23 AM »
The only thing I can think of is that I used a '.' in both names:
subversion sub.one and test.trac

Adding more info:
I cannot delete the Trac Project that never got created:
Code: [Select]


Operation status report
Can't find account for Trac project environment "test.trac" (does it exist?)

[ANNOUNCE] smeserver-trac contrib
« Reply #8 on: March 27, 2007, 07:25:48 AM »
Quote from: "stuntshell"
The only thing I can think of is that I used a '.' in both names:
subversion sub.one and test.trac

Adding more info:
I cannot delete the Trac Project that never got created:
Code: [Select]


Operation status report
Can't find account for Trac project environment "test.trac" (does it exist?)


I just tried that and the Trac environment creates without a hitch so I think it must be something else. I tried various strange names and they either work or an validation error is raised. I even tried to remove the trac parent directory and all this produces are error notifications in the SME panel, but never a trac-admin process that hangs with 100% CPU.

Are you able to reproduce the problem consistently?

Also I am assuming that you did NOT have Trac installed prior to installing smeserver-trac and that the yum install pulled all the packages from my repository?

Cheers,

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #9 on: March 27, 2007, 07:39:35 AM »
Quote from: "stuntshell"

I cannot delete the Trac Project that never got created:
Code: [Select]
Operation status report
Can't find account for Trac project environment "test.trac" (does it exist?)


That error only comes up when the trac environment name cannot be found in the accounts database and when it does not exist, it should not have show up in the "Current list of Trac project environments:" table on the first page of the panel.

On my test system it shows as follows:
Code: [Select]

# db accounts show trac.test
trac.test=trac
    Access=local
    Description=Trac Test
    Groups=
    Modifiable=yes
    Removable=yes
    Repository=sub.test
    RepositoryPath=
    Users=


See if you can find your trac environment in the accounts database like above and post the result of that.

Cheers,

Marco
Adelaide - Australia

FlameDuck

Cheers.
« Reply #10 on: March 27, 2007, 10:35:56 AM »
Works like a charm here, thanks a lot man!

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #11 on: March 27, 2007, 03:14:58 PM »
OK, so maybe it's time for a reinstall...
just so you know:
db accounts does show exactly as yours, and I installed using yum.
I'll reply back after install on a fresh system
 :wink:

Offline dlj

Thankyou thf - just what I needed.
« Reply #12 on: March 27, 2007, 10:21:16 PM »
Installation was easy - after I found mod_python :)

However I am in the UK and would prefer the dates in a UK format.
Currently milestone dates are displayed as "Due in 3 days (03/30/07)"
And I would like it to be "Due in 3 days (30/03/07)"

I have checked my env and LANG=en_GB
This is setup in /etc/sysconfig/iL8n

Is there anywhere else that I need to set up the locale?

This is looking very good for me - just what I needed to look after my remote customers

Offline dlj

Re: Thankyou thf - just what I needed.
« Reply #13 on: March 27, 2007, 11:53:16 PM »
Quote from: "dlj"
I
However I am in the UK and would prefer the dates in a UK format.
Currently milestone dates are displayed as "Due in 3 days (03/30/07)"
And I would like it to be "Due in 3 days (30/03/07)"

I have checked my env and LANG=en_GB
This is setup in /etc/sysconfig/iL8n


Fixed it -
In etc/httpd/conf/httpd.conf
after each line that is = "SetHandler mod_python"
added a line = "    PythonOption TracLocale "en_GB"

I had to do it twice, but only have one trac project - maybe I have done something wrong - but it now displays the date in the required format :)

Re: Thankyou thf - just what I needed.
« Reply #14 on: March 28, 2007, 12:44:52 AM »
Quote from: "dlj"

In etc/httpd/conf/httpd.conf
after each line that is = "SetHandler mod_python"
added a line = "    PythonOption TracLocale "en_GB"


That is indeed the sort of thing that needs to bin in httpd.conf to get Trac in the right locale. I did the same thing for en_AU to get the dates right.

However you need to be carefull if you edited /etc/httpd/conf/httpd.conf
directly as it will be overwritten on the next reconfiguration of SME.

I need to figure out what the configured locale of the SME installation is so I can put that in the httpd template. At the moment SME for english language appears to be mainly en_US :-)

Marco
Adelaide - Australia

Upgrade procedure smeserver-trac version 0.2-8 and earlier
« Reply #15 on: March 28, 2007, 07:04:37 AM »
I you are trying the smeserver-trac contrib, you should be aware versions earlier than 0.2-8 have a problem in the install procedure that cause your trac environments to be deleted when you upgrade to a newer version of smeserver-trac.  

This is now fixed, but if have a version 0.2-8 or earlier installed I suggest you follow the following steps (as root):

Code: [Select]
cd /home/e-smith/files
cp -r trac/ trac-backup
yum remove smeserver-trac
yum --disablerepo=* --enablerepo=through-ip clean all
yum --enablerepo=through-ip install smeserver-trac


Then in server manager, recreate your Trac project environments exactly as you had them and then as root again:

Code: [Select]
cd /home/e-smith/files
service httpd-e-smith stop
cp -r trac-backup/ trac
service httpd-e-smith start


From then on you will be safe from loosing your trac environments upon upgrades of smeserver-trac.

Regards,

Marco
Adelaide - Australia

Re: Thankyou thf - just what I needed.
« Reply #16 on: March 28, 2007, 07:19:35 AM »
Quote from: "dlj"
I am in the UK and would prefer the dates in a UK format.


:D smeserver-trac-0.2-10 now supports setting the TracLocale in the httpd template with the value read from the configuration database.

You can check the language that your system is set to and that Trac will use from:

Code: [Select]
config show sysconfig

the Language setting that is shown there will be used for the Trac environment.

If required you can change the Language property with something like:

Code: [Select]
config setprop sysconfig Language en_GB

The only thing I am not sure of at the moment is if this database value is  the right one to use as it seems to get reset after a signal-event console-save :?

But in the mean time it works and in Trac is showing dates in that configured Locale like 28.3.07 for de_DE and 28/03/07 for en_GB and en_AU and 03/28/07 for en_US.

If you plan to upgrade, please check the previous post re. upgrading and the possibility that you loose :cry: your trac environments.

Enjoy!

Marco
Adelaide - Australia

Offline Franco

  • *
  • 1,171
    • http://contribs.org
[ANNOUNCE] smeserver-trac contrib
« Reply #17 on: March 30, 2007, 02:47:18 AM »
Very good!
Fresh install did it!

Thanks a lot and sorry for the confusion!

Fantastic Contrib!
« Reply #18 on: March 31, 2007, 03:27:26 PM »
Hi thf,

First, thanks alot for this fantastic contrib!
I tried to built a contrib for TRAC for a while but ultimitely failed because of lack of time and understanding (mainly understanding, i'm still new to linux  :?  ).

I do have one issue which may just be a matter of taste but I thought I'd share it in case its easy to implement:

Usually, I like to setup the svn repo & trac database so they have the same project name to minimise confusion.
eg: the "myproject" project would look like:
/path_to_repo/myproject   (repo folder)
/path_to_trac/myproject    (trac DB)
and similarly the URL's to each carry the same project name:
  http://myserver/svn/myproject
  http://myserver/trac/myproject
or even better:
  http://svn.myserver/myproject
  http://trac.myserver/myproject

I've found that this removed any confusion there might have been about which trac project was for which svn repository.

I have figured how to change the URL by using custom "VirtualHosts" fragments but the TRAC contrib wont allow me to create a TRAC system with the same name as the svn repository.
It gives the following error when I try:
"The Trac project environment "myproject" is an existing account."

Do you have any suggestions as to how I might be able to have the same name for both TRAC & svn projects?

Thanks for any help.

Black

PS: One thought that came to mind was to append "_trac" to all trac account names and remove the "_trac" appendage when referring to the file location or URL.

[ANNOUNCE] smeserver-trac contrib
« Reply #19 on: April 02, 2007, 10:40:33 AM »
Quote from: "blacknz"
Hi thf,
Usually, I like to setup the svn repo & trac database so they have the same project name to minimise confusion.
eg: the "myproject" project would look like:
/path_to_repo/myproject   (repo folder)
/path_to_trac/myproject    (trac DB)
and similarly the URL's to each carry the same project name:
  http://myserver/svn/myproject
  http://myserver/trac/myproject
or even better:
  http://svn.myserver/myproject
  http://trac.myserver/myproject


Hi blacknz,
My very first attempt in setting up Trac on my SME server used the account name from the subversion repository with a /trac prefix). However when I was delving deeper into it,  there were a couple of reasons against that approach:
  • I discovered that Trac allows for creating any number of trac projects for different parts of the same SVN repository. I really liked this and decided to support this in the contrib and hence there is no longer a true one-on-one mapping of names anyway. On my own projects I have only one or two main repositories which each hold multiple 'projects' or 'modules'. I have Trac environments for almost all of those projects.
  • For simplicity, the contrib relies on and makes use of the SME account naming system. This avoid avoids clashes  between different things (e.g. users versus ibays versus pseudonyms, etc.).  As a consequence each account item on SME needs to have a unique name. Also, a prefix like /trac/project could clash with an ibay called trac so I still would have to have build checks for that :-(!. Then finally, I was not sure what the other implications would have been of creating a completely new name space just for Trac.
  • For me, the main reason for implementing the Trac contrib (other than that is was a nice first contrib project) is that I really like the Trac repository browser with its colourised way of showing the differences and syntax colouring. As such I did not consider the subversion web browsing of the repository and instead I use the Trac browser exclusively. If you are a user of subversion, this could be your main reason for installing Trac, only use the repository browser and forget about the Wiki and Ticket system!
  • The only time I need the repository URL is when I setup a new module in my repository. After that the svn access is virtually transparent as it remembers the svn path on subsequent accesses, so it seemed not so much of a deal that I needed to have the same name for the project. I guess that you should be able to setup a local intranet page that describes your setup with URL links for SVN and Trac bits of the various projects that you have.


So that were some of my considerations. Things are not always that straightforward if you delve under the surface and need to consider other implications.

Having said that, the src of the contrib is available in http://through-ip.com/packages/smeserver/SRPMS/ so you can have a look and have a go at modifying or extending it. If you have a patch available, I am happy to take a look at it.

I am working with the SME development team to have this contrib in the SME contribs repository so that it becomes available through the normal SME channels and it then should also have a bug tracker category assigned where you can make bug reports and feature requests.

In the mean time, thanks for trying out my smeserver-trac contrib.

Regards,

Marco Hess
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #20 on: April 03, 2007, 08:19:03 AM »
Hi thf,

Thank you for your very candid response.

I can now fully understand why you implemented the contrib the way you did.

The possible conflict between the /trac & /svn prefixes and ibay names hadn't occurred to me and I can now see that your method of implementation is very good.

I think I will now setup my svn projects so the project names carry the svn prefix and I will use the proper name for the trac projects.
eg. 'myproject' would be 'svn_myproject' for the repository & just 'myproject' for trac.
As you say, the repo path is rarely used and I can provide a how-to wiki on the projects trac website.

I still haven't quite figured how to get the system working so trac access is limited to only http://trac.myserver/myproject instead of http://myserver/myproject.
I'm sure it should be quite simple but being a noob I'm struggling a little.

On a similar note, is it possible to choose which domains the trac projects are available on?
Currently all trac projects are available on all domains and I think allowing the user to select from available domains would be an excellent feature.

Thanks again for your help.

Best regards,

Black

[ANNOUNCE] smeserver-trac contrib
« Reply #21 on: April 04, 2007, 02:36:47 AM »
Quote from: "blacknz"

I still haven't quite figured how to get the system working so trac access is limited to only http://trac.myserver/myproject instead of http://myserver/myproject.
I'm sure it should be quite simple but being a noob I'm struggling a little.


That is an area where currently the SME support is somewhat limited. All host names are basically aliases of the same thing and all services reside in the same virtual host environment. I looked into some of that, but could not see an immediate solution without having to dig a whole lot deeper.

Regards,

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #22 on: April 04, 2007, 07:47:34 AM »
Quote from: "thf"

That is an area where currently the SME support is somewhat limited.
[snip]
could not see an immediate solution without having to dig a whole lot deeper.


Yeah, I'm not really very good with apache configuration files so I think I'll just forget about it for now.

Quote from: "blacknz"
is it possible to choose which domains the trac projects are available on?


I did a little research on this one, it appears that all templates in the VirtualHosts template folder are passed a variable $virtualHost.
This variable contains the name of the domain that is being processed (eg mysite.local, mysite.com etc)
So, by testing this you could restrict which virtual domains the trac site is available on:
Code: [Select]
 if ( $virtualHost eq $allowedDomains )
  {
    # process the trac template
  }
(I know the code is incorrect as I don't know perl & I'm not sure how you check to see if a string is in a list).

I couldn't figure out how you could build a list of domains to select from for the server-manager panel (like you have to select the groups & users) but I havent figured that out ... yet.

What do you think about having an option for selecting which domain the trac project should be available on?

If you think its a good addition to your contrib then perhaps I could try to dig a little deeper.

Black

[ANNOUNCE] smeserver-trac contrib
« Reply #23 on: April 06, 2007, 02:05:41 PM »
Quote from: "blacknz"

Code: [Select]
 if ( $virtualHost eq $allowedDomains )
{
    # process the trac template
}


That approach sounds quite doable. I have made a start with implementing that.

In hindsight the comment that I made previously referred to the host names that SME provides on domains (e.g. the www, mail, etc.). What I wanted to do was to make the trac environments available under a specified host name only like in trac.domain.com and not www.domain.com. That sort of support is quite limited. e.g. you can go into the hostname panel and remove the various host names that are local to the machine and in the http config they still show up.


Marco
Adelaide - Australia

pabbec

Problem at install smeserver-trac
« Reply #24 on: April 06, 2007, 10:21:54 PM »
Hi. I have a problem when I want to install smeserver-trac in my SME Server. When I execute the command:

Code: [Select]

# yum --enablerepo=through-ip install smeserver-trac


I obtain the following answer:

Code: [Select]

==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
through-ip                100% |=========================|  951 B    00:00
Cannot find a valid baseurl for repo: snetram
Error: Cannot find a valid baseurl for repo: snetram
================================================================
No new rpms were installed. No additional commands are required.
================================================================


I'm using SME Server 7.1.3. I have installed subversion from a contrib of snetram. Thanks in advance and sorry for my bad english :(

Re: Problem at install smeserver-trac
« Reply #25 on: April 07, 2007, 02:22:38 AM »
Quote from: "pabbec"
Hi. I have a problem when I want to install smeserver-trac in my SME Server


Hi pabbec,
I was asked to remove some packages from my repository as it duplicated packages from more authoritative repositories :-) so the updated install should now be:
Code: [Select]
yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac


In the near future, some more cleanup will occur to get rid of duplicate packages in my repository and eventually everything will move to smedev  

At the moment the yum command above should give you something like this:

Code: [Select]

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 smeserver-trac          noarch     0.3-1.el4.sme    through-ip        113 k
Installing for dependencies:
 clearsilver             i386       0.10.1-1.2.el4.rf  through-ip        192 k
 fontconfig              i386       2.2.3-7.centos4  smeos             117 k
 guile                   i386       5:1.6.4-14       base              746 k
 mod_dav_svn             i386       1.1.4-2.ent      base               50 k
 mod_python              i386       3.1.3-5.1        base              568 k
 neon                    i386       0.24.7-4         base               86 k
 python-clearsilver      i386       0.10.1-1.2.el4.rf  through-ip        181 k
 python-docutils         noarch     0.4-1.el4.kb     through-ip        1.3 M
 python-imaging          i386       1.1.4-7          through-ip        358 k
 python-setuptools       noarch     0.6a10-1         through-ip        447 k
 python-silvercity       i386       0.9.5-3.el4.pyv  through-ip         13 k
 python23-silvercity     i386       0.9.5-3.el4.pyv  through-ip        175 k
 smeserver-mod_dav       noarch     0.1-2.el4.sme    smedev            4.3 k
 smeserver-mod_python    noarch     0.1-0.el4.sme    smedev            4.2 k
 smeserver-subversion    noarch     1.2-5.el4.sme    smedev             45 k
 subversion              i386       1.1.4-2.ent      base              1.6 M
 swig                    i386       1.3.21-6         base              1.0 M
 tcl                     i386       8.4.7-2          base              897 k
 tk                      i386       8.4.7-2          base              838 k
 trac                    noarch     0.10.3.1-2.rf.sme01  smedev            665 k
 umb-scheme              i386       3.2-36.EL4       base              967 k
 xorg-x11-Mesa-libGL     i386       6.8.2-1.EL.13.37.7  updates           379 k
 xorg-x11-libs           i386       6.8.2-1.EL.13.37.7  updates           2.7 M

Transaction Summary
=============================================================================
Install     24 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 13 M
Is this ok [y/N]:



Regards,

Marco
Adelaide - Australia

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: Problem at install smeserver-trac
« Reply #26 on: April 07, 2007, 09:41:20 AM »
Quote from: "thf"
I was asked to remove some packages from my repository as it duplicated packages from more authoritative repositories :-)
Thanks very much, nice to know you followed my request!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

pabbec

Problem solved.
« Reply #27 on: April 07, 2007, 05:36:56 PM »
Thanks for your answer. I tired again with the command:

Code: [Select]

yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac


but the problem persisted:

Code: [Select]

Error: Cannot find a valid baseurl for repo: snetram


In order to solve it, I edited /etc/yum.conf and cleared the # on the line baseurl of section [snetram] of this file.

After that, I tried again with the command, TRAC was installed on my server. :).

Re: Problem solved.
« Reply #28 on: April 08, 2007, 02:49:37 AM »
Quote from: "pabbec"

Error: Cannot find a valid baseurl for repo: snetram


This seems more an issue with that you have setup access to the snetram repository rather than a problem with the smeserver-trac contrib.

I don't think you need the snetram repository, because as far as I know, the smeserver-subversion contrib comes from the smedev repository.

Marco
Adelaide - Australia

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: Problem solved.
« Reply #29 on: April 08, 2007, 06:16:26 PM »
Quote from: "thf"
Quote from: "pabbec"

Error: Cannot find a valid baseurl for repo: snetram


This seems more an issue with that you have setup access to the snetram repository rather than a problem with the smeserver-trac contrib.

This is caused by two things:[list=1]
  • You have enabled the snetram repository by default which you should not do, if you need software from this repository you should explicitly enable this by adding the repository on the server shell line using the --enablerepo=snetram parameter or temporarily enable it in the server-manager
  • Probably the url to the mirrorlist is incorrect as the devteam corrected a webserver configuration error which changed the address where my contrib directory lives. The command to configure my repository can be found in the wiki: http://wiki.contribs.org/Snetram[/list:o]
    Quote from: "thf"
    I don't think you need the snetram repository, because as far as I know, the smeserver-subversion contrib comes from the smedev repository.
    Yes I moved smeserver-subversion to the smedev repository a while ago so technically speeking you don't really need it anymore.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Updated version of smeserver-trac available
« Reply #30 on: April 27, 2007, 09:29:22 AM »
Hi All,

Just to let you know that an updated version of 'smeserver-trac' is now available.

Main updated feature is that for SME boxes that have multiple domains
each trac project can be configured for which domain it should appear.

Other updates are tighter integration with the SME environment so that
changes/deletions in users/groups/domains/repositories do not leave
the trac project in an improper state.

Enjoy!

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #31 on: April 27, 2007, 12:06:47 PM »
Is there a solution for this ??


[root@server]# yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin


Error getting repository data for through-ip, repository not found
================================================================
No new rpms were installed. No additional commands are required.
================================================================
...

[ANNOUNCE] smeserver-trac contrib
« Reply #32 on: April 27, 2007, 03:29:07 PM »
Quote from: "p-jones"
Error getting repository data for through-ip, repository not found


Have you followed the instructions from http://wiki.contribs.org/Trac and added the through-ip repository to yum?

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #33 on: April 27, 2007, 06:19:59 PM »
thf,

Great contrib.  Note my error:
Code: [Select]

[root@sme7test VirtualHosts]# expand-template etc/httpd/conf/httpd.conf
WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent: Use of uninitialized value in string eq at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent line 247.
WARNING in /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts: WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf/VirtualHosts: 1 fragment generated warnings
 at /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts line 38
WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent: Use of uninitialized value in string eq at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent line 247.
WARNING in /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts: WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf/VirtualHosts: 1 fragment generated warnings
 at /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts line 38
WARNING: Template processing succeeded for /etc/httpd/conf/httpd.conf: 2 fragments generated warnings
 at /sbin/e-smith/expand-template line 45

I installed as per yum instructions on SME Server 7.1.3 test server.  Install proceeded w/out error.  SM accessed thereafter, created a subversion repo  and then added a trac project.  I recieved an error when adding yet it did create it (named 'mybook')  Trying to access the repo from the new link in Trac project Environments panel gave me "Internal Server Error" so I looked at the logs and noted httpd.conf was not expanding.  That is when I attempted manual expansion of /etc/httpd/httpd.conf and received the error above.

BTW, do you have a bug entry for this contrib?

Thanks again for the contrib.

Craig

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
[ANNOUNCE] smeserver-trac contrib
« Reply #34 on: April 27, 2007, 11:23:34 PM »
The errors above are not from the trac contrib, but they seem to originate from the/my smeserver-subversion contrib. Would you be so kind to file it as a bug, for me to follow-up there?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

[ANNOUNCE] smeserver-trac contrib
« Reply #35 on: April 28, 2007, 01:16:37 AM »
Done.  bug #2943

Craig

Trac subdomain
« Reply #36 on: May 07, 2007, 05:35:51 AM »
Hi thf,

I have successfully written a custom template which creates a subdomain for my TRAC projects.

I had to use your virtual host template 29TracProjects as a reference because the httpd entry changes whenever a group or user is added/removed.

Anyway, my template looks for a special prefix string "trac_sd_" in the trac project name to determine whether it should have a subdomain created or not.
The template creates a subdomain of the type:
trac.project.domain
Note: The prefix can be changed, it is set on line 11, $trac_subdomain_identifier = "trac_sd_".

So, for a project named: trac_sd_project1
which is visible on the domain: mydomain.com
the following subdomain will be created: trac.project1.mydomain.com

I developed this template in the hopes that you might consider integrating something similar in a future realease of the trac contrib.
I think you will only need two new settings:
 - a tickbox Create subdomain [ ] (y/n).
 - a string project name [ ] (eg. project1 for trac.project1.domain).

I'm still very uncertain about the subdomains on this server though so I don't know if what I'm proposing will cause problems.
Should the project1 subdomain (and the trac.project1 subdomain) be added to the subdomains list or not?
Perhaps the project name could/should be a pull down list of configured  subdomains.
I've checked the forum & manual for subdomain setup information but it doesn't say much on how to point the subdomain to somewhere else on the server without suggesting a custom template.

I also don't know much about apache, so the security & redirect commands may need to be changed. Currently I redirect all port 80 traffic to 443 & require SSL.

Anyway, if your interested in my template you can download it from here, it needs to be placed in the /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf directory.

I've also developed a custom template that generates both a trac & svn subdomain.
Because the svn contrib doesn't include the domains option this template uses the trac domains for both.
It can be downloaded here.

Sorry about the marathon post.
I am happy using my custom template but I feel that the trac contrib (and the svn contrib) would be even better with the subdomain options.

Thanks
Blacknz

PS: Should this be put into bugzilla as a feature request (for both the trac & svn contribs) or is the forum a more appropriate place for this?

Re: Trac subdomain
« Reply #37 on: May 07, 2007, 06:03:20 AM »
Quote from: "blacknz"
I have successfully written a custom template which creates a subdomain for my TRAC projects.

Hi Black,

Thanks for your contribution. That looks great. I'll have a look on how that can be integrated when I get a chance to do some more work on smeserver-trac.

In terms of naming the subdomain, would project.trac.domain be more logical? Also, in that way, the trac.domain could be pointed to a summary page that shows all the configured trac projects.

Thanks for your efforts.

Regards,  Marco

Quote from: "blacknz"
PS: Should this be put into bugzilla as a feature request (for both the trac & svn contribs) or is the forum a more appropriate place for this?

Technically, it would be best in bugzilla, however, at the moment I don't think there is a category for smeserver-trac, but there is one for smeserver-subversion.
Adelaide - Australia

Re: Trac subdomain
« Reply #38 on: May 07, 2007, 07:06:30 AM »
Hiya,
Quote from: "thf"
In terms of naming the subdomain, would project.trac.domain be more logical?

I prefer a project oriented subdomain (trac.project.domain) as compared to a trac oriented subdomain (project.trac.domain).

It allows for other project oriented subdomains (trac.project.domain, svn.project.domain, wiki.project.domain) and the project.domain could be a project overview page.

Quote from: "thf"
Also, in that way, the trac.domain could be pointed to a summary page that shows all the configured trac projects.

I think this is still a good idea even with a project oriented approach.

Quote from: "thf"
Technically, it would be best in bugzilla, however, at the moment I don't think there is a category for smeserver-trac, but there is one for smeserver-subversion.

sme-subversion enhancement request #2967 created.

Blacknz

[ANNOUNCE] smeserver-trac contrib
« Reply #39 on: May 16, 2007, 07:11:19 PM »
Hi, I've tried to install contrib on a test environment and:

Error: Missing Dependency: smeserver-mod_python is needed by package smeserver-trac

I don't find smeserver-mod_python. I've tried yum --enablerepo base --enablerepo addons --enablerepo centosplus --enablerepo contrib --enablerepo extras --enablerepo smedev provides smeserver-mod_python with no success.

[ANNOUNCE] smeserver-trac contrib
« Reply #40 on: May 16, 2007, 10:42:34 PM »
Quote from: "hedererjs"
Hi, I've tried to install contrib on a test environment and:

Error: Missing Dependency: smeserver-mod_python is needed by package smeserver-trac

I don't find smeserver-mod_python. I've tried yum --enablerepo base --enablerepo addons --enablerepo centosplus --enablerepo contrib --enablerepo extras --enablerepo smedev provides smeserver-mod_python with no success.


I've done the test on a virtual machine with my production server and I've had a non resolved dependency too.

I've made a new test with a virtual machine with a pretty clean install and dependencies are solved but I've got these messages:

Quote
http://mirror.contribs.org/smeserver/releases/7/smedev/i386/RPMS/smeserver-mod_python-0.1-0.el4.sme.noarch.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.contribs.org/smeserver/releases/7/smedev/i386/RPMS/smeserver-mod_python-0.1-0.el4.sme.noarch.rpm: [Errno 4] IOError: [Errno ftp error] 450 smeserver-mod_python-0.1-0.el4.sme.noarch.rpm: No such file or directory
Trying other mirror.
http://mirror.contribs.org/smeserver/releases/7/smedev/i386/RPMS/smeserver-mod_python-0.1-0.el4.sme.noarch.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.contribs.org/smeserver/releases/7/smedev/i386/RPMS/smeserver-mod_python-0.1-0.el4.sme.noarch.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
(2/17): perl-Config-IniFi 100% |=========================|  46 kB    00:01
(3/17): python-setuptools 100% |=========================| 447 kB    00:05
(4/17): python-clearsilve 100% |=========================| 181 kB    00:02
(5/17): python-docutils-0 100% |=========================| 1.3 MB    00:37
(6/17): python-silvercity 100% |=========================|  13 kB    00:00
(7/17): mod_python-3.1.3- 100% |=========================| 568 kB    00:07
(8/17): tcl-8.4.7-2.i386. 100% |=========================| 897 kB    00:10
(9/17): xorg-x11-Mesa-lib 100% |=========================| 379 kB    00:05
(10/17): tk-8.4.7-2.i386. 100% |=========================| 838 kB    00:09
(11/17): python-imaging-1 100% |=========================| 358 kB    00:05
(12/17): fontconfig-2.2.3 100% |=========================| 117 kB    00:01
(13/17): xorg-x11-libs-6. 100% |=========================| 2.7 MB    00:40
(14/17): trac-0.10.3.1-2. 100% |=========================| 665 kB    00:09
(15/17): python23-silverc 100% |=========================| 175 kB    00:02
(16/17): clearsilver-0.10 100% |=========================| 192 kB    00:03
(17/17): smeserver-trac-0 100% |=========================| 103 kB    00:02


Error Downloading Packages:
  smeserver-mod_python - 0.1-0.el4.sme.noarch: failure: RPMS/smeserver-mod_python-0.1-0.el4.sme.noarch.rpm from smedev: [Errno 256] No more mirrors to try.
================================================================
No new rpms were installed. No additional commands are required.
================================================================


Help! I need somebody help...

where is this RPM?

[ANNOUNCE] smeserver-trac contrib
« Reply #41 on: May 17, 2007, 12:20:22 AM »
Investigating, it looks like smecontribs cvs doesn't fullfill a repository. or which one?

[ANNOUNCE] smeserver-trac contrib
« Reply #42 on: May 17, 2007, 12:34:27 AM »
after having downloaded it from CVS, and tried to extract (on Windows XP), 7-zip says smeserver-mod_python-0.1.tgz is invalid.

[ANNOUNCE] smeserver-trac contrib
« Reply #43 on: May 17, 2007, 04:01:22 AM »
Quote from: "hedererjs"
Error: Missing Dependency: smeserver-mod_python is needed by package smeserver-trac


It should be available from the smedev repository, but somehow it seems to have disappeared from there.

For the time being I have put a copy of the rpm in my through-ip repository (as detailed in http://wiki.contribs.org/Trac) so you can continue your install with

Code: [Select]
yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac

Regards,

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #44 on: May 17, 2007, 04:18:26 PM »
thanks, it works.

is the subversion repository created when creating an smeserver-trac project?

should there appear a smesubversion repository?

[ANNOUNCE] smeserver-trac contrib
« Reply #45 on: May 17, 2007, 04:51:20 PM »
Quote from: "hedererjs"
is the subversion repository created when creating an smeserver-trac project?


Not sure what you mean here. The subversion repository is created separately through the Subversion panel in server-manager. That should have been installed when you installed smeserver-trac. When there is no subversion repository, you will not get the option to create a trac project.

Also, you can create multiple trac projects that point to the same subversion repository or different paths within the repository.

Regards,

Marco
Adelaide - Australia

[ANNOUNCE] smeserver-trac contrib
« Reply #46 on: May 17, 2007, 09:25:02 PM »
didn't sleep enough! thanks for your response.

[ANNOUNCE] smeserver-trac contrib
« Reply #47 on: May 19, 2007, 02:52:17 PM »
when I go in "Settings and Session Management" under Trac, name and email are not filled. is this normal ?

[ANNOUNCE] smeserver-trac contrib
« Reply #48 on: May 19, 2007, 03:09:19 PM »
what is the "backend" for this contrib: mysql or SQLite ?

=> I've found SQLite config. Did you tried configuring with MySQL?

[ANNOUNCE] smeserver-trac contrib
« Reply #49 on: May 19, 2007, 04:05:20 PM »
access to bugzilla don't work today. so I put this here: I've been obliged to do a
Quote
chown www:www /home/e-smith/files/trac/asperprotect/conf/trac.ini


because I had some errors when "applying changes" to my trac project.

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #50 on: October 31, 2007, 03:13:49 PM »
Hello,

thaks for the trac contrib!

Unfortunately i am not able to install it....
whe doing

yum  --enablerepo=through-ip install smeserver-trac

i get:

No Match for argument: smeserver-trac

So maybe the repository is not working....
Any Idea?
Thanks

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #51 on: November 04, 2007, 10:01:39 AM »
yum  --enablerepo=through-ip install smeserver-trac
No Match for argument: smeserver-trac

Have you tried:

yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac

as per the instructions in the Wiki?

smeserver-trac comes from smedev. My through-ip repository only holds some auxilary rpm's to support trac.

Marco
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #52 on: November 05, 2007, 09:29:31 AM »
Yeah,... It´s the same i´m afraid...

Code: [Select]
# yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
through-ip                100% |=========================|  951 B    00:00     
smedev                    100% |=========================|  951 B    00:00     
smeaddons                 100% |=========================|  951 B    00:00     
updates                   100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
smeos                     100% |=========================|  951 B    00:00     
smeupdates                100% |=========================|  951 B    00:00     
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  21 kB    00:00     
sqlite cache needs updating, reading in metadata
smedev    : ################################################## 99/99
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Parsing package install arguments
No Match for argument: smeserver-trac
Nothing to do
==============

regards

seven3

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #53 on: November 10, 2007, 12:57:47 PM »
Hi i'm sorry have someone find a mirror for this pack??

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #54 on: November 26, 2007, 11:37:44 AM »
Helo,
today i was able to download/install it! :D

On the contribs wiki if ound the the following command:
Code: [Select]
expand-template /etc/yum.conf
yum --enablerepo=snetram --enablerepo=through-ip install smeserver-trac
The Repo snetram seems to be new. You can configure it by using:

Code: [Select]
/sbin/e-smith/db yum_repositories set snetram repository \
BaseURL http://www.snetram.nl/yum/ \
MirrorList http://mirror.contribs.org/smeserver/contribs/jmartens/mirrorlist \
EnableGroups no \
GPGCheck no \
Name repository@snetram.nl \
Visible yes \
status disabled

Regards!

Offline timb

Recent yum update seems to have broken my trac
« Reply #55 on: December 04, 2007, 07:12:00 AM »
Hi,
I was using the trac contrib quite a bit until it broke a few days ago.

A bunch of updates were waiting for my server and I installed them, in there was the new trac-10-4? update. From that moment on my trac installation has died. Fortunately I had backed up the /home/e-smith/files/trac directory prior to the update.

I need access to my trac's immediately so that I can do some real work

I have spent quite some time today attempting to back up the rpm's for trac to what was installed previously - (I had the rpm's stashed away on another server where the update has not been applied yet and that trac is working fine BTW) no luck

In desperation I have yum removed it all and fought a massively difficult war attempting to get the current version installed fresh. Sadly still the same bug!

In a fresh trac install (tried on my old server and on a completely new build in vmware) I cannot successfully create a project. The project is created with a red warning that it didnt work, and then visiting the project's web site offers the error  "Trac Error: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.

I have tried updating the subversion installation and the smeserver-subversion contribs and this has not helped.

Has any one installed subversion/trac in the last couple of days? Did it work?
What is the state of both contribs?
Did you upgrade to the later trac? Is it working alright for you?
Are they currently compatible with each other?
Would it be a good idea to roll them together?

Said nicely - Is it a good idea that yum remove smeserver-trac takes all the project files and trashes them? It sure didn't seem like a good idea this morning when I lost 8 project's wiki's bug tickets etc.

Bless me for having 2 backups one only 30 minutes old. On problem is I cant seem to get trac running again.

I think I am a little frazzled because my entire income stream has been shutdown and I have delivery deadlines galore.  Perhaps I have missed something simple...

thanks


"

Re: Recent yum update seems to have broken my trac
« Reply #56 on: December 05, 2007, 12:59:49 AM »
Hi timb,
Sorry to hear about your troubles. It is a bit difficult to work out from your message what exactly the problem seems to be. Using
Code: [Select]
tail -f /var/log/messages is a good way to diagnose what is going on behind the scenes.

A bunch of updates were waiting for my server and I installed them, in there was the new trac-10-4? update.

I am a bit curious as to how you would have gotten a new trac through updates. As far as I know, there should not be any trac in the default repositories. Do you have extra repositories enabled by default?

I was able to reproduce an issue with trac and it seems it now needs the subversion-python package installed.

As a workaround, use:

Code: [Select]
yum --enablerepo=snetram install subversion-python
I updated smeserver-trac to 0.4-35 and added the dependency. Installed on a fresh and up to date SME, it works as expected.

However, in installing I had a little problem with the mod_dav_svn where yum seems to think there is a missing dependency:
Code: [Select]
--> Processing Dependency: subversion = 1.4.4-1 for package: mod_dav_svn
--> Finished Dependency Resolution
Error: Missing Dependency: subversion = 1.4.4-1 is needed by package mod_dav_svn

This can be worked around by installing subversion and trac via some intermediate steps:

Code: [Select]
yum --enablerepo=base install subversion
yum --enablerepo=snetram install smeserver-subversion
yum --enablerepo=snetram --enablerepo=through-ip install smeserver-trac

Also, please note that the rpm for trac itself needs to come from the through-ip repository as this is a patched version of trac to support the http authentication in SME.

Regards,

Marco





« Last Edit: December 05, 2007, 02:37:41 AM by thf »
Adelaide - Australia

Offline timb

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #57 on: December 05, 2007, 01:17:20 AM »
Thanks for your reply Marco

I must admit I was bordering on meltdown when my repositories broke - I am an extremely busy guy at the moment, and this is an interuption I really couldnt afford.

Never mind.

I am a bit curious as to how you would have gotten a new trac through updates. As far as I know, there should not be any trac in the default repositories. Do you have extra repositories enabled by default?

Yes Dag snetram throughip dungog ... which makes it seem that I couldn't have seen another trac. I know I wasn't hand installing it. So this will probably remain a mystery. But I remember seeing it go through and thinking - ah finally the new 10.4 is out - that will be nice.....

I was able to reproduce an issue with trac and it seems it now needs the subversion-python package installed.
My overnight attempts to repair this problem have shown this - and I have just applied your yum suggestion and that has changed my error message. I am now missing the right neon.. But that's my doing. I have been yum removing.....
I confess that late late last night I decided to terminate my main server's trac and svn functions and virtualise a separate server in order to better maintain and control what happens to it. This is a discussion that has been going on in my head for the last few months, so now I will go ahead with it.

I will let you know how my re-installation on my virtual server goes. For a bit of entertainment I will attempt to repair my main server's installation too.

thanks
timb


Re: [ANNOUNCE] smeserver-trac contrib
« Reply #58 on: December 05, 2007, 03:26:54 AM »
Yes Dag snetram throughip dungog ...

Personally I don't think it is a good idea to have any of these repositories enabled by default. It is also not the recommended way from the FAQ:
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Repositories_Adding_Removing_Disabling

Regards,

Marco

« Last Edit: December 05, 2007, 03:39:26 AM by thf »
Adelaide - Australia

Offline timb

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #59 on: December 05, 2007, 03:43:43 AM »
Sorry my mistake.
None of those repos are enabled by default....

Which even more makes me wonder about me seeing that trac 10.4 coming through...

Must look for a log file for that yum update

timb

Offline timb

progress report - good news
« Reply #60 on: December 05, 2007, 09:36:37 PM »
Hi
Just to report that my new install on my virtual server came alive no problems last night.

Now it's a matter of trying to restore the trac data. The subversion data was easy - I had dumps only an hour old.

I havent looked yet - I guess trac establishes an account? for each trac. Where are they stored? I will bring them over from my old server.

BTW the old server - the installation there is now a burning wreck. Perhaps today I will find some moments to put the fire out and rebuild it.

thanks

timb

Re: progress report - good news
« Reply #61 on: December 06, 2007, 12:05:34 AM »
I havent looked yet - I guess trac establishes an account? for each trac. Where are they stored? I will bring them over from my old server.

Hi timb,
My suggestion would be to create new trac environments through the server manager panel the same as you had them on your old server. This puts all the templates in place. Then copy the trac environment directory from the old server and copy them over the newly created environment on the new server. You may need to do a 'trac-admin resync' to make sure that trac and subversion are synced to each other.

Trac environments are stored under /home/e-smith/files/trac/...

The accounts db hold the trac info for SME like the following example:

Code: [Select]
# db accounts show smecontribs
smecontribs=trac
    Access=local
    Description=SME Server Contribs
    Domains=through-ip.com
    Groups=staff
    Modifiable=yes
    Removable=yes
    Repository=smecontribs-repository
    RepositoryPath=
    Users=

Success!

Marco
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #62 on: January 13, 2008, 09:04:29 PM »
Installing Trac

Error: Missing Dependency: python(abi) = 2.4 is needed by package python-imaging
Error: Missing Dependency: python >= 2.4 is needed by package python-imaging
Error: Missing Dependency: rtld(GNU_HASH) is needed by package python-imaging
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package python-imaging

yum clean all > no change

ServMgr default repos set

[root@server72 ~]# yum whatprovides python-imaging
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Searching Packages:
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Importing Additional filelist information for packages
No Matches found
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@server72 ~]#

I have a local rsync of SME repos and

# locate python-imaging

/var/cache/yum/through-ip/headers/python-imaging-1.1.6-2.el5.rf.i386.hdr

/repo/smeserver/releases/7.3/smecontribs/i386/RPMS/python-imaging-1.1.4-1.i386.rpm
/repo/smeserver/releases/7.3/smecontribs/i386/repodata/repoview/python-imaging-0-1.1.4-1.html
/repo/smeserver/releases/7.3/smecontribs/SRPMS/python-imaging-1.1.4-1.src.rpm

Seems to be a conflict between repos.

copy/paste from putty

yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #63 on: January 13, 2008, 09:40:12 PM »
Also


yum  --enablerepo=through-ip install python-imaging

Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package python-imaging.i386 0:1.1.6-2.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: libtcl8.4.so for package: python-imaging
--> Processing Dependency: python(abi) = 2.4 for package: python-imaging
--> Processing Dependency: libtk8.4.so for package: python-imaging
--> Processing Dependency: python >= 2.4 for package: python-imaging
--> Processing Dependency: rtld(GNU_HASH) for package: python-imaging
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: python-imaging
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package tk.i386 0:8.4.7-2 set to be updated
---> Package tcl.i386 0:8.4.7-2 set to be updated
--> Running transaction check
--> Processing Dependency: python(abi) = 2.4 for package: python-imaging
--> Processing Dependency: rtld(GNU_HASH) for package: python-imaging
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: python-imaging
--> Processing Dependency: python >= 2.4 for package: python-imaging
--> Finished Dependency Resolution
Error: Missing Dependency: python(abi) = 2.4 is needed by package python-imaging
Error: Missing Dependency: python >= 2.4 is needed by package python-imaging
Error: Missing Dependency: rtld(GNU_HASH) is needed by package python-imaging
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package python-imaging

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #64 on: January 14, 2008, 12:50:22 AM »
See the wiki for latest info http://wiki.contribs.org/Trac

Would have been nice if the above link was edited into the thread somewhere....oh well....

This thread is old

yum install smeserver-trac --enablerepo=smecontribs --enablerepo=through-ip

Kinda found solution to it before I found the wkik trac...haha

With that said not sure if there's a bug when opening a project

Code: [Select]
Internal Error

The user www requires read _and_ write permission to the database file /home/e-smith/files/trac/installer/db/trac.db and the directory it is located in.




« Last Edit: January 14, 2008, 05:22:25 AM by electroman00 »

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #65 on: January 14, 2008, 02:46:08 AM »
Installing Trac

Error: Missing Dependency: python(abi) = 2.4 is needed by package python-imaging
Error: Missing Dependency: python >= 2.4 is needed by package python-imaging
Error: Missing Dependency: rtld(GNU_HASH) is needed by package python-imaging
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package python-imaging

yum clean all > no change

yum --enablerepo=smedev --enablerepo=through-ip install smeserver-trac

Sorry. I caused the python-imaging problem when I was collecting some updated rpm's
to test the contrib for sme8. I have removed them from my repository and smeserver-trac
installes correctly again as per the contribs wiki for Trac http://wiki.contribs.org/Trac.

Regards,

Marco
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #66 on: January 14, 2008, 04:59:22 AM »
No problem Marco

I resolved issue with the following shell commands.

signal-event trac dev caused problem
signal-event trac dev needs horse whipping
signal-event trac dev terminate if happens again
signal-event trac dev Thank You

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #67 on: February 27, 2008, 01:31:58 PM »
Hello,

First congratulations for a great contrib. It works perfectly for me with subversion.

I have the following question:

How can I modify the default permissions for a new TRAC project? I want to move anonymous permissions to authenticated permissions.

Thank you

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #68 on: February 27, 2008, 04:05:40 PM »
I have solved it in a very elegant way :p


trac-admin proiect/ permission add authenticated LOG_VIEW FILE_VIEW SEARCH_VIEW REPORT_VIEW TICKET_VIEW BROWSER_VIEW TIMELINE_VIEW CHANGESET_VIEW ROADMAP_VIEW MILESTONE_VIEW WIKI_CREATE WIKI_MODIFY WIKI_DELETE TICKET_CREATE TICKET_MODIFY REPORT_SQL_VIEW


trac-admin proiect/ permission remove anonymous LOG_VIEW FILE_VIEW SEARCH_VIEW REPORT_VIEW TICKET_VIEW BROWSER_VIEW TIMELINE_VIEW CHANGESET_VIEW ROADMAP_VIEW MILESTONE_VIEW

How do I customize the "starting point" for example? Do I create a trac.ini in /usr/share/trac?

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #69 on: February 27, 2008, 11:07:06 PM »
I have the following question:

How can I modify the default permissions for a new TRAC project? I want to move anonymous permissions to authenticated permissions.

The contrib has the TracWebAdmin plugin integrated, so the easiest way is to just login on your trac project using 'admin' and your SME 'admin' password.

You'll then find an 'Admin' menu item all on the right hand side. Within there you can manage the settings of your Trac project including permissions.

Not sure what you mean with the 'starting point'.
Can't you edit the wiki home page and make it your 'starting point'?

Regards,

Marco
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #70 on: February 29, 2008, 01:13:08 AM »
Hi Marco,

By starting point I meant default settings for new TRAC projects, like default wiki startpage content, settings, etc.

I have already modified the startpage (usr/share/trac...), I wanted to add a menu link for a custom ticket query. I believe I can do it from trac.ini in every project, I just don't like to do it for every project the engineers add (and they add like 2 per week now). Maybe I'm just lazy :)

Thanks,
Cristi

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #71 on: March 13, 2008, 01:53:54 PM »
Hi thf!

First of all thanks for this great contrib - makes life very simple with Trac and SME Server.

Would be very grateful if you could help me out with a couple of issues:

1. I want to make sure that when users try and access any section on Trac within a particular project, they should be prompted for for authentication.

If I do something like: trac-admin /projectenv permission remove anonymous WIKI_VIEW, all that happens when an un-authenticated user tries to open the Wiki is that Trac displays the following error:

"WIKI_VIEW privileges are required to perform this operation"

and Trac does not prompt for authentication. Trac works as expected if the user logs in through the "Login" link.

So, how do I coax Trac/SME Server in asking for authentication when needed - alternatively asking for authentication when accessing any part of a Trac project - be it Wiki, Tickets or Timeline.

2. My TracWebAdmin plugin does not seem to be working - the "Admin" link does not show up if I login using SME Server's admin username and password (or the username/password of a user with TRAC_ADMIN permissions)

3. Please correct me if I'm wrong here - but I can install Trac Plugins for this contrib the way I would normally for a clean install of Trac, right? I mean - I should be able to use easy_install to install plugins globally?

Thanks again for the great work put in by you and here's hoping that you (or someone else!) would be able to help me out.

Regards,
-Varun

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #72 on: March 13, 2008, 03:42:11 PM »
1. I want to make sure that when users try and access any section on Trac within a particular project, they should be prompted for for authentication.

If I do something like: trac-admin /projectenv permission remove anonymous WIKI_VIEW, all that happens when an un-authenticated user tries to open the Wiki is that Trac displays the following error:

"WIKI_VIEW privileges are required to perform this operation"

and Trac does not prompt for authentication. Trac works as expected if the user logs in through the "Login" link.

So, how do I coax Trac/SME Server in asking for authentication when needed - alternatively asking for authentication when accessing any part of a Trac project - be it Wiki, Tickets or Timeline.

I understand what you are saying but I am not sure thats how it supposed to work. What my contrib essentially does is hooking the trac environment into the webserver templates and ensuring that the login uses the names/passwords of the SME users and that the 'admin' user has TRAC_ADMIN rights. Beyond that it is really only the Trac access control system and I don't think it was designed to be really secure. The way I use it, is on internal company LAN's where generally most users (anonymous) are allowed to view most of the Trac environment and the project users are the ones that have write access to the rest. And even then, my biggest use for Trac is mainly the Subversion source code browsing and changesets viewing and a little bit of the ticket system.

I suggest you have a look at the Trac website forums is there are any suggestions there.

2. My TracWebAdmin plugin does not seem to be working - the "Admin" link does not show up if I login using SME Server's admin username and password (or the username/password of a user with TRAC_ADMIN permissions)

Have a look at the /var/log/messages log file and see if there are any messages from Trac in there. Particularly look at the moment when the Trac environment starts up (system start up) and/or when the 'admin' user logs in.

Also, are you sure that the trac rpm that was installed, was the one from the smecontribs area and not the one from the 'dag' or 'atrpms' repositiries as those ones don't have the WebAdmin installed by default.

3. Please correct me if I'm wrong here - but I can install Trac Plugins for this contrib the way I would normally for a clean install of Trac, right? I mean - I should be able to use easy_install to install plugins globally?

Again, these is more a Trac question and goes beyond what the smeserver-trac contrib does. Other than the webadmin plugin as a default install and a special patch to allow the sme user authentication, it is the normal Trac environment and additional Trac Plugins should work (assuming they are compativle with the Trac version). De current stable trac version from the smecontribs area is 0.10.4

Regards,

Marco

« Last Edit: March 13, 2008, 03:43:45 PM by thf »
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #73 on: March 14, 2008, 03:31:40 PM »
Marco!

First of all, thank you for such a quick reply.

I understand what you are saying but I am not sure thats how it supposed to work. What my contrib essentially does is hooking the trac environment into the webserver templates and ensuring that the login uses the names/passwords of the SME users and that the 'admin' user has TRAC_ADMIN rights. Beyond that it is really only the Trac access control system and I don't think it was designed to be really secure. The way I use it, is on internal company LAN's where generally most users (anonymous) are allowed to view most of the Trac environment and the project users are the ones that have write access to the rest. And even then, my biggest use for Trac is mainly the Subversion source code browsing and changesets viewing and a little bit of the ticket system.

Thanks for clearing this up. What we did after finding this out was to add a field to the "Trac Project Environment" form called "Allow Anonymous Access?" which is set to 'Yes' by default so that anonymous users can view the Wiki, Tickets etc. If a user sets this to 'No', then Trac will prompt for authentication even for viewing the Wiki etc. This has been achieved by modifying the httpd.conf template to include the authentication related directives under the <Location /projectenv> directive instead of the <Location /projectenv/login> directive when the user choses to disable anonymous access.

The following files have been modified for this:

/etc/e-smith/web/panels/manager/cgi-bin/trac
/etc/e-smith/locale/en-us/etc/e-smith/web/functions/trac
/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/trac.pm
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29TracProjects

Please let me know if you wish to review our changes for possible inclusion in your contrib.

Have a look at the /var/log/messages log file and see if there are any messages from Trac in there. Particularly look at the moment when the Trac environment starts up (system start up) and/or when the 'admin' user logs in.

Also, are you sure that the trac rpm that was installed, was the one from the smecontribs area and not the one from the 'dag' or 'atrpms' repositiries as those ones don't have the WebAdmin installed by default.


Thanks for this pointer. We had accidentally installed a copy of the WebAdmin plugin before realizing that it is  already built into your contrib. And now we have a version conflict as per our logs - would look into it.

Again, these is more a Trac question and goes beyond what the smeserver-trac contrib does. Other than the webadmin plugin as a default install and a special patch to allow the sme user authentication, it is the normal Trac environment and additional Trac Plugins should work (assuming they are compativle with the Trac version). De current stable trac version from the smecontribs area is 0.10.4

Just wanted to check that there is no heavy black magic that you were using - will try out some plugins that we have installed on our existing Trac installation and see how they play with this contrib - will keep you posted.

We live by Trac and use all it's features extensively - we are migrating Trac from an existing installation to our SME server and your contrib is a big timesaver - so thanks again!



Re: [ANNOUNCE] smeserver-trac contrib
« Reply #74 on: March 16, 2008, 05:53:18 AM »
The following files have been modified for this:

/etc/e-smith/web/panels/manager/cgi-bin/trac
/etc/e-smith/locale/en-us/etc/e-smith/web/functions/trac
/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/trac.pm
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29TracProjects

Please let me know if you wish to review our changes for possible inclusion in your contrib.

Sure, if you can send me a diff or patch of the changes made, I'll have a look at them. Better yet, open an enhancement request on Bugzilla and upload your patch there. Here is the link to get there: http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=smeserver-trac&short_desc=&comment=

Just wanted to check that there is no heavy black magic that you were using

Still no black magic, but at creation & modification time, there are a couple of trac.ini settings that are manipulated from the scripts.
Look in /etc/e-smith/events/actions/trac-project-create and /etc/e-smith/events/actions/trac-project-modify for the details.

We live by Trac and use all it's features extensively - we are migrating Trac from an existing installation to our SME server and your contrib is a big timesaver - so thanks again!

Your welcome. Just glad others find it useful too.

Cheers,

Marco
Adelaide - Australia

Re: [ANNOUNCE] smeserver-trac contrib
« Reply #75 on: October 30, 2008, 05:51:43 AM »
access to bugzilla don't work today. so I put this here: I've been obliged to do a
because I had some errors when "applying changes" to my trac project.
Code: [Select]
chown www:www /home/e-smith/files/trac/asperprotect/conf/trac.ini
It may not be a good idea to change Owner to www from a network security standpoint, better to set only group www
and chmod to 664 group writable.

Code: [Select]
chown root:www /home/e-smith/files/trac/my_trac/conf/trac.ini
chmod 644 /home/e-smith/files/trac/my_trac/conf/trac.ini     # Group not writable
or
chmod 664 /home/e-smith/files/trac/my_trac/conf/trac.ini     # Group writable

Setting Owner to www will render group permissions ineffective.