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 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 kir...@gmail.com wrote:

 On Tue, Apr 12, 2011 at 1:56 PM, Hasibullah hasibsahibz...@gmail.com
 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

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

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 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 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 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 gnomo...@gmail.com
Datum: di, nov. 30, 2010 17:47
Onderwerp: [Trac] Trac Environment as a Template
Aan: Trac Users trac-users@googlegroups.com

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