Installation//Configuration TRAC

ViPHP
fab
ViPHP | 2657 Messages

20 oct. 2009, 17:24

Bonjour tlm,

Je rencontre quelques problèmes après l'installation de TRAC lors je veux me connecter j'ai droit à ce message d'erreur :
Trac Error
Authentication information not available. Please refer to the installation documentation.
Et par exemple si je veux accèder à Roadmap ou Browsersource
Oops…
Trac detected an internal error:

LookupError: unknown encoding: utf_8_euro

There was an internal error in Trac. It is recommended that you inform your local Trac administrator and give him all the information he needs to reproduce the issue.

To that end, you could ==== How to Reproduce ==== While doing a GET operation on `/timeline`, Trac issued an internal error. ''(please provide additional details here)'' User Agent was: `Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3` ==== System Information ==== || '''Trac''' || `0.11.1` || || '''Python''' || `2.5.2 (r252:60911, Jan 4 2009, 17:40:26) ` [[br]] `[GCC 4.3.2]` || || '''setuptools''' || `0.6c10` || || '''SQLite''' || `3.5.9` || || '''pysqlite''' || `2.4.1` || || '''Genshi''' || `0.5.1` || || '''Pygments''' || `0.10` || || '''Subversion''' || `1.5.1 (r32289)` || || '''jQuery:''' || `1.2.6` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 197, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/trac/timeline/web_ui.py", line 123, in process_request 'today': format_date(today), File "/usr/lib/python2.5/site-packages/trac/util/datefmt.py", line 121, in format_date return format_datetime(t, format, tzinfo=tzinfo) File "/usr/lib/python2.5/site-packages/trac/util/datefmt.py", line 113, in format_datetime return unicode(text, encoding, 'replace') LookupError: unknown encoding: utf_8_euro }}} a ticket at this site.

The action that triggered the error was:

GET: /timeline
Je vous met les fichiers de conf :
vhost du trac

Code : Tout sélectionner

<VirtualHost *> ServerAdmin [email protected] ServerName trac.mydomain.com DocumentRoot /var/trac/monProjet <Location /> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/trac/monProjet PythonOption TracUriRoot / PythonPath "sys.path + ['/var/trac/monProjet']" </Location> ErrorLog /var/log/apache2/error.trac.myDomain.org.log CustomLog /var/log/apache2/access.trac.domaine.org.log combined <Location /svn/> DAV svn SVNPath /var/www/usvn/files/svn/monProjet AuthType Basic AuthName "USVN" AuthUserFile /var/www/usvn/files/svn/monProjet/conf/passwd AuthzSVNAccessFile /var/www/usvn/files/svn/monProjet/conf/authz <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> <Location "/login"> AuthType Basic AuthName "Trac login" AuthUserFile /var/www/usvn/files/svn/monProjet/conf/passwd AuthzSVNAccessFile /var/www/usvn/files/svn/monProjet/conf/authz Require valid-user </Location> </VirtualHost>
Trac.ini

Code : Tout sélectionner

# -*- coding: utf-8 -*- [attachment] max_size = 262144 render_unsafe_content = false [components] webadmin.* = enabled [browser] color_scale = True downloadable_paths = /trunk, /branches/*, /tags/* hide_properties = svk:merge intermediate_color = intermediate_point = newest_color = (255, 136, 136) oldest_color = (136, 136, 255) oneliner_properties = trac:summary render_unsafe_content = false wiki_properties = trac:description [changeset] max_diff_bytes = 10000000 max_diff_files = 0 wiki_format_messages = true [header_logo] alt = Clymo logo height = -1 link = src = http://beta.mydomain.com/images/wj/logos/aux.png width = -1 [inherit] plugins_dir = templates_dir = [logging] log_file = trac.log # log_format = <inherited> log_level = DEBUG log_type = none [milestone] stats_provider = DefaultTicketGroupStatsProvider
Et avant d'oublier pour lancer trac je fais comme ça : tracd -s --port 8000 /var/trac/monProjet
Seul l'intelligent a le pouvoir de se trouver con
try { work(); } catch(FlemmeExeption $e) { sleep(84600); }

Avatar du membre
Administrateur PHPfrance
Administrateur PHPfrance | 13231 Messages

20 oct. 2009, 17:40

Il ne s'agirait pas d'un soucis de locale sur ton serveur ? le message d'erreur semble indiquer qu'il ne connait pas "utf_8_euro"
Connaître son ignorance est la meilleure part de la connaissance
Pour un code lisible : n'hésitez pas à sauter des lignes et indenter

twitter - site perso - Github - Zend Certified Engineer

ViPHP
fab
ViPHP | 2657 Messages

20 oct. 2009, 17:48

phpfrance222.png
Visiblement pas :s
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
Seul l'intelligent a le pouvoir de se trouver con
try { work(); } catch(FlemmeExeption $e) { sleep(84600); }

ViPHP
fab
ViPHP | 2657 Messages

21 oct. 2009, 13:14

Bon j'ai pas mal avancé sur mon Trac depuis hier! Il y avait bien un problème de locale Zeus, mais pas venant de moi ! C'est un bug de python qui executes mal le choix des locales, ceci arrive lorsqu'on utilise des locales @euro! Pour que Trac prenne en compte la modification j'ai quand même du faire un reboot de mon serveur ... :s
Pour le soucis d'identification c'est aussi réglé, je peux me connecter comme il faut sur mon Trac avec mes identifiants :)

Par contre j'ai un soucis lorsque je veux explorer les sources maintenant!
phfsdf.png
Le screen parle de lui même :s J'ai beau cherché je trouve pas l'origine du problème, je vois même pas dequel / il veut parler :s

Quelqu'un peut-il m'éclairer?
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
Seul l'intelligent a le pouvoir de se trouver con
try { work(); } catch(FlemmeExeption $e) { sleep(84600); }

ViPHP
fab
ViPHP | 2657 Messages

21 oct. 2009, 14:35

Bon j'ai finalement réussi, il fallait que je commence la ligne authz dans le trac.ini visiblement c'est un bug.. Normalement le but voulu était de pouvoir accéder au dépôt que si on est connecté mais ça marche mieux sans...
Seul l'intelligent a le pouvoir de se trouver con
try { work(); } catch(FlemmeExeption $e) { sleep(84600); }