You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Chris Gong <ch...@gmail.com> on 2012/03/02 06:30:02 UTC

problem of msgstore on rhel6

hi, ervery one. when i use the persistance of qpidd by such command line:
./qpidd
--load-module=/home/gongxc/qpid_persistance_store/lib/.libs/msgstore.so
i get a failure as following:
library build did not include support for cryptography
2012-03-02 13:16:28 error BDB exception occurred while initializing store:
DbEnv::set_encrypt: Operation not supported
2012-03-02 13:16:29 error Previoius BDB store initialization failed,
retrying (2 of 3)...
library build did not include support for cryptography
2012-03-02 13:16:29 error BDB exception occurred while initializing store:
DbEnv::set_encrypt: Operation not supported
2012-03-02 13:16:30 error Previoius BDB store initialization failed,
retrying (3 of 3)...
library build did not include support for cryptography
2012-03-02 13:16:30 error BDB exception occurred while initializing store:
DbEnv::set_encrypt: Operation not supported
2012-03-02 13:16:30 critical Unexpected error: BDB exception occurred while
initializing store (MessageStoreImpl.cpp:378): DbEnv::set_encrypt:
Operation not supported

i wonder, which library was build without support of cryptography? is
berkeleyDB? howerver, i tried many versions of berkeleyDB, such as 4.3.29,
4.7.25, 4.8.30, 5.3.15, i builded and installed them all, the result is
still the same. I knoticed that the rhel6 has installed 4.7 libs in the
/lib, but i replaced them, it still doesn't work.
i wonder, what does the qpidd do when it loads the msgstore.so, what libs
it need? how should i build berkeleyDB with support for cryptography. when
configure, i didn't use --disable-cryptography option

who can help me? thanks

Re: problem of msgstore on rhel6

Posted by Kim van der Riet <ki...@redhat.com>.
On Fri, 2012-03-02 at 13:30 +0800, Chris Gong wrote:
> hi, ervery one. when i use the persistance of qpidd by such command line:
> ./qpidd
> --load-module=/home/gongxc/qpid_persistance_store/lib/.libs/msgstore.so
> i get a failure as following:
> library build did not include support for cryptography
> 2012-03-02 13:16:28 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:29 error Previoius BDB store initialization failed,
> retrying (2 of 3)...
> library build did not include support for cryptography
> 2012-03-02 13:16:29 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:30 error Previoius BDB store initialization failed,
> retrying (3 of 3)...
> library build did not include support for cryptography
> 2012-03-02 13:16:30 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:30 critical Unexpected error: BDB exception occurred while
> initializing store (MessageStoreImpl.cpp:378): DbEnv::set_encrypt:
> Operation not supported
> 
> i wonder, which library was build without support of cryptography? is
> berkeleyDB? howerver, i tried many versions of berkeleyDB, such as 4.3.29,
> 4.7.25, 4.8.30, 5.3.15, i builded and installed them all, the result is
> still the same. I knoticed that the rhel6 has installed 4.7 libs in the
> /lib, but i replaced them, it still doesn't work.
> i wonder, what does the qpidd do when it loads the msgstore.so, what libs
> it need? how should i build berkeleyDB with support for cryptography. when
> configure, i didn't use --disable-cryptography option
> 
> who can help me? thanks

I have not seen this error before; I assume it is related to the db4
(Berkeley DB) libraries. The store uses db4 for some of its storage, and
initializes these libs when the store is initialized. The store does not
explicitly use encryption, so it must be an internal db4 issue.

I don't build db4 but use off-the-shelf packages, and I don't see this
problem. I have installed:

db4-devel-4.8.30-3.fc15.x86_64
db4-4.8.30-3.fc15.x86_64
db4-utils-4.8.30-3.fc15.x86_64
db4-cxx-4.8.30-3.fc15.x86_64

If you are building your own libs, I suggest it might have something to
do with your build options or a lack of the correct installed crypto
libs? Sometimes when building a package, you need to have other packages
installed first for some options to be compiled in... in your case you
may need to install some crypto libs before you can get support in your
db4 build. As I have not done this myself, I suggest you inquire on the
Berkeley DB lists about this issue.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: problem of msgstore on rhel6

Posted by Chris Gong <ch...@gmail.com>.
the redhat version is: rad hat enterprise server 6.0 (santiago) Linux
2.6.32-71.el6.i686
the qpid is 0.14 and built from source code(source code is download from
website not check out from svn)
db4 is burkeley db 4.3.29 and built from source and is installed in
/usr/lib as follows:
[gongxc@cloud ~]$ ls -l /usr/lib | grep
db
drwxr-xr-x.  2 root   root        4096 11月  2 21:59
db48

drwxr-xr-x.  3 root   root        4096 11月  2 19:20
dbus-1.0

drwxr-xr-x.  2 root   root        4096 11月  2 20:48
htdig_db

drwxr-xr-x.  2 root   root        4096 11月  2 19:29
ldb

