I've cloned the old system and run the upgrade steps on it. The attachments 
paths have been updated correctly. I tried the migration from sqlite to 
mysql using 

https://trac-hacks.org/wiki/TracMigratePlugin

and I am getting the following, any ideas?

trac-migrate.py --in-place /var/trac/projects/main 
mysql://user:password@localhost:3306/trac
Traceback (most recent call last):
  File "./trac-migrate.py", line 55, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "./trac-migrate.py", line 51, in main
    return TracMigrationCommand(env)._do_migrate(dest, dburi)
  File "/var/trac-migrate/tracmigrate/admin.py", line 55, in _do_migrate
    return self._do_migrate_inplace(dburi)
  File "/var/trac-migrate/tracmigrate/admin.py", line 86, in 
_do_migrate_inplace
    dst_env = self._create_env(env_path, dburi)
  File "/var/trac-migrate/tracmigrate/admin.py", line 128, in _create_env
    env = MigrateEnvironment(env_path, create=True, options=options)
  File 
"/python27/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/core.py", 
line 128, in __call__
    self.__init__(*args, **kwargs)
  File 
"/python27/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/env.py", 
line 299, in __init__
    self.create(options)
  File 
"/python27/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/env.py", 
line 591, in create
    DatabaseManager(self).init_db()
  File 
"/python27/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/db/api.py", 
line 337, in init_db
    connector, args = self.get_connector()
  File 
"/python27/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/db/api.py", 
line 606, in get_connector
    scheme=scheme))
trac.core.TracError: Unsupported database type "mysql"


On Friday, February 12, 2016 at 9:06:15 AM UTC-7, Michela Ledwidge wrote:
>
> For the benefits of anyone else upgrade old tracs, suggest adding 
> something like this to TracFaq. It quite took a while to troubleshoot 
> upgrading from 0.12.2 to 1.1.6.
>
> Is there no way to determine an attachment's path?
>
> --
> Q: Attachments are missing after upgrade
> Attachments from earlier versions of trac cannot simply be copied into the 
> new file structure as the path and filename are now generated. The trac 
> upgrade scripts rely on the existence of the old 
> /path/to/projenv/attachments folder and will attempt to delete it when the 
> upgrade is complete. If the legacy attachments folder is not found at 
> upgrade time, restore it and then run the db28.py script above to migrate 
> legacy files
>
> To find the path to a file, <INSERT>
>
> --
>
> Michela
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to