trac 설치중 에러
trac-0.10.3.1
apache-2.2.6
svn-1.3.2
python-2.4.4
mysql-5.0.44
mysqldb-1.2.2
clearsilver-0.10.1
setuptools-0.6
docutils-0.4
mod_python-3.2.10
를 설치해서
mysql에 database trac을 만들고
trac-admin /var/lib/trac/myproject/ initenv
-->
Project Name [My Project]>
Database connection string [sqlite:db/trac.db]>mysql://root:xxx@localhost:3306/trac
Repository type [svn]> svn
Path to repository [/path/to/repos]> /home/svn/myproject
Templates directory [/usr/share/trac/templates]>
Creating and Initializing Project
Failed to create environment. (1071, 'Specified key was too long; max key length is 1000 bytes')
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv
options=options)
File "/usr/lib/python2.4/site-packages/trac/env.py", line 124, in __init__
self.create(options)
File "/usr/lib/python2.4/site-packages/trac/env.py", line 229, in create
DatabaseManager(self).init_db()
File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 69, in init_db
connector.init_db(**args)
File "/usr/lib/python2.4/site-packages/trac/db/mysql_backend.py", line 50, in init_db
cursor.execute(stmt)
File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 166, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1071, 'Specified key was too long; max key length is 1000 bytes')
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv
sys.exit(1)
SystemExit: 1
이러한 에러가 발생했습니다.
이 에러가 mysql 때문인지 project environment생성에서 잘못해서 그런건지 아니면 다른 설정 값때문인지 고수님들의 조언 부탁드립니다.
잠깐만 검색을
잠깐만 검색을 해보셨으면 답을 찾으셨을텐데요.
http://trac.edgewall.org/ticket/4901
원칙적으로는 MySQL의 버그이고, Trac 0.10.4에 버그를 피해가는 코드가 들어갔습니다.
댓글 달기