-rw-r--r--.  1 gongxc gongxc   1130978  3月  1 11:11
libdb-4.3.a

-rw-rw-r--.  1 gongxc gongxc       789  2月 29 17:46 libdb-4.3.la

-rwxrwxr-x.  1 gongxc gongxc    906805  2月 29 17:46 libdb-4.3.so

lrwxrwxrwx.  1 root   root          22 11月  2 19:17 libdb-4.7.so ->
../../lib/libdb-4.7.so

-rwxr-xr-x.  1 root   root     1548959  5月  3 2011 libdb-4.8.so

lrwxrwxrwx.  1 root   root          12  3月  1 11:11 libdb-4.so ->
libdb-4.3.so

-rw-r--r--.  1 gongxc gongxc   1130978  3月  1 11:11
libdb.a

-rw-r--r--.  1 gongxc gongxc   1255548  3月  1 11:11
libdb_cxx-4.3.a

-rw-rw-r--.  1 gongxc gongxc       817  2月 29 17:46 libdb_cxx-4.3.la

-rwxrwxr-x.  1 gongxc gongxc   1019038  2月 29 17:46 libdb_cxx-4.3.so

-rwxr-xr-x.  1 root   root     1648056  6月  4 2010 libdb_cxx-4.7.so

-rwxr-xr-x.  1 root   root     1708397  5月  3 2011 libdb_cxx-4.8.so

lrwxrwxrwx.  1 root   root          16  3月  1 11:11 libdb_cxx-4.so ->
libdb_cxx-4.3.so
-rw-r--r--.  1 gongxc gongxc   1255548  3月  1 11:11 libdb_cxx.a
lrwxrwxrwx.  1 root   root          16  3月  1 11:11 libdb_cxx.so ->
libdb_cxx-4.3.so
lrwxrwxrwx.  1 root   root          17 11月  2 22:00 libdb_java-4.8_g.so ->
libdb_java-4.8.so
-rwxr-xr-x.  1 root   root     1740181  5月  3 2011 libdb_java-4.8.so
lrwxrwxrwx.  1 root   root          12  3月  1 11:11 libdb.so -> libdb-4.3.so
lrwxrwxrwx.  1 root   root          22 11月  2 19:19 libdbus-c++-1.so.0 ->
libdbus-c++-1.so.0.0.0
-rwxr-xr-x.  1 root   root      184620 12月  8 2009 libdbus-c++-1.so.0.0.0
lrwxrwxrwx.  1 root   root          23 11月  2 19:28 libdbus-glib-1.so ->
libdbus-glib-1.so.2.1.0
lrwxrwxrwx.  1 root   root          23 11月  2 19:17 libdbus-glib-1.so.2 ->
libdbus-glib-1.so.2.1.0
-rwxr-xr-x.  1 root   root      137192  7月 14 2010 libdbus-glib-1.so.2.1.0
lrwxrwxrwx.  1 root   root          21 11月  2 19:20 libdbus-qt-1.so.1 ->
libdbus-qt-1.so.1.0.0
-rwxr-xr-x.  1 root   root       67056  4月 27 2010 libdbus-qt-1.so.1.0.0
lrwxrwxrwx.  1 root   root          21 11月  2 19:19 libeggdbus-1.so.0 ->
libeggdbus-1.so.0.0.0
-rwxr-xr-x.  1 root   root      291324  6月 20 2010 libeggdbus-1.so.0.0.0
lrwxrwxrwx.  1 root   root          16 11月  2 19:17 libgdbm.so.2 ->
libgdbm.so.2.0.0
-rwxr-xr-x.  1 root   root       26316  5月 28 2010 libgdbm.so.2.0.0
lrwxrwxrwx.  1 root   root          17 11月  2 19:38 libkcddb.so.4 ->
libkcddb.so.4.3.0
-rwxr-xr-x.  1 root   root      234144  3月 31 2010 libkcddb.so.4.3.0
lrwxrwxrwx.  1 root   root          14 11月  2 19:31 libkdb5.so ->
libkdb5.so.4.0
lrwxrwxrwx.  1 root   root          14 11月  2 19:17 libkdb5.so.4 ->
libkdb5.so.4.0
-rwxr-xr-x.  1 root   root       72228  9月  4 2010 libkdb5.so.4.0
lrwxrwxrwx.  1 root   root          16 11月  2 19:19 libldb.so.0 ->
libldb.so.0.9.10
-rwxr-xr-x.  1 root   root      220308  6月  7 2010 libldb.so.0.9.10
-rw-r--r--.  1 root   root         478  8月 27 2010 libnssdbm3.chk
-rwxr-xr-x.  1 root   root      162324  8月 27 2010 libnssdbm3.so
lrwxrwxrwx.  1 root   root          22 11月  2 19:31 libqpidbroker.so.3 ->
libqpidbroker.so.3.0.0
-rwxr-xr-x.  1 root   root     2510216  7月 28 2010 libqpidbroker.so.3.0.0
lrwxrwxrwx.  1 root   root          30 11月  2 19:18
libstrigiqtdbusclient.so.0 -> libstrigiqtdbusclient.so.0.7.0
-rwxr-xr-x.  1 root   root       91456  5月 18 2010
libstrigiqtdbusclient.so.0.7.0
lrwxrwxrwx.  1 root   root          15 11月  2 19:17 libtdb.so.1 ->
libtdb.so.1.2.1
-rwxr-xr-x.  1 root   root       61060  2月 25 2010 libtdb.so.1.2.1
lrwxrwxrwx.  1 root   root          27 11月  2 19:24 libthread_db.so ->
../../lib/libthread_db.so.1



