[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

Directory /usr/local/trac/mysite/apache
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
/Directory

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.



[Trac] TypeError: sequence item 1: expected string, array.array found

2011-04-12 Thread Erlend Sannerud
Hello folks

I'm a newbie when it comes to Trac and Python.

We had a crash on our SAN (three disk crashes within 20 minutes). The
was partial backup of our Trac server. We had mysql and environment
but not /usr backup. This meant that we had to reinstall the trac
server from scratch and import the database into it. Almost everything
are working now. there is just one thing that is failing. When we are
clicking on a change set we get: TypeError: sequence item 1: expected
string, array.array found

It is probably an easy fix (I hope)

Here is the debug log and below that are the system environment and
activated plugins:

2011-04-12 12:58:40,749 Trac[env] INFO:
 environment startup [Trac 0.12.2]

2011-04-12 12:58:40,759 Trac[loader] DEBUG: Loading TracXMLRPC from /
usr/lib/python2.4/site-packages/TracXMLRPC-1.1.2_r9970-py2.4.egg
2011-04-12 12:58:40,759 Trac[loader] DEBUG: Loading codereview from /
usr/lib/python2.4/site-packages/CodeReview-0.1-py2.4.egg
2011-04-12 12:58:40,760 Trac[loader] ERROR: Skipping codereview =
codereview:
Traceback (most recent call last):
  File build/bdist.linux-x86_64/egg/trac/loader.py, line 68, in
_load_eggs
  File /usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88795-
py2.4.egg/pkg_resources.py, line 1954, in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
IOError: zipimport: can not open file /usr/lib/python2.4/site-packages/
CodeReview-0.1-py2.4.egg
2011-04-12 12:58:40,760 Trac[loader] DEBUG: Loading codereview from /
usr/lib/python2.4/site-packages/TracCodeReview-2.0dev-py2.4.egg
2011-04-12 12:58:40,760 Trac[loader] ERROR: Skipping codereview =
codereview:
Traceback (most recent call last):
  File build/bdist.linux-x86_64/egg/trac/loader.py, line 68, in
_load_eggs
  File /usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r88795-
py2.4.egg/pkg_resources.py, line 1954, in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
IOError: zipimport: can not open file /usr/lib/python2.4/site-packages/
CodeReview-0.1-py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading graphviz from /usr/
lib/python2.4/site-packages/graphviz-0.7.6dev-py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading mastertickets.api
from /usr/lib/python2.4/site-packages/TracMasterTickets-3.0.2-
py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading
mastertickets.web_ui from /usr/lib/python2.4/site-packages/
TracMasterTickets-3.0.2-py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading
timingandestimationplugin from /usr/lib/python2.4/site-packages/
timingandestimationplugin-1.1.2-py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading trac.about from /
usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,761 Trac[loader] DEBUG: Loading trac.admin.console
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,762 Trac[loader] DEBUG: Loading trac.admin.web_ui
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,762 Trac[loader] DEBUG: Loading trac.attachment
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,762 Trac[loader] DEBUG: Loading trac.db.mysql
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,762 Trac[loader] DEBUG: Loading trac.db.postgres
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,762 Trac[loader] DEBUG: Loading trac.db.sqlite
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,763 Trac[loader] DEBUG: Loading
trac.mimeview.patch from /usr/lib/python2.4/site-packages/Trac-0.12.2-
py2.4.egg
2011-04-12 12:58:40,763 Trac[loader] DEBUG: Loading
trac.mimeview.pygments from /usr/lib/python2.4/site-packages/
Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,771 Trac[loader] DEBUG: Skipping
trac.mimeview.pygments = trac.mimeview.pygments [pygments]:
(DistributionNotFound: Pygments=0.6 not found)
2011-04-12 12:58:40,772 Trac[loader] DEBUG: Loading trac.mimeview.rst
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,780 Trac[loader] DEBUG: Skipping
trac.mimeview.rst = trac.mimeview.rst [rest]:
(DistributionNotFound: docutils=0.3 not found)
2011-04-12 12:58:40,780 Trac[loader] DEBUG: Loading
trac.mimeview.silvercity from /usr/lib/python2.4/site-packages/
Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,789 Trac[loader] DEBUG: Skipping
trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]:
(DistributionNotFound: SilverCity=0.9.4 not found)
2011-04-12 12:58:40,790 Trac[loader] DEBUG: Loading trac.mimeview.txtl
from /usr/lib/python2.4/site-packages/Trac-0.12.2-py2.4.egg
2011-04-12 12:58:40,798 Trac[loader] DEBUG: Skipping
trac.mimeview.txtl = trac.mimeview.txtl [textile]:
(DistributionNotFound: textile=2.0 not found)
2011-04-12 12:58:40,798 Trac[loader] DEBUG: Loading trac.prefs from /

