Using substanced with Zeo and keep getting database conflict errors

Jo Gilder <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
Hi,

I have setup an instance of substanced which is a pyramid based cms using 
zodb. I am using zeo to connect to the zodb as described in the 
documentation:

https://substanced.readthedocs.io/en/latest/configuration.html?highlight=zeo


I start zeo using zdaemon and a config file:

/home/bodl-fox-svc/sites/bodl-fox-svc/bin/zdaemon -C 
/home/bodl-fox-svc/sites/bodl-fox-svc/zdaemon.cfg start


zdaemon.cfg looks like this.

<runner>

  program /home/bodl-fox-svc/sites/bodl-fox-svc/bin/runzeo  -C zeo.cfg

</runner>



and zeo.cfg looks like this:

<zeo>

  address /home/bodl-fox-svc/sites/bodl-fox-svc/data/zeosocket

</zeo>


<filestorage>

  path /home/bodl-fox-svc/sites/bodl-fox-svc/data/data.fs

</filestorage>


<eventlog>

  level INFO

  <logfile>

    path /home/bodl-fox-svc/sites/bodl-fox-svc/data/zeo.log

    format %(asctime)s %(message)s

  </logfile>

</eventlog>



the connection string in the ini file for the app is
zodbconn.uri = 
zeo:////home/bodl-fox-svc/sites/bodl-fox-svc/data/zeosocket?connection_cache_size=15000&blob_dir=/home/bodl-fox-svc/sites/bodl-fox-svc/data/blobs

I've set this up before and it worked fine but this application gives me 
conflict errors if I try and write to the database from two different 
locations. 

ConflictError: database conflict error (oid 0x30, class 
BTrees.IOBTree.IOBTree, serial this txn started with 0x03b9e3ac20faca33 
2016-09-13 13:32:07.729605, serial currently committed 0x03b9e3acb62e9

This is happening when I try and add data programatically from a bash file 
running a python script at the same time as I add data via a web interface. 
Any ideas?

I have the following versions -

zdaemon = 4.1.0

ZEO = 4.1.0

ZODB = 4.1.0

zodburi = 2.0

zope.copy = 4.0.3

zope.component = 4.2.2

zope.deprecation = 4.1.2

zope.interface = 4.1.2

ZopeSkel = 2.21.2

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.