Try the upgrade with English locale:
LC_ALL=en_US.UTF8 trac-admin PATH upgrade
Then, check $ENV/log/trac.log and provide upgrade errors in the log file.
select table_schema, table_name, table_collation
from information_schema.tables
where table_schema='trac' -- replace with your schema
Also, what version of the MySQL server are you using?
> $ENV is the trac root, the same path I use when running trac-admin, isn't it? But the log folder below that path is empty.
Check [logging] log_type option. It is needed to configure "log_type =
file" for logging to $ENV/log/trac.log.
File "build/bdist.linux-x86_64/egg/trac/upgrades/db37.py", line 40, in do_upgrade
cursor.execute('ALTER TABLE %s %s' % (db.quote(tab), mods))
Also, check
/var/lib/mysql/trac directory in your environment.
You may be better off just dropping the database and recreating it.
I'm pretty sure that it's the database creation that describes the collation, so the import should change the collation.
OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')
The character set change has seemingly blown up the index entries beyond the MariaDB field limit.
* Use "innodb_large_prefix = 1".
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CA%2ByhgXAD7_R5fh-v6a8VrXmHPW2OxC1zXMjjrnK3mB%2B7nuF2OQ%40mail.gmail.com.
if I remember correct get_db_cnx was deprecated in 1.2 or so so you might wanna check your Plugins to use a version that is compatible with the trac version you running now.
TypeError: childtickets() takes exactly 2 arguments (1 given)
Being forced to deactivate this plugin (ChildTickets) would break what's documented over years in Trac, and what we are used to.
Hi Markus,if I remember correct get_db_cnx was deprecated in 1.2 or so so you might wanna check your Plugins to use a version that is compatible with the trac version you running now.That's what I found out. And it was plugin TracDynamicVariables. Deactivating that plugin and the error was gone. But I don't remember or know whether other plugins do need this plugin... maybe my sneaky feeling prove true, because I now getTypeError: childtickets() takes exactly 2 arguments (1 given)
Being forced to deactivate this plugin (ChildTickets) would break what's documented over years in Trac, and what we are used to.
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CA%2ByhgXA8KYfv8k%3DxgaRLuyP69PWMxzeXiGH2uBLTSAS871wxDw%40mail.gmail.com.
That's what I found out. And it was plugin TracDynamicVariables. Deactivating that plugin and the error was gone. But I don't remember or know whether other plugins do need this plugin... maybe my sneaky feeling prove true, because I now get
TypeError: childtickets() takes exactly 2 arguments (1 given)
(I would recommend new threads for new problems, and always
include the full error message and related plugin versions etc.)
This error seems to match the one in
https://trac-hacks.org/ticket/13088
so you probably have a very old ChildTicketsPlugin and need the
newer version mentioned there.