Re: [Trac] TypeError: sequence item 1: expected string, array.array found

2011-04-12 Thread Christian Boos

On 4/12/2011 1:07 PM, Erlend Sannerud wrote:

...
TypeError: sequence item 1: expected string, array.array found

System Information:
...
MySQL   server: 5.0.77, client: 5.0.77, thread-safe: 0
MySQLdb 1.2.1


This is a known issue with this version of the MySQL bindings for Python.
See http://trac.edgewall.org/wiki/MySqlDb#MySQLdb

Also, when you build the new version, pay attention to build it as 
thread-safe as explained in the above page (I see thread-safe: 0 in the 
above; this is also known to lead to problems).


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



[Trac] no password when resetting password

2011-04-12 Thread Yann Leboulanger

Hi,

First, I have trac 0.12.2 and TracAccountManager 0.3dev-r9929.
When a user resets his password, the password is resetted (in .passwd 
file), but no mail is sent.


smtp server is on the same host, so configured as localhost, and it 
works because I receive mails when a ticket is created / updated


I see nothing in trac.log, in mail.log.

Any idea what could be wrong? Where I could debug that?

Thanks for your help
--
Yann

--
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 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] TracError: Genshi UnicodeEncodeError error while rendering template (fresh Trac install)

2011-04-12 Thread Derek Simkowiak

Bump?

Is anyone here using Trac 0.12.2 under Ubuntu 10.04 successfully?


On 04/10/2011 05:18 PM, Derek Simkowiak wrote:
I have installed Trac like I have several times before, using 0.11 and 
0.12, under Ubuntu 8.04 and Ubuntu 10.04. Today I installed 0.12.2 
fresh, using this command:


sudo easy_install Trac

But when I visit my Trac site, I get this error in my web page:

Traceback (most recent call last):
  File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/api.py, 
line 440, in send_error

data, 'text/html')
  File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/chrome.py, 
line 885, in render_template

location=location))
TracError: Genshi UnicodeEncodeError error while rendering template 
'/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/templates/layout.html', 
line 12, char -1



I have several plugins installed, but the exception seems to be coming 
from the core Trac code, not one of the plugins. (Again, this all 
worked before.)


How do I troubleshoot this issue? Is possible this error is coming 
from one of my Trac plugins?  There is no additional information in 
the Apache logs (I'm using mod_python).



Thanks,
Derek

P.S. A possibly related problem: When I visit my /projects URL, I 
get an internal server error and this Unicode error is in my Apache 
error.log:


[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] mod_python 
(pid=4934, interpreter='main_interpreter', phase='PythonHandler?', 
handler='trac.web.modpython_frontend'): Application error
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] ServerName?: 
'derek.example.com'
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] 
DocumentRoot?: '/var/www'
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] URI: 
'/projects/'
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] Location: 
'/projects'

[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] Directory: None
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] Filename: 
'/var/www/projects'

[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] PathInfo?: '/'
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] Traceback 
(most recent call last):
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/lib/python2.6/dist-packages/mod_python/importer.py, line 1537, 
in HandlerDispatch?\n default=default_handler, arg=req, 
silent=hlist.silent)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/lib/python2.6/dist-packages/mod_python/importer.py, line 1229, 
in _process_target\n result = _execute_target(config, req, object, arg)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/lib/python2.6/dist-packages/mod_python/importer.py, line 1128, 
in _execute_target\n result = object(arg)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/modpython_frontend.py, 
line 149, in handler\n gateway.run(dispatch_request)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/wsgi.py, 
line 89, in run\n response = application(self.environ, 
self._start_response)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py, 
line 411, in dispatch_request\n env_paths)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py, 
line 703, in send_project_index\n req.send(output, 'text/html')
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/api.py, 
line 416, in send\n self.write(content)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] File 
/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/api.py, 
line 534, in write\n raise ValueError?(Can't send unicode content)
[Sun Apr 10 23:58:58 2011] [error] [client 192.168.2.10] ValueError?: 
Can't send unicode content




--
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 Ticket Numbers

2011-04-12 Thread David S
Once I create a new Trac project and get my trac.ini and db settings
all set. Is there a away for me to edit a config file so that the
starting New Ticket starts with say, #5000 and not #1 before I hand
it off to the team to start working?

-- 
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] Available Projects Page

