Berkeley DB upgrade
Hi: I want to upgrade my BerkeleyDB, I have some 500MB in BDB 43. - What is the latest stable version? - Is there any way of determining if datafiles are compatible across versions? - Is there any tool for migrating between versions? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Berkeley DB upgrade
On Sat, Mar 13, 2010 at 11:26 AM, Erik Norgaard norga...@locolomo.org wrote: Hi: I want to upgrade my BerkeleyDB, I have some 500MB in BDB 43. - What is the latest stable version? - Is there any way of determining if datafiles are compatible across versions? - Is there any tool for migrating between versions? The upgrade process is explained here: http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/am_upgrade.html http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/upgrade_process.html http://www.oracle.com/technology/documentation/berkeley-db/db/api_reference/C/db_upgrade.html http://www.oracle.com/technology/documentation/berkeley-db/db/api_reference/C/dbupgrade.html Of course, don't forget to backup your old data before upgrading! ;-) Thanks, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How use and manage a Berkeley DB 1.85?
Hello Nicolas Sorry for the delay. I know Berkeley 1.85 from Cyrus SASL. If you install /ports/databases/db42 you get dump (to a text file) and restore tools. They are called db42_... and are located in /usr/local/bin. In /usr/local/share/doc/db42 are some docs. Regards, Am Wed, Mar 12, 2008 at 11:05:30AM +0100 Nicolas Letellier schrieb: Hello, I have a db Berkeley DB 1.85. I have softwares which use it. I would like to know how manage it? How show all datas contained? How delete a data? How insert a data? Is there a port to do this? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Martin Schweizer [EMAIL PROTECTED] PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How use and manage a Berkeley DB 1.85?
Hello, I have a db Berkeley DB 1.85. I have softwares which use it. I would like to know how manage it? How show all datas contained? How delete a data? How insert a data? Is there a port to do this? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How use and manage a Berkeley DB 1.85?
Nicolas Letellier wrote: Hello, I have a db Berkeley DB 1.85. I have softwares which use it. I would like to know how manage it? How show all datas contained? How delete a data? How insert a data? Is there a port to do this? BDB is a single-file key-value database. It's not a SQL or any other transactional database, and it's fairly simple to program for. Unfortunately I don't think there are any friendly utilities to inspect the data. If you know any programming language (C, Python, Perl...), it's almost trivial to write one. See http://www.freebsd.org/cgi/man.cgi?query=dbopen and the manual pages linked from there. signature.asc Description: OpenPGP digital signature
Which version of berkeley DB?
Hi: So far I have managed to keep all on version 43 of Berkeley DB, I see there is now 4.4, 4.5 and 4.6. - Is there any way to find out which is the latest version all ports will build against? - Is there any reason to upgrade? Thanks, Erik -- Erik Nørgaard Ph: +34.666334818 http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Which version of berkeley DB?
On Thursday 21 February 2008 20:38:31 Erik Norgaard wrote: So far I have managed to keep all on version 43 of Berkeley DB, I see there is now 4.4, 4.5 and 4.6. - Is there any way to find out which is the latest version all ports will build against? No, cause there's reasons there's so many db4* ports. Some interfaces changed along the way and depending software needs time to conform to it. However: You can set WITH_BDB_VER in /etc/make.conf and pick one. If you grep BDB /usr/ports/Mk/bsd.databases.mk you can quickly see that a portmaintainer has more power then you. - Is there any reason to upgrade? Other then diskspace and clutter, there is no reason to remove older versions as they are properly separated by the ports. But as said you can specify a default to be used when the port does not care which version 4 it needs. In Utopia this should slowly migrate out ancient versions. In the real world, there will be this one unmaintained app you really like that won't work with anything over 42 :p -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache22 Port can't find Berkeley DB.
Hi! Just FYI, I didn't get any response to the message I sent to the port-maintainer. I do know they've been working on / releasing stuff on this port in the meantime. Since I don't see any other way to communicate to a maintainer other than by list/email, I guess the right, next step is filing a Problem Report. (Do PR's forward to the maintainer, or some other list?) http://www.freebsd.org/cgi/query-pr.cgi?pr=116637 Thanks! :-) Ali ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache22 Port can't find Berkeley DB.
On September 21, 2007 at 09:53AM Aliya Harbouri wrote: Hi! When I ran an upgrade to the Ports tree using the portsnap tool portsnap fetch update I saw an available update available to /usr/ports/www/apache22, but it was immediately followed with an error, IGNORED Unknown Berkeley DB version in the console output. Other ports eventually get updated, but apache22 seems to get skipped as a result. It took me a bit to figure out that the IGNORE is coming from the Port's Makefile.modules, IGNORE= Unknown Berkeley DB version I've read online about use of /usr/ports/Mk/bsd.database.mk /etc/make.conf for build configuration, and have added USE_BDB WITH_BDB_HIGHEST=true WITH_BDB_VER=46 BDB_LIB_DIR=/usr/local/lib/db46 BDB_INCLUDE_DIR=/usr/local/include/db46 to make.conf. If I grok this stuff correctly, Ports should now find use BDB, version 46. Good news! This seems to make all other Ports generally happy. They seem to find/use BDB like I intend. But the apache22 Port still doesn't update, because of the Unknown BDB version. Is there some additional Ports-magic that I'm missing here? Ali I have been having the same problem with the latest version of Berkeley. I was going to contact the maintainer '[EMAIL PROTECTED]'; however, I have not gotten around to it yet. Perhaps you might want to inquire of him how to get this problem rectified. -- Ciao Gerard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache22 Port can't find Berkeley DB.
Hi Gerard! I have been having the same problem with the latest version of Berkeley. I was going to contact the maintainer '[EMAIL PROTECTED]'; however, I have not gotten around to it yet. Perhaps you might want to inquire of him how to get this problem rectified. Sure! Best, I guess, to just forward this :-) Hi Clement, I hope this is the best way to communicate this issue http://lists.freebsd.org/pipermail/freebsd-questions/2007-September/158447.html Bye! Ali ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache22 Port can't find Berkeley DB.
Hi! When I ran an upgrade to the Ports tree using the portsnap tool portsnap fetch update I saw an available update available to /usr/ports/www/apache22, but it was immediately followed with an error, IGNORED Unknown Berkeley DB version in the console output. Other ports eventually get updated, but apache22 seems to get skipped as a result. It took me a bit to figure out that the IGNORE is coming from the Port's Makefile.modules, IGNORE= Unknown Berkeley DB version I've read online about use of /usr/ports/Mk/bsd.database.mk /etc/make.conf for build configuration, and have added USE_BDB WITH_BDB_HIGHEST=true WITH_BDB_VER=46 BDB_LIB_DIR=/usr/local/lib/db46 BDB_INCLUDE_DIR=/usr/local/include/db46 to make.conf. If I grok this stuff correctly, Ports should now find use BDB, version 46. Good news! This seems to make all other Ports generally happy. They seem to find/use BDB like I intend. But the apache22 Port still doesn't update, because of the Unknown BDB version. Is there some additional Ports-magic that I'm missing here? Ali ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to Upgrade Berkeley DB? (Was Re: How to Upgrade Portupgrade?)
On 4/27/2007 10:58 AM Lowell Gilbert wrote: Drew Tomlinson [EMAIL PROTECTED] writes: Thanks for all the replies. Funny thing is that when trying the portupgrade -o solution and using pkg_info | grep portupgrade, no results were returned. The /var/db/pkg directory had no portupgrade* entries. Thus I just used portupgrade -N portupgrade to upgrade. All seemed OK. I did notice a make config window that asked me which version of Berkeley DB to use for the backend. Not knowing, I just chose the default of =2 and the port built without error. Missing entries in the package database? Could be a problem, although more likely it's just a mistake of some sort. Next I attempted pkgdb -L suggested in the pkg-message file. It returned this error: blacksheep# pkgdb -L [Updating the pkgdb format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!] I assume this is due to choosing the incorrect Berkeley DB version? So should I rebuild the portupgrade port and choose Berkeley DB 1.85 or is it recommended to convert the pkgdb to the newer version? If I should convert, how? My build machine is powered down today, so I can't get the exact answer, but it was in /usr/ports/UPDATING at the time. I just searched /usr/ports/UPDATING. I only find two entries, neither of which seems to cover my situation: 20061130: AFFECTS: users of net/openldap2[34]-server AUTHOR: [EMAIL PROTECTED] The default Berkeley DB version has been changed from 4.3 to 4.4, as suggested by OpenLDAP developers. 0060403: AFFECTS: users of databases/db* AUTHOR: [EMAIL PROTECTED] Most of the ports that depend on Berkeley DB have been updated to use Mk/bsd.database.mk. Mk/bsd.database.mk is used to include MySQL, PostgreSQL, Berkeley DB, and SQLite in a port. A quick Google search didn't reveal anything specific to FBSD and portupgrade on how to upgrade Berkeley DB. However I will keep looking. If you come across something on how I should update my systems to use the latest stable Berkeley DB and convert all dbs to that version, I'd appreciate the link. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to Upgrade Berkeley DB?
On 4/27/2007 1:09 PM Lowell Gilbert wrote: Drew Tomlinson [EMAIL PROTECTED] writes: On 4/27/2007 10:58 AM Lowell Gilbert wrote: Drew Tomlinson [EMAIL PROTECTED] writes: Thanks for all the replies. Funny thing is that when trying the portupgrade -o solution and using pkg_info | grep portupgrade, no results were returned. The /var/db/pkg directory had no portupgrade* entries. Thus I just used portupgrade -N portupgrade to upgrade. All seemed OK. I did notice a make config window that asked me which version of Berkeley DB to use for the backend. Not knowing, I just chose the default of =2 and the port built without error. Missing entries in the package database? Could be a problem, although more likely it's just a mistake of some sort. Next I attempted pkgdb -L suggested in the pkg-message file. It returned this error: blacksheep# pkgdb -L [Updating the pkgdb format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb format:bdb_btree in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!] I assume this is due to choosing the incorrect Berkeley DB version? So should I rebuild the portupgrade port and choose Berkeley DB 1.85 or is it recommended to convert the pkgdb to the newer version? If I should convert, how? My build machine is powered down today, so I can't get the exact answer, but it was in /usr/ports/UPDATING at the time. I just searched /usr/ports/UPDATING. I only find two entries, neither of which seems to cover my situation: You missed 20060703. Ah, now I see. Berkeley is misspelled so when I searched the file for Berkeley, it didn't catch Berkley. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Berkeley DB
Hi, I've just installed Berkeley DB 4.5 on FreeBSD 6.1 and i'm replicating 2 FreeBSD servers (the other server is FreeBSD 4.7), but whenn i run my programm on FreeBSD 6.1 , i get this error: . PANIC: fatal region error detected; run recovery . . . . . (The other server (FreeBSD 4.7) has no problem in the same situation) (i can even do replication operation between FreeBSD 4.7 and Windows machines) does any one knows the problem ? Regards, Mo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trouble with Berkeley DB version 4.4.20?
Mark wrote: I have done this upgrade path for BerkeleyDB and Perl several times; from 1.85 - 4.1 - 4.2, and now - 4.4.20. It has always worked well. Even now it compiles just fine. It just isn't stable anymore. If someone out there has an idea, I'd really like to know. I don't have any good answers for you, sorry. Probably no-one is answer- ing because no-one active is doing anything with these particular pack- age versions. But, there is a port of BerkeleyDB (databases/p5-BerkeleyDB) which would save you from having to mess around configuring config.in yourself. Just set something like WITH_BDB_VER=44 (or 42 or...) in pkgtools.conf (for portupgrade) or make.conf or on the command line. The port doesn't seem to do any local patches so I wouldn't expect it to work any better for you, unless you have been doing something wrong. Thanks for answering. Really appreciate it. I actually already tried p5-BerkeleyDB too. Had high hopes for it. It took a good 10 minutes or so to compile a new gcc, 3.2.23, first; but after that, everything went well. Except that it shows the same behavior. Compile goes fine; make tests too. But my app core dumps every, say, 30 times it accesses BerkeleyDB. Not sure why p5-BerkeleyDB thinks it needs a specific gcc, though 3.2.23 is the version I have anyway (FreeBSD 5.4) so I didn't know to warn you :-( If you want to pursue further here are some suggestions that I might try: 1) Make sure you are not doing anything non-standard like using a different thread library, or different CFLAGS. You never know... 2) Try using a different underlying database type if you can. E.g. if you use hash, then try btree or vice versa I don't know what your apps do, but make sure for example, that if you can have multiple instances which can write to the db at the same time that your are locking correctly. In 1.85 compatibility usage that means locking a separate file with e.g. flock and *not* locking the database file itself which doesn't work right. Waiting for 4.5 is an option, but I would worry that whatever change in 4.4 is making your app crash might also bite in 4.5. I could find nothing on google about perl+4.4 core dumping so I would harbour a suspicion that it is something about the way you are using BerkeleyDB which is causing the trouble. I could be wrong of course :-) --Alex PS I know there isn't a port yet, but you could just try compiling 4.5 from the sleepycat sources. The port for 4.4 doesn't look like it does anything sophisticated: just applies the latest patches from sleepycat, sets up some configure args, and has one small patch to dist/configure which changes -avoid-version into -version-info 0:0:0 in a couple of places. PPS If I have a chance at some point to try my software with 4.4 I will let you know how I get on. Regrettably, I don't have time right now to try it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Trouble with Berkeley DB version 4.4.20?
-Original Message- From: Alex Zbyslaw [mailto:[EMAIL PROTECTED] Sent: maandag 2 oktober 2006 12:50 To: Mark Cc: 'FreeBSD-Questions Questions' Subject: Re: Trouble with Berkeley DB version 4.4.20? Thanks for answering, again. I actually already tried p5-BerkeleyDB too. Had high hopes for it. It took a good 10 minutes or so to compile a new gcc, 3.2.23, first; but after that, everything went well. Except that it shows the same behav- ior. Compile goes fine; make tests too. But my app core dumps every, say, 30 times it accesses BerkeleyDB. Not sure why p5-BerkeleyDB thinks it needs a specific gcc, though 3.2.23 is the version I have anyway (FreeBSD 5.4) so I didn't know to warn you :-( For all the difference it made. :) I don't know what your apps do, but make sure for example, that if you can have multiple instances which can write to the db at the same time that your are locking correctly. In 1.85 compatibility usage that means locking a separate file with e.g. flock and *not* locking the database file itself which doesn't work right. I know. In fact, I have one mini-Perl installed, with a DB_File compiled against BerkeleyDB 1.85, for that precise reason (a Perl process that shares the db with DRAC). PS I know there isn't a port yet, but you could just try compiling 4.5 from the sleepycat sources. The port for 4.4 doesn't look like it does anything sophisticated: just applies the latest patches from sleepy- cat, sets up some configure args, and has one small patch to dist/con- figure which changes -avoid-version into -version-info 0:0:0 in a cou- ple of places. Already did that; I got impatient. :) The changes to the Makefile are minor, and I got 4.5.20 to compile and install just great. Waiting for 4.5 is an option, but I would worry that whatever change in 4.4 is making your app crash might also bite in 4.5. I could find noth- ing on google about perl+4.4 core dumping so I would harbour a suspicion that it is something about the way you are using BerkeleyDB which is causing the trouble. Upgrading to 4.5 made no difference. I even installed an entirely new Perl (5.8.8) for the occasion. To no avail. I really suspect it's a locking issue. My app is a socketmap daemon, for sendmail, that does SPF queries and the like. So, concurrency is definitely happening when processes are forking. The one time I was actually able to log an error for the process, it said: Invalid locker id when opening the BerkeleyDB environment. That in itself may not necessarily mean anything (could just mean the env has become corrupted). But the occurance of the core dumps are consistent with a locking issue (under heavy, concurrent load). BerkeleyDB 0.30 (the Perl package) itself takes care of locking the shared environment. Paul Marquess, the author of BerkeleyDB (the Perl package), wrote me once: Apart from that you don't need to do anything -- Berkeley DB handles the locking for you behind the scenes. And it's certainly true for for 4.2: the 'tied' hashes can be accessed, concurrently, between processes, even under the most stringent load. Since an upgrade to 4.5 made no difference, I'm really thinking this is just a matter of BerkeleyDB 0.30 (the Perl package) no longer doing the locking properly. Or maybe there's something between BerkeleyDB 4.2 and 4.4 that has changed about the manner in which locks are done that BerkeleyDB 0.30 is unaware of. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Trouble with Berkeley DB version 4.4.20?
Hello, I realize this is probably not the most flashy issue, but, if possible, I would really like an answer to this question. I compiled BerkeleyDB 4.4.20 with the following in config.in: INCLUDE = /usr/local/include/db44 LIB = /usr/local/lib# also tried /usr/local/lib/db44 directly DBNAME = -ldb-4.4 # end of file config.in I have done this upgrade path for BerkeleyDB and Perl several times; from 1.85 - 4.1 - 4.2, and now - 4.4.20. It has always worked well. Even now it compiles just fine. It just isn't stable anymore. If someone out there has an idea, I'd really like to know. Thanks, - Mark -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: vrijdag 29 september 2006 20:29 To: 'FreeBSD-Questions Questions' Subject: Trouble with Berkeley DB version 4.4.20? Hello, Am I the only person having trouble with Berkeley DB version 4.4.20? I've been using 4.2 for quite a while. Then I upgraded, a few days back. But a Perl process that actually uses it (BerkeleyDB-0.30) has become unstable. I've been ktracing it, and setting log-points myself, but it keeps core dumping at places where it accesses BerkeleyDB. Sporadically, but often enough. Naturally I compiled BerkeleyDB-0.30 against the correct libraries (in config.in). And it seems more or less ok, but not always. Finally, this morning, I just did a full restore from an earlier date; db44 is not working out for me, obviously. I'm not sure whether it's Berkeley DB version 4.4.20 or BerkeleyDB-0.30, or a combination of the two; but I wonder if someone else has had trou- ble with it, too? Sometimes I got a weird lock error notice; but other- wise it remains a mystery. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trouble with Berkeley DB version 4.4.20?
Mark wrote: Hello, I realize this is probably not the most flashy issue, but, if possible, I would really like an answer to this question. I compiled BerkeleyDB 4.4.20 with the following in config.in: INCLUDE = /usr/local/include/db44 LIB = /usr/local/lib# also tried /usr/local/lib/db44 directly DBNAME = -ldb-4.4 # end of file config.in I have done this upgrade path for BerkeleyDB and Perl several times; from 1.85 - 4.1 - 4.2, and now - 4.4.20. It has always worked well. Even now it compiles just fine. It just isn't stable anymore. If someone out there has an idea, I'd really like to know. I don't have any good answers for you, sorry. Probably no-one is answering because no-one active is doing anything with these particular package versions. But, there is a port of BerkeleyDB (databases/p5-BerkeleyDB) which would save you from having to mess around configuring config.in yourself. Just set something like WITH_BDB_VER=44 (or 42 or...) in pkgtools.conf (for portupgrade) or make.conf or on the command line. The port doesn't seem to do any local patches so I wouldn't expect it to work any better for you, unless you have been doing something wrong. I use 4.2 with p5-BerkeleyDB and no problems for me, but I do nothing complicated - really just pretend it's 1.85 without bugs! What about 4.3? If you don't need the functionality of 4.4 then downgrade back to 4.2 and keep an eye on the 4.4 and p5-BerkeleyDB ports, and try again in a few months. Other than that, try google as your problem may not have anything to do with FreeBSD, or try asking the p5-BerkeleyDB author - maybe they have other feedback like yours. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Trouble with Berkeley DB version 4.4.20?
-Original Message- From: Alex Zbyslaw [mailto:[EMAIL PROTECTED] Sent: zaterdag 30 september 2006 20:14 To: Mark Cc: 'FreeBSD-Questions Questions' Subject: Re: Trouble with Berkeley DB version 4.4.20? I have done this upgrade path for BerkeleyDB and Perl several times; from 1.85 - 4.1 - 4.2, and now - 4.4.20. It has always worked well. Even now it compiles just fine. It just isn't stable anymore. If someone out there has an idea, I'd really like to know. I don't have any good answers for you, sorry. Probably no-one is answer- ing because no-one active is doing anything with these particular pack- age versions. But, there is a port of BerkeleyDB (databases/p5-BerkeleyDB) which would save you from having to mess around configuring config.in yourself. Just set something like WITH_BDB_VER=44 (or 42 or...) in pkgtools.conf (for portupgrade) or make.conf or on the command line. The port doesn't seem to do any local patches so I wouldn't expect it to work any better for you, unless you have been doing something wrong. Thanks for answering. Really appreciate it. I actually already tried p5-BerkeleyDB too. Had high hopes for it. It took a good 10 minutes or so to compile a new gcc, 3.2.23, first; but after that, everything went well. Except that it shows the same behavior. Compile goes fine; make tests too. But my app core dumps every, say, 30 times it accesses BerkeleyDB. I use 4.2 with p5-BerkeleyDB and no problems for me, but I do nothing complicated - really just pretend it's 1.85 without bugs! My BerkeleyDB 4.2 with Perl is rock-stable, too. Never a glitch of any kind. If you don't need the functionality of 4.4 then downgrade back to 4.2 and keep an eye on the 4.4 and p5-BerkeleyDB ports, and try again in a few months. I think I'll do that. I believe BerkeleyDB 4.5 has just been released already. I'll wait for it to appear in the ports. I do not actually need the functionality of 4.4. Like you, I just use 4.2 as 1.85 without the bugs. :) Upgrading just seemed like the thing to do. If you look at the Sleepycat bug-list, it seems they fixed a whole lot of them since 4.2; but I cannot say I ever really ran into one. So, I'll wait for 4.5. Not much I can do. Should have been a pretty straightforward upgrade; but it isn't. And analyzing a Perl core dump without symbolic information is pretty useless too. Besides, from my own debug markers I set, it does not core dump in the same place each time. So, it's just that: unstable. Thanks, - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trouble with Berkeley DB version 4.4.20?
Hello, Am I the only person having trouble with Berkeley DB version 4.4.20? I've been using 4.2 for quite a while. Then I upgraded, a few days back. But a Perl process that actually uses it (BerkeleyDB-0.30) has become unstable. I've been ktracing it, and setting log-points myself, but it keeps core dumping at places where it accesses BerkeleyDB. Sporadically, but often enough. Naturally I compiled BerkeleyDB-0.30 against the correct libraries (in config.in). And it seems more or less ok, but not always. Finally, this morning, I just did a full restore from an earlier date; db44 is not working out for me, obviously. I'm not sure whether it's Berkeley DB version 4.4.20 or BerkeleyDB-0.30, or a combination of the two; but I wonder if someone else has had trouble with it, too? Sometimes I got a weird lock error notice; but otherwise it remains a mystery. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trouble with Berkeley DB version 4.4.20?
Hello, Am I the only person having trouble with Berkeley DB version 4.4.20? I've been using 4.2 for quite a while. Then I upgraded, a few days back. But a Perl process that actually uses it (BerkeleyDB-0.30) has become unstable. I've been ktracing it, and setting log-points myself, but it keeps core dumping at places where it accesses BerkeleyDB. Sporadically, but often enough. Naturally I compiled BerkeleyDB-0.30 against the correct libraries (in config.in). And it seems more or less ok, but not always. Finally, this morning, I just did a full restore from an earlier date; db44 is not working out for me, obviously. I'm not sure whether it's Berkeley DB version 4.4.20 or BerkeleyDB-0.30, or a combination of the two; but I wonder if someone else has had trouble with it, too? Sometimes I got a weird lock error notice; but otherwise it remains a mystery. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hell Installing OpenLDAP/Berkeley-DB/Java
I found a different file to build BerkeleyDB and built it successfully: /usr/ports/databases/p5-BerkeleyDB Then I rebuilt OpenLDAP from here: /usr/ports/net/openldap23-server Following the OpenLDAP tutorial, I edited slapd.conf and created an example.ldif file. Then I ran: ldapadd -x -D cn=admin,dc=2012,dc=vi -W -f example.ldif (all correct for my domain/configuration). I was asked to give my LDAP password. When I entered it (exactly as is in the slapd.conf file) I was told that was incorrect: ldap_bind: Invalid credentials (49) This makes me believe that Berkeley isn't properly installed. How can I test that? What steps do you take to properly install this duo? TIA, Ted2 Atom Powers [EMAIL PROTECTED] wrote: On 9/8/06, Ted Johnson wrote: Hi; I tried to install OpenLDAP, but it needs Berkeley-DB and complained that the version installed was incompatible. I tried compiling it without Berkeley (using GNU instead) but it wouldn't. I tried installing Berkeley DB without Java (for simplicity's sake), but that didn't work. I tried moving that installation to where the ports would be but still no go. So I tried a make of the berkeley-db port but that complained it needed a Java plug-in that had to be loaded manually because of licensing restrictions. I don't know why BDB would want Java (check make.conf?). I've done several OpenLDAP/BDB installs recently and I never installed any kind of Java. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hell Installing OpenLDAP/Berkeley-DB/Java
On 9/8/06, Ted Johnson [EMAIL PROTECTED] wrote: Hi; I tried to install OpenLDAP, but it needs Berkeley-DB and complained that the version installed was incompatible. I tried compiling it without Berkeley (using GNU instead) but it wouldn't. I tried installing Berkeley DB without Java (for simplicity's sake), but that didn't work. I tried moving that installation to where the ports would be but still no go. So I tried a make of the berkeley-db port but that complained it needed a Java plug-in that had to be loaded manually because of licensing restrictions. I don't know why BDB would want Java (check make.conf?). I've done several OpenLDAP/BDB installs recently and I never installed any kind of Java. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Hell Installing OpenLDAP/Berkeley-DB/Java
Hi; I tried to install OpenLDAP, but it needs Berkeley-DB and complained that the version installed was incompatible. I tried compiling it without Berkeley (using GNU instead) but it wouldn't. I tried installing Berkeley DB without Java (for simplicity's sake), but that didn't work. I tried moving that installation to where the ports would be but still no go. So I tried a make of the berkeley-db port but that complained it needed a Java plug-in that had to be loaded manually because of licensing restrictions. So I went to the page it stated, agreed to the license, downloaded it and tried to install: http://www.freebsdfoundation.org/cgi-bin/download?download=diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 I un-bzip2'd it, then untarred it, then entered it and unzipped the sun.zip file, and now I'm lost. There are no instructions! There's a README.html file which told me to go to this page: http://java.sun.com/j2se/1.5.0/install.html but there's nothing of substance there. It only tells one how to install Linux binaries or RPMs, but I'm having to install from source. Good grief! Has anyone been through this crap before? What do I do? TIA, beno2 - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Berkeley db xml on FreeBSD
Hi, Has anybody installed Berkeley db XML on FreeBSD ? Thanks, Mo. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Berkeley db XML
Hi, I want to install Berkeley db XML on FreeBSD 6.1 , but i can not do this, is there any body has install it ? ( I use the source from sleepycat.com ) Regards, Mo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail, Cyrus-IMAP, mbox, maildir, berkeley-db
Hello Chris I was in the same situation as you. I installed during the past months two mail server with sendmail/cyrus imap/apache ssl/squirrelmail. So if you need more hints please send the questions. Am Mon, May 08, 2006 at 10:21:22PM -0700 Chris Telting schrieb: I am confused as to a number of things so I'd appreciate being straighted out. I keep searching the web and looking at documentation but I'm getting more confused. Sendmail stores mail in mbox format. I'm not sure if it allows other storage formats such as maildir or berkeley-db. And if so how it's enabled. Cyrus-IMAP unless I'm mistaken by default looks for mail in the derkeley-db file format. I'm not sure if it also supports mbox and if so how to configure that. Chris Telting -- Regards Martin Schweizer [EMAIL PROTECTED] PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; pgpFzDqFqC81M.pgp Description: PGP signature
Re: Sendmail, Cyrus-IMAP, mbox, maildir, berkeley-db
Chris Telting wrote: I am confused as to a number of things so I'd appreciate being straighted out. I keep searching the web and looking at documentation but I'm getting more confused. Sendmail stores mail in mbox format. I'm not sure if it allows other storage formats such as maildir or berkeley-db. And if so how it's enabled. It does through additional local mailers, such as Cyrus. Cyrus-IMAP unless I'm mistaken by default looks for mail in the derkeley-db file format. I'm not sure if it also supports mbox and if so how to configure that. No, it does not support mbox. bye av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PAM for Berkeley DB (for a vsftpd virtual user setup)
Hello! I need to know how to configure PAM for Berkeley DB so that my vsftpd virtual user setup can function: --- /usr/local/etc/vsftpd.conf listen=YES listen_port=5 pasv_min_port=53000 pasv_max_port=55000 background=YES max_clients=5 max_per_ip=1 local_enable=YES write_enable=YES guest_enable=YES guest_username=ftp chroot_local_user=YES ascii_download_enable=NO ascii_upload_enable=NO anonymous_enable=NO xferlog_enable=NO secure_chroot_dir=/home/kyrre/ftp rsa_cert_file=/home/kyrre/ftp/.certificate banner_file=/home/kyrre/ftp/.banner --- /usr/local/etc/vsftpd.pw # db4_load -T -t hash -f vsftpd.pw vsftpd.db # chmod 600 vsftpd.db kyrre p4ssw0rd --- /etc/pam.d/ftpd auth required pam_userdb.so db=/usr/local/etc/vsftpd.db account required pam_userdb.so db=/usr/local/etc/vsftpd.db There is no pam_userdb.so on my box, and the vsftpd documentation doesn't seem to cover anything on FreeBSD. What could I do? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Sendmail, Cyrus-IMAP, mbox, maildir, berkeley-db
I am confused as to a number of things so I'd appreciate being straighted out. I keep searching the web and looking at documentation but I'm getting more confused. Sendmail stores mail in mbox format. I'm not sure if it allows other storage formats such as maildir or berkeley-db. And if so how it's enabled. Cyrus-IMAP unless I'm mistaken by default looks for mail in the derkeley-db file format. I'm not sure if it also supports mbox and if so how to configure that. Chris Telting ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Berkeley db
Hi, I'm tring to install a jabberd server with Berkeley db auth. Is sysinstall-configure-packages- databases-db4-4.0.14_1,1 and db42-4.2.52_4 a Berkeley db instalation? Is there a client to manage this db? Thanks... Efren Bravo. __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]