I try to migrate a trac installation from a debian wheezy server to another debian jessie.
If I copy all files to the new server I get the message, that I have to upgrade with trac-admin /var/trac/blimus upgrade
, which seems to work, but it seems not to update all plugins.
for example I had a plugin installed in the old trac, that lets you login on a webpage instead of the htaccess popup.
On the new server I now get the error
Error: Not Found
No handler matched request to /login
How do I get the web-login back?
Is there a way to analyze the old trac folder, which plugins were installed, so I can install the missing ones in the new installation?
I checked the new trac.ini file and added the missing options, this is my trac.ini
These are my versions:
# trac-admin --version
Warning: Detected setuptools version 5.5.1.
Welcome to trac-admin 1.0.2
2
Answers
This instruction will work on Debian jessie (Trac 1.0.2), as well as Ubuntu 14.04 trusty (Trac 1.0.1)
Prerequisites
On your old Debian wheezy server:
Installation on the new server
# extract the tar-gz file of the trac installation from the old server
# remove old plugins and eggs
# update Trac
# install neverNotifier Plugin
# (This is still needed on trac 1.0.x, on 1.2 ist is obsolete)
# setup hosts file
# apache config
On a fresh installed systen, disable the default apache config
then restart apache
If the plugin were installed in the Environment
plugins
directory aseggs
, they will be carried over to your new server when you copied the the environment. However, you almost certainly need to upgrade to newer versions, so I suggest deleting the eggs from the Environmentplugins
directory. The plugins might also have been installed in Python’ssite-packages
. Or they could have been installed using Debian’s package manager, I’m not sure if plugins are available there, you might want to search usingapt
. See Trac Plugin documentation.Which version of Trac are you running now? I assume it’s 1.2.3.
You
trac.ini
shows that you have 3 plugins installed, and you no longer need one of them in Trac 1.2 (NeverNotifyUpdaterPlugin). You should install these two:* AccountManagerPlugin
* XmlRpcPlugin
I don’t know if Debian packages those for distribution. If not, you can install them with pip.