2011-04-12 Thread David S
I'm new to Trac, so bare with me...

Each project I support has their own Trac wiki. The addresses, are
listed as such.

https://tracserver1.domain.com/trac/project1
https://tracserver1.domain.com/trac/project2
https://tracserver1.domain.com/trac/project3

But I noticed that if I remove the project listing and just direct my
browser to trac, https://tracserver1.domain.com/trac, I get shown a
page of all the Available Projects that my current Trac installation
contains. My question is, does this page get automatically updated as
I add a new project? Or is this a separate wiki page that I must edit
for any new projects to appear?



-- 
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] XML-RPC with a trac environment using digest authentication

2011-04-12 Thread Noah Kantrowitz
The URL should be http://, not https.

--Noah

On Apr 12, 2011, at 3:35 PM, mihai.rotaru wrote:

 Hi everyone
 
 I'm new to trac, so I'm not sure whether this should be posted as a ticket 
 for the XmlRpcPlugin, please
 let me know if that is the case.
 
 I'm getting a weird error while trying to use the XmlRpcPlugin to create a 
 ticket from the command-line.
 
 Here's the error:
 
 $ python trac-xml-rpc-digest.py
 Traceback (most recent call last):
   File trac-xml-rpc-digest.py, line 42, in module
 server.ticket.create( a ticket, description body )
   File c:\Python26\lib\xmlrpclib.py, line 1199, in __call__
 return self.__send(self.__name, args)
   File c:\Python26\lib\xmlrpclib.py, line 1489, in __request
 verbose=self.__verbose
   File trac-xml-rpc-digest.py, line 37, in request
 f=opener.open(request)
   File c:\Python26\lib\urllib2.py, line 391, in open
 response = self._open(req, data)
   File c:\Python26\lib\urllib2.py, line 409, in _open
 '_open', req)
   File c:\Python26\lib\urllib2.py, line 369, in _call_chain
 result = func(*args)
   File c:\Python26\lib\urllib2.py, line 1169, in https_open
 return self.do_open(httplib.HTTPSConnection, req)
   File c:\Python26\lib\urllib2.py, line 1136, in do_open
 raise URLError(err)
 urllib2.URLError: urlopen error [Errno 1] _ssl.c:480: error:140770FC:SSL 
 routines:SSL23_GET_SERVER_HELLO:unknown protocol
 
 I have attached trac-xml-rpc-digest.py; it's basically a slightly modified 
 version of the example for using XML-RPC found here.
 
 The environment is almost untouched, except that trac.ini is modified to 
 enable the XML-RPC plugin. Another thing to mention is that
 the folder containing the trac environment ( new-trac ) is inside the 
 project's root folder ( new-project ). I  can log in 
 and create tickets from the web interface, so I don't think authentication is 
 causing the issue.
 
 Command to run tracd:
 $ tracd --port 8000 --auth new-trac,C:\digest.txt,trac 
 /d/code/sandbox/new-project/new-trac/
 
 I have also attached a screenshot of the tracd console window.
 
 trac version: 0.12
 OS: Windows XP SP2
 I'm using the msys bash
 
 
 
 -- 
 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-xml-rpc-digest.pytrac-xml-rpc-digest-error.jpg

-- 
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] XML-RPC with a trac environment using digest authentication

2011-04-12 Thread mihai.rotaru
thanx for your reply;

I modified the script, but I notice no change, I get exactly the same error.

-- 
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] Re: Available Projects Page

2011-04-12 Thread jevans
On Apr 12, 4:01 pm, David S salinas.d...@gmail.com wrote:
 I'm new to Trac, so bare with me...

 Each project I support has their own Trac wiki. The addresses, are
 listed as such.

 https://tracserver1.domain.com/trac/project1https://tracserver1.domain.com/trac/project2https://tracserver1.domain.com/trac/project3

 But I noticed that if I remove the project listing and just direct my
 browser to trac,https://tracserver1.domain.com/trac, I get shown a
 page of all the Available Projects that my current Trac installation
 contains. My question is, does this page get automatically updated as
 I add a new project? Or is this a separate wiki page that I must edit
 for any new projects to appear?

