cpdb problem

Post Reply
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

cpdb problem

Post by bart »

cpdb crashes mid-copy. Tried this from scratch a couple times and it happens each time:

DESTINATION MACHINE:
# cpdb
200 cpdb server pid 8437 started. This should be stopped when no longer needed
*** glibc detected *** corrupted double-linked list: 0x0000000000b65b30 ***
# ls *.tbl |wc
29 29 355
# texis -version
Texis Web Script (Vortex) Copyright (c) 1996-2007 Thunderstone - EPI, Inc.
Commercial Version 5.01.1170321809 20070201 (x86_64-unknown-linux2.6.9-64-64)



SOURCE MACHINE:
www# cpdb -d . -h motor -r /httpd/texis
zsh: suspended cpdb -d . -h motor -r /httpd/texis
www# bg
[1] + continued cpdb -d . -h motor -r /httpd/texis
[1] + done cpdb -d . -h motor -r /httpd/texis
www# ls *.tbl |wc
68 68 989
www# texis -version
Texis Web Script (Vortex) Copyright (c) 1996-2005 Thunderstone - EPI, Inc.
Commercial Version 5.01.1109947850 20050304 (i686-unknown-linux2.4.9-64-32)
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

cpdb problem

Post by mark »

Did any of the tables being copied already exist in the destination? Copying will fail if the destination table already exists.

What if you do one table at a time using -t?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

cpdb problem

Post by bart »

>Did any of the tables being copied already exist in the destination? Copying will fail if the destination table already exists.

No, each time i tried this i created a virgin database on the destination machine.

>What if you do one table at a time using -t?

Since there was almost 70 tables to copy, i thought it might be a little time consuming doing each table manually. The task of re-creating all the indexes is daunting enough.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

cpdb problem

Post by mark »

Does it always get stuck at the same place in the same table? Does it copy part of that table or none? What if you try just that table by itself? What's the schema for that table?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

cpdb problem

Post by bart »

It looks like its getting stuck after copying one row of a table called blobject. The only really unique thing about the table is that it has blob field for holding large binary junk. Since the last modified file on the destination machine was the ".blb" file that belongs to that table, i assume that the prob was caused by that field.

Heres the schema:
tsql "select * from SYSCOLUMNS where TBNAME='blobject'"
Texis Version 05.01.1109947850(20050304) Copyright (c) 1988-2005 Thunderstone EPI

NAME TBNAME TYPE SIZE ORDINAL_POSITION IDX NULLABLE SQLTYPE PRECIS LENGTH SCALE RADIX REMARK
------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+
id blobject counter 1 1 1 -2 20 8 0 10
ownerid blobject counter 1 2 1 -2 20 8 0 10
parent blobject counter 1 3 1 -2 20 8 0 10
cdate blobject date 1 4 1 9 10 4 0 10
listorder blobject int 1 5 1 4 10 4 0 10
xsz blobject int 1 6 1 4 10 4 0 10
ysz blobject int 1 7 1 4 10 4 0 10
obj blobject blob 1 15 1 -2 1 1 0 10
tx blobject int 1 17 1 4 10 4 0 10
ty blobject int 1 18 1 4 10 4 0 10
mimetype blobject varchar 80 8 1 -1 80 80 0 10
perms blobject varchar 20 9 1 -1 20 20 0 10
groups blobject varchar 20 10 1 -1 20 20 0 10
grants blobject varchar 20 11 1 -1 20 20 0 10
fname blobject varchar 80 12 1 -1 80 80 0 10
title blobject varchar 80 13 1 -1 80 80 0 10
detail blobject varchar 1024 14 1 -1 1024 1024 0 10
thumb blobject varbyte 8000 16 1 -4 8000 8000 0 10
www% tsql "select * from SYSCOLUMNS where TBNAME='blobject'"
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

cpdb problem

Post by bart »

BTW, I removed that table from the source machine and the copy went to completion.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

cpdb problem

Post by mark »

It appears to be a problem with blobs in the -64-64 version. We're looking into causes. I don't have any workarounds at the moment except to export, transfer, and reimport the data.
Post Reply