Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

bsddb module woes

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


richard at bizarsoftware

Aug 28, 2001, 7:52 PM

Post #1 of 5 (345 views)
Permalink
bsddb module woes

We've just had a forced upgrade from redhat 6.2 to redhat 7.1, and the bsddb
module won't open our (very important) db files any more.

Python 2.1 (#1, Aug 29 2001, 11:53:30)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import bsddb
>>> bsddb.btopen('nodes.issue', 'r')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
bsddb.error: (-30990, 'Unknown error 4294936306')
>>>

I am guessing that this has something to do with the library that's been
linked in. I've had to manually compile python 2.1 on the system, and all
seemed to go fine.

[root [at] dir lib.linux-i686-2.1]# ldd bsddb.so
libdb-3.1.so => /lib/libdb-3.1.so (0x4000b000)
libc.so.6 => /lib/i686/libc.so.6 (0x40084000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

Any ideas? More information required?


Richard


richard at bizarsoftware

Aug 28, 2001, 8:18 PM

Post #2 of 5 (323 views)
Permalink
bsddb module woes [In reply to]

On Wednesday 29 August 2001 12:52, Richard Jones wrote:
> We've just had a forced upgrade from redhat 6.2 to redhat 7.1, and the
> bsddb module won't open our (very important) db files any more.
>
> Python 2.1 (#1, Aug 29 2001, 11:53:30)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2
> Type "copyright", "credits" or "license" for more information.
>
> >>> import bsddb
> >>> bsddb.btopen('nodes.issue', 'r')
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> bsddb.error: (-30990, 'Unknown error 4294936306')
>
>
> I am guessing that this has something to do with the library that's been
> linked in. I've had to manually compile python 2.1 on the system, and all
> seemed to go fine.
>
> [root [at] dir lib.linux-i686-2.1]# ldd bsddb.so
> libdb-3.1.so => /lib/libdb-3.1.so (0x4000b000)
> libc.so.6 => /lib/i686/libc.so.6 (0x40084000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>
> Any ideas? More information required?

I found some hints from people having similar problems. They suggest using
db_dump185 and db_load to convert the db files. My problem is:

% db_dump185 nodes.user
db_dump185: nodes.user: Invalid argument

We're now going to try to dump the dbs using a system with redhat 6.2
installed...


Richard


richard at bizarsoftware

Aug 28, 2001, 8:24 PM

Post #3 of 5 (327 views)
Permalink
bsddb module woes [In reply to]

On Wednesday 29 August 2001 13:18, Richard Jones wrote:
> I found some hints from people having similar problems. They suggest using
> db_dump185 and db_load to convert the db files. My problem is:
>
> % db_dump185 nodes.user
> db_dump185: nodes.user: Invalid argument
>
> We're now going to try to dump the dbs using a system with redhat 6.2
> installed...

And this has solved our problems. But there's got to be a better way than
this... blech


Richard


skip at pobox

Aug 29, 2001, 6:54 AM

Post #4 of 5 (326 views)
Permalink
bsddb module woes [In reply to]

>> I found some hints from people having similar problems. They suggest
>> using db_dump185 and db_load to convert the db files. My problem is:
>>
>> % db_dump185 nodes.user
>> db_dump185: nodes.user: Invalid argument
>>
>> We're now going to try to dump the dbs using a system with redhat 6.2
>> installed...

Richard> And this has solved our problems. But there's got to be a
Richard> better way than this... blech

Richard,

Sleepycat's dump/load program names leave a bit to be desired. Sounds like
you were migrating from libdb2 to libdb3. I think you want db2_dump
followed by db_load. db_dump185 is for dumping a libdb1 database. Assuming
you are running bash with command line completion enabled, try typing "db2_"
or "db_", then hitting the TAB key. You should see a number of interesting
db_* and db2_* programs:

% db_
db_archive db_dump db_printlog db_upgrade
db_checkpoint db_dump185 db_recover db_verify
db_deadlock db_load db_stat
% db2_
db2_archive db2_deadlock db2_load db2_recover
db2_checkpoint db2_dump db2_printlog db2_stat

--
Skip Montanaro (skip [at] pobox)
http://www.mojam.com/
http://www.musi-cal.com/


skip at pobox

Aug 29, 2001, 7:08 AM

Post #5 of 5 (327 views)
Permalink
bsddb module woes [In reply to]

FYI, I just updated FAQ 4.99 to include information about libdb 2 and 3.

Skip

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.