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

Run "trac-admin /usr/local/trac/mysite upgrade" (in console)
That's all ;D



Am 12.04.2011 13:56, schrieb Hasibullah:

Run "trac-admin /usr/local/trac/mysite upgrade"


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

On 4/12/2011 2:17 PM, Matthew Caron wrote:


On 04/12/2011 05:44 AM, Hasibullah wrote:

# chmod 777 -r /usr/local/trac/mysite   // i gave full permission
after doing this the problem was solved but .


This is fine for testing, but is a very bad idea for a permanent 
solution. Set permissions correctly such that the apache user 
(whatever user apache runs as) has rw permission to that directory - 
NOT everyone.



It showed this error message  and i don't know what to do, i upgraded
it but the trac server said "no need to upgrade"

error message

Trac Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin /usr/local/trac/mysite upgrade"


If I understand you correctly, you are saying that trac is telling you 
to run the above command, but when you do it says that there is no 
need to upgrade, yet when you load trac it still says an upgrade is 
needed?


If so, that is very strange.



This can eventually happen if trac-admin and the Trac web front-end are 
not using the same Trac version (e.g. mixup of virtualenvs), although 
from the description given by Hasibullah this doesn't seem to be the 
case for him.


Looking at the Trac log (if activated at 'info' level, see 
http://trac.edgewall.org/wiki/TracLogging) should give you a hint about 
the problem, in particular if a plugin requires an upgrade but fails to 
do so (look for "Trac database schema version is <...>", "Component 
<...> requires environment upgrade" and "<...> upgrading..." lines).


-- Christian

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

On 04/12/2011 05:44 AM, Hasibullah wrote:

# chmod 777 -r /usr/local/trac/mysite   // i gave full permission
after doing this the problem was solved but .


This is fine for testing, but is a very bad idea for a permanent 
solution. Set permissions correctly such that the apache user (whatever 
user apache runs as) has rw permission to that directory - NOT everyone.



It showed this error message  and i don't know what to do, i upgraded
it but the trac server said "no need to upgrade"

error message

Trac Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin /usr/local/trac/mysite upgrade"


If I understand you correctly, you are saying that trac is telling you 
to run the above command, but when you do it says that there is no need 
to upgrade, yet when you load trac it still says an upgrade is needed?


If so, that is very strange.

If not, run that command.
--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@sixnet.com

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



Re: [Trac] Trac Environment Problem

2011-04-12 Thread Yann Leboulanger

On 04/12/2011 01: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


What about running what you're requestyed to run?

--
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 Erik Andersson
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.



RE: [Trac] Trac Environment as a Template

2010-11-30 Thread Cooke, Mark
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Gnomo567
> Sent: 30 November 2010 16:47
> To: Trac Users
> Subject: [Trac] Trac Environment as a Template
> 
> Hi all!
> 
> It's possible to use a configured Trac Environment as a template for
> creating new projects environments?
> 
> Every time I use trac-admin  initenv, I have to manually
> configure "Submit Policy", "Priorities", "Resolutions", etc.
> 
I'm not sure exactly what you are asking for ~ do you want specific wiki
pages etc or just the settings?  If it is the settings, have you checked
out the `[inherit]` section of trac.ini [1]?  You can also pass some of
this info to trac-admin [2] to simplify repo creation.

Regards,

~ mark c

[1] http://trac.edgewall.org/wiki/TracIni
[2] http://trac.edgewall.org/wiki/TracAdmin#initenv

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@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 as a Template

2010-11-30 Thread bas.hop...@gmail.com
You could setup a TRAC environment and store it somewhere. When needed, make a 
copy to the desired location, adjust the Trac.ini to the new environments 
settings and SVN repository. Resync it and you're done.

This assumes you are using an sqlite database and that you have your 
environments in a Trac parent folder.

Bas

- Reply message -
Van: "Gnomo567" 
Datum: di, nov. 30, 2010 17:47
Onderwerp: [Trac] Trac Environment as a Template
Aan: "Trac Users" 

Hi all!

It's possible to use a configured Trac Environment as a template for
creating new projects environments?

Every time I use trac-admin  initenv, I have to manually
configure "Submit Policy", "Priorities", "Resolutions", etc.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@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-us...@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.