Re: [Trac] Installing Trac (0.12.x)

2011-04-15 Thread Nicholas Ilyin
One thing that I want to make sure is that the /apps/trac/projects/projecta
and projectb folders are owned by the correct user.

It looks to me like you're running RedHat, correct?

I wouldn't run tracd webserver. Use Apache with wsgi. The instructions on
the trac site are very useful for installing wsgi and setting it up.

Once you have Apache running with wsgi, make sure you own the directories
properly:

chown -R apache.apache /apps/trac/project/projecta

Does that help?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] RE: Installing Trac (0.12.x)

2011-04-14 Thread Nicholas Ilyin
Could you say what it is that you've done so far, as well as what you are
having trouble with?


On Thu, Apr 14, 2011 at 12:48 PM, Marjory L. Mackes
wrote:

> I should caveat this that neither of us quite understand how apache,
> python, trac, and sql and stuff all tie in together and work with each other
>
>
> 
> From: trac-users@googlegroups.com [trac-users@googlegroups.com] on behalf
> of Marjory L. Mackes [mlmac...@praxiseng.com]
> Sent: Thursday, April 14, 2011 12:44 PM
> To: trac-users@googlegroups.com
> Subject: [Trac] Installing Trac (0.12.x)
>
> Hi All!
>
> I am trying to work with our SA here to install trac 0.12.1 on our Linux
> box.
> Have been going through the installation instructions, but I feel like we
> have missed somethings.
>
> Is there a comprehensive checklist of the steps needed to install Trac and
> the associated products and setup the authentication and web service stuff
> besides just what you get after you install on the wiki in the Help/Guide
> install instructions.
>
> I feel like we are close, but I thought this might only take a few hours at
> most and it seems to have taken days instead.
>
> Thanks!
> Margie
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac Environment

2011-04-12 Thread Nicholas Ilyin
If you run trac-admin ... upgrade as your user then there is no way for your
web server to be able to correctly access folders underneath it for write
access. That's why chmod 777 worked for you, but as Matthew mentioned,
that's a very bad idea.

Trac thinks there's something wrong with the directory structure when it has
no write access, that's why it tells you to upgrade. However, all you need
to do (after you ran the upgrade command) is own the directory structure for
apache:

chown -R apache /usr/local/trac/mysite

Assuming the user under which your server runs is called apache. It might be
httpd. In any case, once you recursively own that directory (after
upgrading!) you will be fine.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac Environment Problem

2011-04-12 Thread Nicholas Ilyin
I just encountered this error myself recently.

Do a recursive ownership of your trac directory by doing this:

chown -R apache.apache /usr/local/trac/mysite

Assuming your httpd is running as apache.




On Tue, Apr 12, 2011 at 8:02 AM, Erik Andersson  wrote:

> On Tue, Apr 12, 2011 at 1:56 PM, Hasibullah 
> wrote:
> > Hi dears
> >
> > after installing trac, apache, mod_wsgi and then embedding trac with
> > apache i find this problem which says
> >
> >
> > Trac Error
> >
> > TracError: The Trac Environment needs to be upgraded.
> >
> > Run "trac-admin /usr/local/trac/mysite upgrade"
> >
> >
> >
> > Please guide me what to do
> Your first e-mail was better.
>
> Cheers / Erik
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> > To post to this group, send email to trac-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> trac-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] trac-admin with svn post-commit hook causes segmentation fault

2011-04-06 Thread Nicholas Ilyin
Hi everyone,

 just set up trac 0.12.2 over sqlite on my Fedora box and trac is working
fine through the web browser and command line. My issue is with implementing
svn hooks where the post-commit hook dies on a segmentation fault when
running this command:

/usr/bin/trac-admin /var/trac/myproject changeset added "$1" "$2"

Where $1 is the svn repository path on the local file system and $2 is the
revision.

The output of this command is this:

/path/to/svn/hooks/post-commit: line 9: 3874 Segmentation fault
/usr/bin/trac-admin /var/trac/myproject changeset added "$1" "$2"

How would I go about debugging this? Does anyone know why this might be
happening on a fresh install (I did not upgrade, it's clean)?

I did some basic checking with regards to the user running this command
which is apache. I also tried running this command as apache to see if it
would fail, but this works just find from the command line:

sudo -u apache /usr/bin/trac-admin /var/trac/ujaweb changeset added
/path/to/svn/repo 750

I'm somewhat out of ideas here. Does anyone have any ideas why this might be
happening?

*Here is some further information in case it's useful:*

Linux: Linux hostname.com 2.6.18-028stab069.5 #1 SMP Tue May 18 17:26:16 MSD
2010 x86_64 x86_64 x86_64 GNU/Linux
Apache: 2.2.17 w/ mod_wsgi
Python: 2.6.4
Trac: 0.12.2 (over Apache w/ mod_wsgi)

I also tried running with strace and the strace output is available here:

http://205.186.157.63/strace.tgz


 Any help would be greatly appreciated!!

Nick

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.