zodb mountpoint error in log

classic Classic list List threaded Threaded
11 messages Options
llcolombo llcolombo
Reply | Threaded
Open this post in threaded view
|

zodb mountpoint error in log

Hi
I am setting up a zeo configuration with one client and multiple
mount-points, to have separate databases for each plone site in the
instance. I am running plone 3.1.7 on a windows platform.

The configuration works - I have set up two mount points up to now - but I
am getting errors in event.log, saying:
ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.ValueError
(database_name 'strambino' already in databases)
Traceback (most recent call last):
  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
line 257, in _getOrOpenObject
    conn = self._getMountedConnection(anyjar)
  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
line 147, in _getMountedConnection
    self._getDB()
  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
line 157, in _getDB
    return getConfiguration().getDatabase(self._path)
  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 280, in
getDatabase
    db = factory.open(name, self.databases)
  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 178, in
open
    DB = self.createDB(database_name, databases)
  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 175, in
createDB
    return ZODBDatabase.open(self, databases)
  File "C:\Plone\Zope\lib\python\ZODB\config.py", line 105, in open
    databases=databases)
  File "C:\Plone\Zope\lib\python\ZODB\DB.py", line 270, in __init__
    raise ValueError("database_name %r already in databases" %
ValueError: database_name 'strambino' already in databases

This happens for either of the mount-points, and actually I am not
understanding exactly when.
There are my settings:

in zeo.conf:
<zeo>
  address 9999
  read-only false
  invalidation-queue-size 100
  # pid-filename $INSTANCE/var/ZEO.pid
  # monitor-address PORT
  # transaction-timeout SECONDS
</zeo>

<filestorage 1>
  path $INSTANCE/var/Data.fs
</filestorage>

<filestorage 2>
  path $INSTANCE/var/Sommelier.fs
</filestorage>

<filestorage 3>
  path $INSTANCE/var/Strambino.fs
</filestorage>


and, in zope.conf

<zodb_db main>
  mount-point /
  <zeoclient>
    server localhost:9999
    storage 1
    name zeostorage
    var $INSTANCE/var
  </zeoclient>
</zodb_db>

<zodb_db Sommelier>
  mount-point /Sommelier
  <zeoclient>
    server localhost:9999
    storage 2
    name Sommelier
    var $INSTANCE/var
  </zeoclient>
</zodb_db>

<zodb_db Strambino>
  mount-point /Strambino
  <zeoclient>
    server localhost:9999
    storage 3
    name Strambino
    var $INSTANCE/var
  </zeoclient>
</zodb_db>

Am I doing something wrong?

Thanks&bye
Lucia



------------------------------------------------------------------------------
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Alex Man Alex Man
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

Hi Lucia,

I'm seeing the exact same error in my logs and I've four ZEO clients
and multiple mount points, each for one database for each Plone site.
I'm running Plone 3.1.6 on Solaris. I did a search on Google and it
looks like that it's a Plone bug:

https://bugs.launchpad.net/plone/+bug/397385

Did you get this issue resolved? Or, is it something that one can
ignore? Thanks a lot!

At 03:20 AM 4/4/2009, Lucia Colombo wrote:

>Hi
>I am setting up a zeo configuration with one client and multiple
>mount-points, to have separate databases for each plone site in the
>instance. I am running plone 3.1.7 on a windows platform.
>
>The configuration works - I have set up two mount points up to now - but I
>am getting errors in event.log, saying:
>ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.ValueError
>(database_name 'strambino' already in databases)
>Traceback (most recent call last):
>   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
>line 257, in _getOrOpenObject
>     conn = self._getMountedConnection(anyjar)
>   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
>line 147, in _getMountedConnection
>     self._getDB()
>   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
>line 157, in _getDB
>     return getConfiguration().getDatabase(self._path)
>   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 280, in
>getDatabase
>     db = factory.open(name, self.databases)
>   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 178, in
>open
>     DB = self.createDB(database_name, databases)
>   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 175, in
>createDB
>     return ZODBDatabase.open(self, databases)
>   File "C:\Plone\Zope\lib\python\ZODB\config.py", line 105, in open
>     databases=databases)
>   File "C:\Plone\Zope\lib\python\ZODB\DB.py", line 270, in __init__
>     raise ValueError("database_name %r already in databases" %
>ValueError: database_name 'strambino' already in databases
>
>This happens for either of the mount-points, and actually I am not
>understanding exactly when.
>There are my settings:
>
>in zeo.conf:
><zeo>
>   address 9999
>   read-only false
>   invalidation-queue-size 100
>   # pid-filename $INSTANCE/var/ZEO.pid
>   # monitor-address PORT
>   # transaction-timeout SECONDS
></zeo>
>
><filestorage 1>
>   path $INSTANCE/var/Data.fs
></filestorage>
>
><filestorage 2>
>   path $INSTANCE/var/Sommelier.fs
></filestorage>
>
><filestorage 3>
>   path $INSTANCE/var/Strambino.fs
></filestorage>
>
>
>and, in zope.conf
>
><zodb_db main>
>   mount-point /
>   <zeoclient>
>     server localhost:9999
>     storage 1
>     name zeostorage
>     var $INSTANCE/var
>   </zeoclient>
></zodb_db>
>
><zodb_db Sommelier>
>   mount-point /Sommelier
>   <zeoclient>
>     server localhost:9999
>     storage 2
>     name Sommelier
>     var $INSTANCE/var
>   </zeoclient>
></zodb_db>
>
><zodb_db Strambino>
>   mount-point /Strambino
>   <zeoclient>
>     server localhost:9999
>     storage 3
>     name Strambino
>     var $INSTANCE/var
>   </zeoclient>
></zodb_db>
>
>Am I doing something wrong?
>
>Thanks&bye
>Lucia
>
>
>
>------------------------------------------------------------------------------
>_______________________________________________
>Plone-Users mailing list
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/plone-users

Regards,

Alex


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
llcolombo llcolombo
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

No, I did not get it resolved and therefore did not move the
configuration to production. Thanks for pointing to the plone bug url,
is more recent than when I last tried to investigate. I am running plone
3.2.2 now and still get the issue.
However it looks like there has not been yet much follow up...

Lucia

On Fri, 2009-09-25 at 17:07 -0700, Alex Man wrote:

> Hi Lucia,
>
> I'm seeing the exact same error in my logs and I've four ZEO clients
> and multiple mount points, each for one database for each Plone site.
> I'm running Plone 3.1.6 on Solaris. I did a search on Google and it
> looks like that it's a Plone bug:
>
> https://bugs.launchpad.net/plone/+bug/397385
>
> Did you get this issue resolved? Or, is it something that one can
> ignore? Thanks a lot!
>
> At 03:20 AM 4/4/2009, Lucia Colombo wrote:
> >Hi
> >I am setting up a zeo configuration with one client and multiple
> >mount-points, to have separate databases for each plone site in the
> >instance. I am running plone 3.1.7 on a windows platform.
> >
> >The configuration works - I have set up two mount points up to now - but I
> >am getting errors in event.log, saying:
> >ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.ValueError
> >(database_name 'strambino' already in databases)
> >Traceback (most recent call last):
> >   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
> >line 257, in _getOrOpenObject
> >     conn = self._getMountedConnection(anyjar)
> >   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
> >line 147, in _getMountedConnection
> >     self._getDB()
> >   File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint\MountedObject.py",
> >line 157, in _getDB
> >     return getConfiguration().getDatabase(self._path)
> >   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 280, in
> >getDatabase
> >     db = factory.open(name, self.databases)
> >   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 178, in
> >open
> >     DB = self.createDB(database_name, databases)
> >   File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line 175, in
> >createDB
> >     return ZODBDatabase.open(self, databases)
> >   File "C:\Plone\Zope\lib\python\ZODB\config.py", line 105, in open
> >     databases=databases)
> >   File "C:\Plone\Zope\lib\python\ZODB\DB.py", line 270, in __init__
> >     raise ValueError("database_name %r already in databases" %
> >ValueError: database_name 'strambino' already in databases
> >
> >This happens for either of the mount-points, and actually I am not
> >understanding exactly when.
> >There are my settings:
> >
> >in zeo.conf:
> ><zeo>
> >   address 9999
> >   read-only false
> >   invalidation-queue-size 100
> >   # pid-filename $INSTANCE/var/ZEO.pid
> >   # monitor-address PORT
> >   # transaction-timeout SECONDS
> ></zeo>
> >
> ><filestorage 1>
> >   path $INSTANCE/var/Data.fs
> ></filestorage>
> >
> ><filestorage 2>
> >   path $INSTANCE/var/Sommelier.fs
> ></filestorage>
> >
> ><filestorage 3>
> >   path $INSTANCE/var/Strambino.fs
> ></filestorage>
> >
> >
> >and, in zope.conf
> >
> ><zodb_db main>
> >   mount-point /
> >   <zeoclient>
> >     server localhost:9999
> >     storage 1
> >     name zeostorage
> >     var $INSTANCE/var
> >   </zeoclient>
> ></zodb_db>
> >
> ><zodb_db Sommelier>
> >   mount-point /Sommelier
> >   <zeoclient>
> >     server localhost:9999
> >     storage 2
> >     name Sommelier
> >     var $INSTANCE/var
> >   </zeoclient>
> ></zodb_db>
> >
> ><zodb_db Strambino>
> >   mount-point /Strambino
> >   <zeoclient>
> >     server localhost:9999
> >     storage 3
> >     name Strambino
> >     var $INSTANCE/var
> >   </zeoclient>
> ></zodb_db>
> >
> >Am I doing something wrong?
> >
> >Thanks&bye
> >Lucia
> >
> >
> >
> >------------------------------------------------------------------------------
> >_______________________________________________
> >Plone-Users mailing list
> >[hidden email]
> >https://lists.sourceforge.net/lists/listinfo/plone-users
>
> Regards,
>
> Alex
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Dieter Maurer Dieter Maurer
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

In reply to this post by Alex Man
Alex Man wrote at 2009-9-25 17:07 -0700:
>Hi Lucia,
>
>I'm seeing the exact same error in my logs and I've four ZEO clients
>and multiple mount points, each for one database for each Plone site.
>I'm running Plone 3.1.6 on Solaris. I did a search on Google and it
>looks like that it's a Plone bug:
>
>https://bugs.launchpad.net/plone/+bug/397385

Looks like a race condition:

  In "Zope2.Startup.datatypes:277", "share" is not yet in
  "self.databases" but later in "ZODB.DB:270" it magically
  is (almost surely because a different request had intervened and
  opened the database in the meantime).

This is a Zope bug: "Zope2.Startup.datatypes.DBTAB.getDatabase"
would need a lock to prevent such race conditions.


You could work around this bug by opening the "share" database yourself
at startup (before concurrent requests can cause race conditions).

At least in Zope 2.11, there is an event notified when the main
database has been opened. A subcriber for this event could be used
to open "share". I am not sure, whether Zope 2.10 already defined this
event.

A product would be another possibility to open "share".
Put in its "initialize" definition:

    from App.config import getConfiguration
    getConfiguration().dbtab.getDatabase(name='share')

This will work in Zope 2.10 as well.



--
Dieter

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
T. Kim Nguyen T. Kim Nguyen
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

In reply to this post by Alex Man
We see the same error here occasionally but have not noticed problems  
resulting from it.

        Kim

--
For help and site requests, see http://uwosh.edu/plone (Secret  
Laboratory Number One)



