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.



[Trac] Trac Environment Problem

2011-04-12 Thread Hasibullah
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

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

2011-04-12 Thread Hasibullah
Hi, i am new to trac,  and i have been using it for just about one
week on setting it on the ubuntu 10.10 server .
I have configured it to work with apache web server as it was guided
on the documentations.
List of configurations i have done here

This is Trac Server Installation Instruction On Ubuntu 10.10 server.

thing i did was

1:Install Ubuntu 10.10 server on the system.

2:Installed Apache2   //#aptitude install apache2

3:Installed Subversion   // # aptitude install subversion

4:Installed Python setup tools/// # aptitude install
python_setuptools

5:Installed trac with the easy_install command/// # easy_install
trac

Steps of configuring environments.

1:Made a folder in /usr/local/trac// # mkdir  /usr/
local/trac

2:Set the environement for the trac to use  // #trac-admin  /usr/
local/trac/mysite   initenv

3:The project name is TracProject

4:we specified the defualt database which is sqllit.(the spelling of
the database is not correct).

i choosed sqlite because i am using (python 2.6  - python 3.1)

2:Web based for trac:

#aptitude install apache2


2:mod-wsgi:
libapache2-mod-wsgi   #aptitude install libapache2-
mod-wsgi



3:
a:   # cd /usr/local/trac
b:trac-admin mysite deploy mysite/apache
c: i made a file (mysite.wsgi) and put it in the 'mysite/apache'
folder
d: i edited the mysite.wsgi and wrote bellow script.

import os

os.environ['TRAC_ENV'] = '/usr/local/trac/mysite'
os.environ['PYTHON_EGG_CACHE'] = '/usr/local/trac/mysite/eggs'

e:edited the http.conf file and wrote this script in it

WSGIScriptAlias /trac /usr/local/trac/mysite/apache/mysite.wsgi


WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all


f: after doing this trac was embedded with apache. and when i was
acccessing it, it would say that the database could not be accessed,
because of no read and write permission. to solve this problem i
changed the permission of  mysite folder in '/usr/local/trac/mysite
and changed it like this

# chmod 777 -r /usr/local/trac/mysite   // i gave full permission
after doing this the problem was solved but .
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"


I hope you understand my  problem, please tell me what i have missed
and what should i do now.
and what to do about the subversion .

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



[Trac] Trac Environment as a Template

2010-11-30 Thread Gnomo567
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.



[Trac] trac environment (python?) problems on joyent shared accelerator

2007-09-22 Thread le colibri

After a successful creation of a project in Joyent shared accelerator.
I get the following error.

Strange is the last line with only one slash after http; http:/domain
instead of http://domain. This contrary to the fact that the project
was created with a double slash in its domain. Even changing the ini
file doesn't result in a working site.

Any suggestion are welcom.


Regards,
Robert.

=== === ===
Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
387, in dispatch_request
dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
191, in dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
263, in _pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
  File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
api.py", line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
  File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
api.py", line 101, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
  File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
svn_fs.py", line 259, in get_repository
repos = SubversionRepository(dir, None, self.log)
  File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/
svn_fs.py", line 289, in __init__
raise TracError("%s does not appear to be a Subversion
repository." \
TracError: http:/repositories.joyeurs.com/svn/dipod does not appear to
be a Subversion repository.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---