Yes, it's generated automatically.

-- 
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] TracError: Genshi UnicodeEncodeError error while rendering template (fresh Trac install)

2011-04-12 Thread Derek Simkowiak

I believe the problem is caused by an old plugin or a plugin dependency.

Although I installed a few plugins, I had none of them activated.  But 
one of them seems to break Trac, even when not activated.  I don't know 
which one.


Here is a list of stuff I did not install this time (on the working 
server).  But I did install this on the broken server.  Many of these 
are old .10 or .11 plugins (because there were no .12 versions 
available), but I confirmed them working on a Trac .12 release many 
months ago.


--Derek

{{{
#!sh
sudo apt-get install libapache2-svn subversion python-subversion

# Needed for bitten's trac 10.4 compatiblity.
sudo apt-get install -y python-clearsilver

# Needed for bitten unitest.
sudo easy_install http://darcs.idyll.org/~t/projects/figleaf-latest.tar.gz

# Enable LDAP authentication (if using LDAP):
# Run this or the default config below will cause Apache not to start:
a2enmod authnz_ldap


sudo apt-get install -y build-essential graphviz
sudo easy_install -U setuptools
sudo easy_install http://svn.edgewall.org/repos/genshi/trunk/

sudo easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11
sudo easy_install 
http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10

sudo easy_install http://trac-hacks.org/svn/iniadminplugin/0.11
sudo easy_install http://trac-hacks.org/svn/masterticketsplugin/0.11

# NOTE: This is about the PageToPDF plugin: 
http://trac-hacks.org/ticket/1056

sudo easy_install http://trac-hacks.org/svn/pagetopdfplugin/0.10/

sudo easy_install http://trac-hacks.org/svn/progressmetermacro/0.11
sudo easy_install http://trac-hacks.org/svn/ticketdeleteplugin/0.11
sudo easy_install http://trac-hacks.org/svn/tracwysiwygplugin/0.11

sudo easy_install pisa
#sudo easy_install PIL
sudo apt-get install -y python-imaging
# Python headers are required:
sudo apt-get install -y python-dev
# Freetype dev:
sudo apt-get install -y libfreetype6-dev msttcorefonts
sudo easy_install http://trac-hacks.org/svn/tracwikiprintplugin
echo 
[components]
wikiprint.* = enabled
  /var/lib/trac/projects/$PROJECT/conf/trac.ini

#http://trac-hacks.org/wiki/TimingAndEstimationPlugin
# See also: 
http://trac-hacks.org/wiki/TimeEstimationUserManual#Configuration
sudo easy_install 
http://trac-hacks.org/svn/timingandestimationplugin/branches/trac0.11-Permissions/


#http://trac-hacks.org/wiki/WorkLogPlugin
sudo easy_install http://trac-hacks.org/svn/worklogplugin/0.11/

#http://trac-hacks.org/wiki/FullBlogPlugin
easy_install --always-unzip http://trac-hacks.org/svn/fullblogplugin/0.11
#[components]
echo 
tracfullblog.* = enabled
  /var/lib/trac/projects/$PROJECT/conf/trac.ini

# PrivateWiki plugin, see http://trac-hacks.org/wiki/PrivateWikiPlugin
sudo easy_install http://trac-hacks.org/svn/privatewikiplugin
# Enable this under [components] in trac.ini:
#[components]
echo 
privatewiki.api.privatewikisystem = enabled
  /var/lib/trac/projects/$PROJECT/conf/trac.ini
# Now add a new section to the trac.ini:
echo 
[privatewikis]
private_wikis=PRIVATE
  /var/lib/trac/projects/$PROJECT/conf/trac.ini

# Enable webadmin
cd /var/lib/trac/projects/$PROJECT/conf
cp -a trac.ini trac.ini-pre-webadmin
sed '
s/\[components\]/\[components\]\nwebadmin\.\* = enabled/
'  trac.ini-pre-webadmin  trac.ini

}}}

P.S. When I tried to submit this info to my ticket, it got rejected as 
Spam despite me entering a Captcha when prompted.


On 04/12/2011 01:10 PM, Christian Boos wrote:

On 4/12/2011 6:34 PM, Derek Simkowiak wrote:


Bump?
  ...


As you have created a ticket on t.e.o, please also check there ... you 
were asked a question

(http://trac.edgewall.org/ticket/10126#comment:1)

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