On 25 Sep 2009, at 19:07, Alex Man wrote:

> Hi Lucia,
>
> I'm seeing the exact same error in my logs and I've four ZEO clients
> and multiple mount points, each for one database for each Plone site.
> I'm running Plone 3.1.6 on Solaris. I did a search on Google and it
> looks like that it's a Plone bug:
>
> https://bugs.launchpad.net/plone/+bug/397385
>
> Did you get this issue resolved? Or, is it something that one can
> ignore? Thanks a lot!
>
> At 03:20 AM 4/4/2009, Lucia Colombo wrote:
>> Hi
>> I am setting up a zeo configuration with one client and multiple
>> mount-points, to have separate databases for each plone site in the
>> instance. I am running plone 3.1.7 on a windows platform.
>>
>> The configuration works - I have set up two mount points up to now  
>> - but I
>> am getting errors in event.log, saying:
>> ERROR Zope.ZODBMountPoint Failed to mount database.  
>> exceptions.ValueError
>> (database_name 'strambino' already in databases)
>> Traceback (most recent call last):
>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint
>> \MountedObject.py",
>> line 257, in _getOrOpenObject
>>    conn = self._getMountedConnection(anyjar)
>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint
>> \MountedObject.py",
>> line 147, in _getMountedConnection
>>    self._getDB()
>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint
>> \MountedObject.py",
>> line 157, in _getDB
>>    return getConfiguration().getDatabase(self._path)
>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line  
>> 280, in
>> getDatabase
>>    db = factory.open(name, self.databases)
>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line  
>> 178, in
>> open
>>    DB = self.createDB(database_name, databases)
>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line  
>> 175, in
>> createDB
>>    return ZODBDatabase.open(self, databases)
>>  File "C:\Plone\Zope\lib\python\ZODB\config.py", line 105, in open
>>    databases=databases)
>>  File "C:\Plone\Zope\lib\python\ZODB\DB.py", line 270, in __init__
>>    raise ValueError("database_name %r already in databases" %
>> ValueError: database_name 'strambino' already in databases
>>
>> This happens for either of the mount-points, and actually I am not
>> understanding exactly when.
>> There are my settings:
>>
>> in zeo.conf:
>> <zeo>
>>  address 9999
>>  read-only false
>>  invalidation-queue-size 100
>>  # pid-filename $INSTANCE/var/ZEO.pid
>>  # monitor-address PORT
>>  # transaction-timeout SECONDS
>> </zeo>
>>
>> <filestorage 1>
>>  path $INSTANCE/var/Data.fs
>> </filestorage>
>>
>> <filestorage 2>
>>  path $INSTANCE/var/Sommelier.fs
>> </filestorage>
>>
>> <filestorage 3>
>>  path $INSTANCE/var/Strambino.fs
>> </filestorage>
>>
>>
>> and, in zope.conf
>>
>> <zodb_db main>
>>  mount-point /
>>  <zeoclient>
>>    server localhost:9999
>>    storage 1
>>    name zeostorage
>>    var $INSTANCE/var
>>  </zeoclient>
>> </zodb_db>
>>
>> <zodb_db Sommelier>
>>  mount-point /Sommelier
>>  <zeoclient>
>>    server localhost:9999
>>    storage 2
>>    name Sommelier
>>    var $INSTANCE/var
>>  </zeoclient>
>> </zodb_db>
>>
>> <zodb_db Strambino>
>>  mount-point /Strambino
>>  <zeoclient>
>>    server localhost:9999
>>    storage 3
>>    name Strambino
>>    var $INSTANCE/var
>>  </zeoclient>
>> </zodb_db>
>>
>> Am I doing something wrong?
>>
>> Thanks&bye
>> Lucia
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Plone-Users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>
> Regards,
>
> Alex
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register  
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Plone-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Alex Man Alex Man
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

Hi Kim,

We didn't notice any problem resulting from it too.

Hi Dieter,

Thanks a lot for your suggestion. I'll try your workaround later on.

At 09:40 AM 9/28/2009, T. Kim Nguyen wrote:

>We see the same error here occasionally but have not noticed problems
>resulting from it.
>
>         Kim
>
>--
>For help and site requests, see http://uwosh.edu/plone (Secret
>Laboratory Number One)
>
>
>
>On 25 Sep 2009, at 19:07, Alex Man wrote:
>
>>Hi Lucia,
>>
>>I'm seeing the exact same error in my logs and I've four ZEO clients
>>and multiple mount points, each for one database for each Plone site.
>>I'm running Plone 3.1.6 on Solaris. I did a search on Google and it
>>looks like that it's a Plone bug:
>>
>>https://bugs.launchpad.net/plone/+bug/397385
>>
>>Did you get this issue resolved? Or, is it something that one can
>>ignore? Thanks a lot!
>>
>>At 03:20 AM 4/4/2009, Lucia Colombo wrote:
>>>Hi
>>>I am setting up a zeo configuration with one client and multiple
>>>mount-points, to have separate databases for each plone site in the
>>>instance. I am running plone 3.1.7 on a windows platform.
>>>
>>>The configuration works - I have set up two mount points up to now
>>>- but I
>>>am getting errors in event.log, saying:
>>>ERROR Zope.ZODBMountPoint Failed to mount database.
>>>exceptions.ValueError
>>>(database_name 'strambino' already in databases)
>>>Traceback (most recent call last):
>>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint \MountedObject.py",
>>>line 257, in _getOrOpenObject
>>>    conn = self._getMountedConnection(anyjar)
>>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint \MountedObject.py",
>>>line 147, in _getMountedConnection
>>>    self._getDB()
>>>  File "C:\Plone\Zope\lib\python\Products\ZODBMountPoint \MountedObject.py",
>>>line 157, in _getDB
>>>    return getConfiguration().getDatabase(self._path)
>>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line
>>>280, in
>>>getDatabase
>>>    db = factory.open(name, self.databases)
>>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line
>>>178, in
>>>open
>>>    DB = self.createDB(database_name, databases)
>>>  File "C:\Plone\Zope\lib\python\Zope2\Startup\datatypes.py", line
>>>175, in
>>>createDB
>>>    return ZODBDatabase.open(self, databases)
>>>  File "C:\Plone\Zope\lib\python\ZODB\config.py", line 105, in open
>>>    databases=databases)
>>>  File "C:\Plone\Zope\lib\python\ZODB\DB.py", line 270, in __init__
>>>    raise ValueError("database_name %r already in databases" %
>>>ValueError: database_name 'strambino' already in databases
>>>
>>>This happens for either of the mount-points, and actually I am not
>>>understanding exactly when.
>>>There are my settings:
>>>
>>>in zeo.conf:
>>><zeo>
>>>  address 9999
>>>  read-only false
>>>  invalidation-queue-size 100
>>>  # pid-filename $INSTANCE/var/ZEO.pid
>>>  # monitor-address PORT
>>>  # transaction-timeout SECONDS
>>></zeo>
>>>
>>><filestorage 1>
>>>  path $INSTANCE/var/Data.fs
>>></filestorage>
>>>
>>><filestorage 2>
>>>  path $INSTANCE/var/Sommelier.fs
>>></filestorage>
>>>
>>><filestorage 3>
>>>  path $INSTANCE/var/Strambino.fs
>>></filestorage>
>>>
>>>
>>>and, in zope.conf
>>>
>>><zodb_db main>
>>>  mount-point /
>>>  <zeoclient>
>>>    server localhost:9999
>>>    storage 1
>>>    name zeostorage
>>>    var $INSTANCE/var
>>>  </zeoclient>
>>></zodb_db>
>>>
>>><zodb_db Sommelier>
>>>  mount-point /Sommelier
>>>  <zeoclient>
>>>    server localhost:9999
>>>    storage 2
>>>    name Sommelier
>>>    var $INSTANCE/var
>>>  </zeoclient>
>>></zodb_db>
>>>
>>><zodb_db Strambino>
>>>  mount-point /Strambino
>>>  <zeoclient>
>>>    server localhost:9999
>>>    storage 3
>>>    name Strambino
>>>    var $INSTANCE/var
>>>  </zeoclient>
>>></zodb_db>
>>>
>>>Am I doing something wrong?
>>>
>>>Thanks&bye
>>>Lucia
>>>
>>>
>>>
>>>------------------------------------------------------------------------------
>>>_______________________________________________
>>>Plone-Users mailing list
>>>[hidden email]
>>>https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>Regards,
>>
>>Alex
>>
>>
>>------------------------------------------------------------------------------
>>Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>>is the only developer event you need to attend this year. Jumpstart
>>your
>>developing skills, take BlackBerry mobile applications to market and
>>stay
>>ahead of the curve. Join us from November 9&#45;12, 2009. Register
>>now&#33;
>>http://p.sf.net/sfu/devconf
>>_______________________________________________
>>Plone-Users mailing list
>>[hidden email]
>>https://lists.sourceforge.net/lists/listinfo/plone-users

Regards,

Alex


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Dieter Maurer Dieter Maurer
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

In reply to this post by T. Kim Nguyen
T. Kim Nguyen wrote at 2009-9-28 11:40 -0500:
>We see the same error here occasionally but have not noticed problems  
>resulting from it.

This is compatible with my (race condition) assumption.

Race conditions are by nature non deterministic.
And because this particular one can no longer happen
after the database is opened,
it has only a chance during a short single time frame (after a restart).
This means you should see at most one or very few isolated problems
after a restart and thereafter have no problems.



--
Dieter

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
jdek jdek
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

In reply to this post by llcolombo
Is this zodb mountpoint error a non issue? Have the same error in my log and I was wondering if that can be a reason for my system to be messed up.
Dieter Maurer Dieter Maurer
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

jdek wrote at 2010-1-31 00:43 -0800:
>Is this zodb mountpoint error a non issue?

"This"? Which this?

>Have the same error in my log

When you have an entry in your log file telling you about
a "ZODBMountpoint" problem then this means with high probability
that some mount was unsuccessful.

An unsuccessful mount means that the mount point continues to
behave like a mount point and not like the mounted object.
This can result in "AttributeErrror" or "NotFound" exceptions
(or some other exceptions in rarer cases).

>and
>I was wondering if that can be a reason for
>http://n2.nabble.com/SignupSheet-install-error-on-Plone-3-3-4-tt4479467.html#a4479803
>my system to be messed up .

I do not think that this is likely -- unless the failed mount
is related to the object you try to modify with the installation.



--
Dieter

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
jdek jdek
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

Dieter Maurer wrote
"This"? Which this?
This is this:

  ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.ValueError (database_name 'site1' already in databases)
Traceback (most recent call last):
  File "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 253, in _getOrOpenObject
    conn = self._getMountedConnection(anyjar)
  File "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 148, in _getMountedConnection
    self._getDB()
  File "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 158, in _getDB
    return getConfiguration().getDatabase(self._path)
  File "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 280, in getDatabase
    db = factory.open(name, self.databases)
  File "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 178, in open
    DB = self.createDB(database_name, databases)
  File "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 175, in createDB
    return ZODBDatabase.open(self, databases)
  File "/home/buildout/site/parts/zope2/lib/python/ZODB/config.py", line 105, in open
    databases=databases)
  File "/home/buildout/site/parts/zope2/lib/python/ZODB/DB.py", line 270, in __init__
    raise ValueError("database_name %r already in databases" %
ValueError: database_name 'site1' already in databases
What can be done about it to be sure that this ZODBMountpoint error can not cause problems?

Dieter Maurer Dieter Maurer
Reply | Threaded
Open this post in threaded view
|

Re: zodb mountpoint error in log

jdek wrote at 2010-2-2 00:47 -0800:

>Dieter Maurer wrote:
>>
>> "This"? Which this?
>>
>
>This is this:
>
>
>  ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.ValueError
>(database_name 'site1' already in databases)
>> Traceback (most recent call last):
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py",
>> line 253, in _getOrOpenObject
>>     conn = self._getMountedConnection(anyjar)
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py",
>> line 148, in _getMountedConnection
>>     self._getDB()
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py",
>> line 158, in _getDB
>>     return getConfiguration().getDatabase(self._path)
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py",
>> line 280, in getDatabase
>>     db = factory.open(name, self.databases)
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py",
>> line 178, in open
>>     DB = self.createDB(database_name, databases)
>>   File
>> "/home/buildout/site/parts/zope2/lib/python/Zope2/Startup/datatypes.py",
>> line 175, in createDB
>>     return ZODBDatabase.open(self, databases)
>>   File "/home/buildout/site/parts/zope2/lib/python/ZODB/config.py", line
>> 105, in open
>>     databases=databases)
>>   File "/home/buildout/site/parts/zope2/lib/python/ZODB/DB.py", line 270,
>> in __init__
>>     raise ValueError("database_name %r already in databases" %
>> ValueError: database_name 'site1' already in databases
>
>What can be done about it to be sure that this ZODBMountpoint error can not
>cause problems?

Search the archive. You will find at least one thread in which
I wrote that this is likely to be a race condition (bug in Zope).

If I am right, then the bug lets fail a request after a startup.
After the failure, the mount should no longer make problems.
Thus, the problem is mostly benign.

When I remember right, I have suggested a way to work around the
bug (essentially, ensure in one of your application extensions
("product", "theme", "policy", ...) that all mount points are
already opened at Zope startup and not during normal request processing).



--
Dieter

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users