I guess the mistake I made was to run trac-admin in tne interactive mode. trac-admin initenv
and then I typed intienv I did not notice the option that printed creating directory in /var/ lib/psql/data I am still stumped on why it chose the above Thanks a lot for all the help John Regards Hari On Mar 28, 10:32 pm, John Hampton <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi > > I completly agree that /var/lib/pgsql/data is not the correct > > place, but I was not given a choice of choosing the location . > > How is it that you were not given a choice of choosing the location? > When you run trac-admin you specify the location of the trac > environment. So you could have just as easily said: /var/trac as > /var/lib/pgsql/data. Is this a requirement put on you by your BOFH? > > > In answer to the questions : > > I did not use createdb command but I logged into the db using > > psql and did a CREATE DATABASE ( Will this make a difference ? ) > > No, basically the same thing. createdb just runs CREATE DATABASE. One > is just a command line tool > > > I specified the url in trac-admin as > > postgres://<user>:<password>@localhost:5432/tracdb > > That looks good, provided <user> has permissions to modify the tracdb, > but I'll assume that's so > > Anyway, the original problem was permissions. Believe python when it > says that it's a permissions error. My guess is that due to permissions > on the parent directories somewhere in /var/lib/pgsql/data you aren't > able to read the VERSION file. This is another reason why it's better > to put the trac environment in someplace sane like /var/trac or /srv/foo > or whatever. > > -John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
