Issues with instance migration and TextIndexNG2->TextIndexNG3
Hello, I just needed to migrate a zope2.10 instance from one host to another. The zope version on the original host was 2.10.5, on the new destination host it's 2.10.6. Most disk products are the same, only TextIndexNG2 on the original host changed to TextIndexNG3 on the new destination host. I simply copied the Data.fs and all Extensions to the new host after preparing the new instance. So far everything seems to work out of the box, except that I get an error for TextIndexNG3 in the events.log and the product TextIndextNG3 is not listed in the Products management in the ZMI. Other instances, which are created from the scratch on this new host don't get ther error, thus I fear that it's not connected to the Product but to some conflict in the old Data.fs. The error from events.log is the following: 2008-09-05T13:35:10 ERROR Application Could not import Products.TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index ------ 2008-09-05T13:35:12 ERROR Application Couldn't install TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 758, in install_product global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index ------ 2008-09-05T13:35:12 INFO Zope Ready to handle requests As I'm relatively new to Zope I've simply no idea where to start debugging. Do you have any suggestions what the problem could be? greetings, jonas
--On 5. September 2008 13:48:21 +0200 Jonas Meurer <jonas@freesources.org> wrote:
The error from events.log is the following:
2008-09-05T13:35:10 ERROR Application Could not import Products.TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index ------ 2008-09-05T13:35:12 ERROR Application Couldn't install TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 758, in install_product global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index ------
Start Zope using "zopectl fg" and trible check if all your TXNG3 dependencies are installed. -aj
On 05/09/2008 Andreas Jung wrote:
--On 5. September 2008 13:48:21 +0200 Jonas Meurer <jonas@freesources.org> wrote:
------ 2008-09-05T13:35:12 ERROR Application Couldn't install TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 758, in install_product global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index ------
Start Zope using "zopectl fg" and trible check if all your TXNG3 dependencies are installed.
Hello, First thanks for your fast response. I tried starting the instance with zopectl fg, and got a similar Traceback with more verbose information. See the exact output below. But I have have to admit that I was wrong in my first mail with the assertion that the TextIndexNG3 ImportError was unique for the migrated instance in question. I discovered in the meantime that every zope2.10 instance on the new server - either new created or migrated from an old server - has this error at startup time in event.log. I use debian/lenny and the debian packages zope-textindexng3 and zope-textindexng3-lib on the new server, thus I believe that all dependencies are installed. But indeed it seems like the bug is in the installation of the TextIndexNG3 product, not in the instances. Yet I still don't know where to start debugging. Thanks for you help anyway. Here's the output of 'dzhandle zopectl donau fg': # dzhandle zopectl donau fg /var/lib/zope2.10/instance/donau/bin/runzope -X debug-mode=on 2008-09-05 15:20:42 INFO ZServer HTTP server started at Fri Sep 5 15:20:42 2008 Hostname: localhost Port: 9580 2008-09-05 15:20:42 INFO Zope Set effective user to "z-donau" 2008-09-05 15:20:43 INFO ReplaceSupport Applied patch version 1.0.3. 2008-09-05 15:20:43 ERROR Application Could not import Products.TextIndexNG3 Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index Traceback (most recent call last): File "/usr/lib/zope2.10/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/usr/lib/zope2.10/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/usr/lib/zope2.10/lib/python/Zope2/Startup/__init__.py", line 102, in prepare self.startZope() File "/usr/lib/zope2.10/lib/python/Zope2/Startup/__init__.py", line 278, in startZope Zope2.startup() File "/usr/lib/zope2.10/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/lib/zope2.10/lib/python/Zope2/App/startup.py", line 45, in startup OFS.Application.import_products() File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 686, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/usr/lib/zope2.10/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/__init__.py", line 25, in ? import TextIndexNG3 File "/var/lib/zope2.10/instance/donau/Products/TextIndexNG3/TextIndexNG3.py", line 24, in ? from textindexng.index import Index ImportError: No module named textindexng.index greetings, jonas
--On 5. September 2008 15:48:28 +0200 Jonas Meurer <jonas@freesources.org> wrote:
I use debian/lenny and the debian packages zope-textindexng3 and zope-textindexng3-lib on the new server, thus I believe that all dependencies are installed. But indeed it seems like the bug is in the installation of the TextIndexNG3 product, not in the instances.
Debian packages? No idea....try my original source code pages and install it the documented way. Don't try to argue about the advantages of Debian packages...they are often broken when it comes to Zope related issues. -aj
participants (2)
-
Andreas Jung -
Jonas Meurer