Importing a site with missing products
I need to duplicate (for testing) a site currently running on Windows on to Linux. This isn't a big deal. I've done the reverse direction without grief. However, on this occasion, I want to change the database connector from MS SQL Server to (mxodbc) to PostgreSQL (zpsycopgda) . Having exported the live site, I am unable to import it again in the test environment because of the following errors: WARNING ZODB Could not import class 'ZopeConnection' from module 'Products.mxODBCZopeDA.ZopeDA' INFO Script (Python) Some of your Scripts have stale code cached. Since Zope cannot use this code, startup will be slightly slower until these Scripts are edited. You can automatically recompile all Scripts that have this problem by visiting /manage_addProduct/PythonScripts/recompile of your server in a browser. Although the first error is only a warning it appears to be fatal and the import doesn't complete. I also tried following the advice on the INFO message but was told there were no scripts to update. What I'd like is for the import to complete so I can sort out the database connectors. Anyone any suggestions? The live site is running 2.7.6-final python 2.3.5 (win32) and the test site is running 2.8.4-final python 2.4.0 (linux) Thanks. -- Dale Strickland-Clark Riverhall Systems Ltd - www.riverhall.co.uk
--On 13. Juli 2006 09:48:14 +0100 Dale Strickland-Clark <zope@d.strickers.org.uk> wrote:
Anyone any suggestions?
The live site is running 2.7.6-final python 2.3.5 (win32) and the test site is running 2.8.4-final python 2.4.0 (linux)
How do you duplicate the site? Through export/import? If yes, both installations must have an identical setup. Different Zope, Python, product versions are not supported in this case. -aj
Dale Strickland-Clark wrote at 2006-7-13 09:48 +0100:
I need to duplicate (for testing) a site currently running on Windows on to Linux.
This isn't a big deal. I've done the reverse direction without grief.
However, on this occasion, I want to change the database connector from MS SQL Server to (mxodbc) to PostgreSQL (zpsycopgda) .
Having exported the live site, I am unable to import it again in the test environment because of the following errors:
You can only import a zexp when all modules and classes referenced in the "zexp" are available in the importing instance. What you want to do is not possible. Your options: * Install "ZmxODBC" in the destination instance (I can run under Linux, too) * Install "ZPsycopgDA" in the source instance, change your DA's to use "ZPsycopgDA". * Export and import * maybe, change your DAs back to the previous state. -- Dieter
I decided to install mxODBC but there isn't one for my combination of Zope and Python versions so I'm now off on an unplanned upgrade trail...bum! Thanks for the help. On Thursday 13 July 2006 22:47, Dieter Maurer wrote:
Dale Strickland-Clark wrote at 2006-7-13 09:48 +0100:
I need to duplicate (for testing) a site currently running on Windows on to Linux.
This isn't a big deal. I've done the reverse direction without grief.
However, on this occasion, I want to change the database connector from MS SQL Server to (mxodbc) to PostgreSQL (zpsycopgda) .
Having exported the live site, I am unable to import it again in the test environment because of the following errors:
You can only import a zexp when all modules and classes referenced in the "zexp" are available in the importing instance.
What you want to do is not possible.
Your options:
* Install "ZmxODBC" in the destination instance (I can run under Linux, too)
* Install "ZPsycopgDA" in the source instance, change your DA's to use "ZPsycopgDA".
* Export and import
* maybe, change your DAs back to the previous state.
-- Dale Strickland-Clark Riverhall Systems Ltd - www.riverhall.co.uk London UK
participants (3)
-
Andreas Jung -
Dale Strickland-Clark -
Dieter Maurer