2012/3/6 Kim van der Riet <ki...@redhat.com>

> We will need a little more information to look into this.
>
> RHEL-6 version
> qpid package versions
> db4 version
>
> which can be obtained through the use of the rpm command:
>
> rpm -qa | grep "qpid"
> rpm -qa | grep "db4"
> etc.
>
>
> On Mon, 2012-03-05 at 12:39 -0800, stoyan wrote:
> > "Operation not supported"
> >
> > when i got these, it turned out to be some mismatch in versions of
> berkeley
> > libraries.
> > strange thing is, i never managed to use qpid msg store (up to 0.10) with
> > berkeley 4.7 - had to install separately berkeley 4.3 and use it instead
> >
> > this is on centOs, there weren't an trouble on fedora, as far as i can
> > remember
> >
> >
> > --
> > View this message in context:
> http://qpid.2158936.n2.nabble.com/problem-of-msgstore-on-rhel6-tp7335497p7346308.html
> > Sent from the Apache Qpid users mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: problem of msgstore on rhel6

Posted by Kim van der Riet <ki...@redhat.com>.
We will need a little more information to look into this.

RHEL-6 version
qpid package versions
db4 version

which can be obtained through the use of the rpm command:

rpm -qa | grep "qpid"
rpm -qa | grep "db4"
etc.


On Mon, 2012-03-05 at 12:39 -0800, stoyan wrote:
> "Operation not supported"
> 
> when i got these, it turned out to be some mismatch in versions of berkeley
> libraries.
> strange thing is, i never managed to use qpid msg store (up to 0.10) with
> berkeley 4.7 - had to install separately berkeley 4.3 and use it instead
> 
> this is on centOs, there weren't an trouble on fedora, as far as i can
> remember
> 
> 
> --
> View this message in context: http://qpid.2158936.n2.nabble.com/problem-of-msgstore-on-rhel6-tp7335497p7346308.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: problem of msgstore on rhel6

Posted by stoyan <st...@hotmail.com>.
"Operation not supported"

when i got these, it turned out to be some mismatch in versions of berkeley
libraries.
strange thing is, i never managed to use qpid msg store (up to 0.10) with
berkeley 4.7 - had to install separately berkeley 4.3 and use it instead

this is on centOs, there weren't an trouble on fedora, as far as i can
remember


--
View this message in context: http://qpid.2158936.n2.nabble.com/problem-of-msgstore-on-rhel6-tp7335497p7346308.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: problem of msgstore on rhel6

Posted by Gordon Sim <gs...@redhat.com>.
On 03/02/2012 05:30 AM, Chris Gong wrote:
> hi, ervery one. when i use the persistance of qpidd by such command line:
> ./qpidd
> --load-module=/home/gongxc/qpid_persistance_store/lib/.libs/msgstore.so
> i get a failure as following:
> library build did not include support for cryptography
> 2012-03-02 13:16:28 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:29 error Previoius BDB store initialization failed,
> retrying (2 of 3)...
> library build did not include support for cryptography
> 2012-03-02 13:16:29 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:30 error Previoius BDB store initialization failed,
> retrying (3 of 3)...
> library build did not include support for cryptography
> 2012-03-02 13:16:30 error BDB exception occurred while initializing store:
> DbEnv::set_encrypt: Operation not supported
> 2012-03-02 13:16:30 critical Unexpected error: BDB exception occurred while
> initializing store (MessageStoreImpl.cpp:378): DbEnv::set_encrypt:
> Operation not supported
>
> i wonder, which library was build without support of cryptography? is
> berkeleyDB? howerver, i tried many versions of berkeleyDB, such as 4.3.29,
> 4.7.25, 4.8.30, 5.3.15, i builded and installed them all, the result is
> still the same. I knoticed that the rhel6 has installed 4.7 libs in the
> /lib, but i replaced them, it still doesn't work.
> i wonder, what does the qpidd do when it loads the msgstore.so, what libs
> it need? how should i build berkeleyDB with support for cryptography. when
> configure, i didn't use --disable-cryptography option
>
> who can help me?

Not sure how much help this is, but I can build the latest trunk (of 
qpid and msgstore) on RHEL 6.2 with the standard 
db4-devel-4.7.25-16.el6.x86_64 package and don't get these issues.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org