Home Help Center

Freeze DbEnv error

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
Hello I have the next error while IcePack try to initialice my service
[ StoreServer-Store: Berkeley DB: DbEnv "DB/StoreService": unable to join the environment ]
[ StoreServer-Store: Berkeley DB: DbEnv "DB/StoreService": no base system shared memory ID specified ]
StoreServer: error: ServiceManager: exception while starting service Store:
SharedDbEnv.cpp:309: Freeze::DatabaseException:
DbEnv::open: Invalid argument

I'm working with Ice-2.0.0 and berkley 4.2.52
bash-2.05b# ldd /opt/Ice-2.0.0/lib/libFreeze.so.20
        linux-gate.so.1 =>  (0xffffe000)
        libIce.so.20 => /opt/Ice-2.0.0/lib/libIce.so.20 (0x400ab000)
        libIceUtil.so.20 => /opt/Ice-2.0.0/lib/libIceUtil.so.20 (0x402df000)
        libdb_cxx-4.2.so => /opt/db/lib/libdb_cxx-4.2.so (0x40316000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x403fc000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x4044f000)
        libm.so.6 => /lib/libm.so.6 (0x40518000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x4053a000)
        libc.so.6 => /lib/libc.so.6 (0x40544000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x40650000)
        libdl.so.2 => /lib/libdl.so.2 (0x4065d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


bash-2.05b# ldd /opt/db/lib/libdb_cxx-4.2.so
        linux-gate.so.1 =>  (0xffffe000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5(0x400e7000)
        libm.so.6 => /lib/libm.so.6 (0x401c8000)
        libc.so.6 => /lib/libc.so.6 (0x401ea000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x402f6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

bash-2.05b# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure
 --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include
 --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
 --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info--enable-shared
 --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
 --enable-languages=c,c++,f77 --enable-threads=posix --enable-long-long
 --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio 
 --enable-version-specific-runtime-libs
 --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3
 --with-local-prefix=/usr/local --enable-shared --enable-nls
 --without-included-gettext --disable-multilib --enable-__cxa_atexit
 --enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)


I think that the error is relate with berkley db settins any suggestion?

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    The error comes from the open call and is usually caused by a corrupt database. Can you try removing all the database files and try again?

    Cheers,

    Michi.
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Thanks michi

    I clean de database and all is fine now , i think the problem was that this db was generated with a difent berkley db version
Sign In or Register to comment.