[ZODB-Dev] zope.conf question...

Chris McDonough chrism@zope.com
Tue Apr 15 15:57:41 EDT 2003


I lied.  I just experienced the error you did, which was not a setup
error.

It happens in BerkeleyBase.py's 'env_from_string' function, in the call
to env.open().  During the call to this function, it exits (seemingly
cleanly) after creating some __db.00X files within test-db in the
instance home.

It happened, in my case, because I did not have write access to the
directory I named within the "logdir" key in the fullstorage.  Once I
changed that directory name to a place which I could write to, it began
to work.  Something in the bsddb C code must call exit() (or perhaps
even crash) instead of propagating an exception up to the Python code in
this case.  I'm not quite sure how to make it behave better.

I used Python 2.2.2 with pybsddb3-4.1.3 against BerkeleyDB 4-4.0.14.

- C


On Tue, 2003-04-15 at 10:27, Chris McDonough wrote:
> I have found that this is due to a missing stanza in the setup.py (the
> BDBStorage package doesn't get installed when you do a 'make install'). 
> I have fixed it.
> 
> As long as you've got py-bsddb3 installed, doing a CVS up and rerunning
> make install should get you where you need to be.
> 
> - C
> 
> 
> On Tue, 2003-04-15 at 10:05, Chris McDonough wrote:
> > Here's what I get when I try that config:
> > 
> > [chrism@james bdbinst]$ bin/zeoctl fg                        
> > export EVENT_LOG_FILE
> > EVENT_LOG_FILE=
> > /tmp/bdbinst/bin/runzeo
> > ------
> > 2003-04-15T10:03:15 INFO(0) RUNSVR opening storage '1' using FileStorage
> > ------
> > 2003-04-15T10:03:17 INFO(0) RUNSVR opening storage '2' using FileStorage
> > ------
> > 2003-04-15T10:03:17 INFO(0) RUNSVR opening storage '3' using
> > BDBFullStorage
> > ------
> > 2003-04-15T10:03:17 INFO(0) RUNSVR closing storage '1'
> > ------
> > 2003-04-15T10:03:17 INFO(0) RUNSVR closing storage '2'
> > Traceback (most recent call last):
> >   File "/tmp/sw/lib/python/ZEO/runzeo.py", line 295, in ?
> >     main()
> >   File "/tmp/sw/lib/python/ZEO/runzeo.py", line 292, in main
> >     s.main()
> >   File "/tmp/sw/lib/python/ZEO/runzeo.py", line 116, in main
> >     self.open_storages()
> >   File "/tmp/sw/lib/python/ZEO/runzeo.py", line 162, in open_storages
> >     self.storages[opener.name] = opener.open()
> >   File "/tmp/sw/lib/python/ZODB/config.py", line 130, in open
> >     from BDBStorage.BerkeleyBase import BerkeleyConfig
> > ImportError: No module named BDBStorage.BerkeleyBase
> > 
> > I haven't yet tracked down whether this is an install issue or a
> > software issue.
> > 
> > - C
> > 
> > > well, here is what i tried:
> > > 
> > > zeo.conf
> > > -----------------------------------------
> > > # ZEO configuration file
> > > 
> > > %define INSTANCE_HOME /opt/zeo1
> > > 
> > > <zeo>
> > >   address localhost:9999
> > >   read-only false
> > >   invalidation-queue-size 100
> > >   # monitor-address PORT
> > >   # transaction-timeout SECONDS
> > > </zeo>
> > > 
> > > <filestorage 1>
> > >   path $INSTANCE_HOME/var/Data.fs
> > > </filestorage>
> > > 
> > > 
> > > <filestorage 2>
> > >   path $INSTANCE_HOME/var/Data2.fs
> > > </filestorage>
> > > 
> > > <fullstorage 3>
> > >     name test-db
> > >     interval 2m
> > >     logdir /opt/zeo1/log
> > >     cachesize 128MB
> > > </fullstorage>
> > > 
> > > <eventlog>
> > >   level debug
> > >   <logfile>
> > >     path $INSTANCE_HOME/log/zeo.log
> > >   </logfile>
> > > </eventlog>
> > > ---------------------------------
> > > 
> > > zeoctl start--> dameon process started
> > > zeoctl status--> dameon manager running; dameon process not running
> > > 
> > > zeo-log (level = debug)
> > > ------------------------
> > > 2003-04-13T21:54:16 INFO(0) RUNSVR opening storage '1' using FileStorage
> > > ------
> > > 2003-04-13T21:54:16 INFO(0) RUNSVR opening storage '2' using FileStorage
> > > ------
> > > 2003-04-13T21:54:16 INFO(0) RUNSVR opening storage '3' using BDBFullStorage
> > > ------
> > > 2003-04-13T21:54:16 INFO(0) BDBFullStorage Creating Berkeley environment
> > > ------
> > > 2003-04-13T21:54:16 INFO(0) RUNSVR closing storage '1'
> > > ------
> > > 2003-04-13T21:54:16 INFO(0) RUNSVR closing storage '2'
> > > -----------------------
> > > 
> > > after creating the berkeley environment (folder test-db were created 
> > > automatically) zeo goes down.
> > > 
> > > any idea?
> > > Thanks,
> > > Harry
> > > 
> > > 
> > > > - C
> > > 
> > > 
> > > _______________________________________________
> > > For more information about ZODB, see the ZODB Wiki:
> > > http://www.zope.org/Wikis/ZODB/
> > > 
> > > ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> > > http://mail.zope.org/mailman/listinfo/zodb-dev
> > 
> > 
> > 
> > _______________________________________________
> > For more information about ZODB, see the ZODB Wiki:
> > http://www.zope.org/Wikis/ZODB/
> > 
> > ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> > http://mail.zope.org/mailman/listinfo/zodb-dev
> 
> 
> 
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev






More information about the ZODB-Dev mailing list