Re: [ZODB-Dev] zeoraid + plone 3.3.4

2010-02-18 Thread Christian Theune
On 02/18/2010 03:42 PM, Diego Acevedo wrote:
> 
> 
> On Thu, Feb 18, 2010 at 11:25 AM, Christian Theune  > wrote:
> 
> On 02/18/2010 03:22 PM, Diego Acevedo wrote:
> > On Wed, Feb 17, 2010 at 5:20 PM, Christian Theune  
> > >> wrote:
> >
> > On 02/17/2010 06:15 PM, Diego Acevedo wrote:
> > > Hello everybody. I have a problem with zeoraid + plone (I
> ask for the
> > > problem in the general questions in Plone, and they say me
> that i
> > could
> > > ask here)...
> > >
> > > I can do work zeoraid and plone for separate, but if I try to
> > connect my
> > > zope client instance with the zeoraid, its dont work.
> > >
> > > I try different configurations:
> > >
> > >  zope client -> zeoraid -> zeoservers;
> > >  zope client -> zeoserver <- zeoraid -> zeoservers
> > >  etc
> > >
> > > I think that the problem is the ZODB, because zeoraid
> (gocept.zeoraid)
> > > work with ZODB3 >= 3.9, whereas Plone 3.3.4 work with Zope
> 2.10, and
> > > this with ZODB 3.7.1...
> > >
> > > so, the question is, Did someone get that zeoraid and plone work
> > together??
> >
> > The correct chain of configuration is:
> >
> > Zope Server -> ZEOServer with a RAIDStorage -> other backends
> (typically
> > the second row of ZEO servers)
> >
> > The correct ZODB versions are:
> >
> > Zope Server = ZODB 3.6+
> > ZEO Servers w/ and w/o ZEORAID = ZODB 3.9
> >
> > If you have those configurations and they don't work, then a
> specific
> > error report would help.
> >
> > Christian
> >
> > --
> > Christian Theune · c...@gocept.com 
> >
> > gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale)
> · germany
> > http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> > Zope and Plone consulting and development
> >
> > ___
> > For more information about ZODB, see the ZODB Wiki:
> > http://www.zope.org/Wikis/ZODB/
> >
> > ZODB-Dev mailing list  -  ZODB-Dev@zope.org
>   >
> > https://mail.zope.org/mailman/listinfo/zodb-dev
> >
> >
> > Oh... nice. thank you, but now I am a little confused...
> >
> > I have the next configuration right now (briefly):
> >
> > ZeoRaid:
> >
> > zeo1 address 8100
> > zeo2 address 8101
> > zeoraid address 8200 (and inside  server 8100; server
> 8101)
> >
> > Plone (it is a zeo install, not a stand alone):
> >
> > zeo-address 8100
> 
> That must point to 8200, otherwise Plone will only talk to zeo1 and thus
> zeo1 and zeo2 will diverge causing ZEORaid to become inconsistent.
> 
> Christian
> 
> --
> Christian Theune · c...@gocept.com 
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
> http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> Zope and Plone consulting and development
> 
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org 
> https://mail.zope.org/mailman/listinfo/zodb-dev
> 
> 
> 
> I tested it too, but i got this error (for plone client):
> 
> 2010-02-18 11:33:15 ERROR ZEO.zrpc (3334) CW: error in testConnection
> (('127.0.0.1', 8200))
> Traceback (most recent call last):
>   File
> "/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/zrpc/client.py", line
> 454, in test_connection
> self.preferred = self.client.testConnection(self.conn)
>   File
> "/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/ClientStorage.py",
> line 442, in testConnection
> stub.register(str(self._storage), self._is_read_only)
>   File
> "/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/ServerStub.py",
> line 74, in register
> self.rpc.call('register', storage_name, read_only)
>   File
> "/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/zrpc/connection.py",
> line 650, in call
> raise inst # error raised by server
> ValueError: unknown storage: 1
> 
> Storage1 is define in zeo1 and zeo2...

You have to use the name you gave to the "raidstorage".

Also: after the raid became inconsistent, you better get zeo1 and zeo2
back to the same state or run a recovery.

Christian

-- 
Christian Theune · c...@gocept.com
gocept gmbh & co. kg ·

Re: [ZODB-Dev] zeoraid + plone 3.3.4

2010-02-18 Thread Diego Acevedo
On Thu, Feb 18, 2010 at 11:25 AM, Christian Theune  wrote:

> On 02/18/2010 03:22 PM, Diego Acevedo wrote:
> > On Wed, Feb 17, 2010 at 5:20 PM, Christian Theune  > > wrote:
> >
> > On 02/17/2010 06:15 PM, Diego Acevedo wrote:
> > > Hello everybody. I have a problem with zeoraid + plone (I ask for
> the
> > > problem in the general questions in Plone, and they say me that i
> > could
> > > ask here)...
> > >
> > > I can do work zeoraid and plone for separate, but if I try to
> > connect my
> > > zope client instance with the zeoraid, its dont work.
> > >
> > > I try different configurations:
> > >
> > >  zope client -> zeoraid -> zeoservers;
> > >  zope client -> zeoserver <- zeoraid -> zeoservers
> > >  etc
> > >
> > > I think that the problem is the ZODB, because zeoraid
> (gocept.zeoraid)
> > > work with ZODB3 >= 3.9, whereas Plone 3.3.4 work with Zope 2.10,
> and
> > > this with ZODB 3.7.1...
> > >
> > > so, the question is, Did someone get that zeoraid and plone work
> > together??
> >
> > The correct chain of configuration is:
> >
> > Zope Server -> ZEOServer with a RAIDStorage -> other backends
> (typically
> > the second row of ZEO servers)
> >
> > The correct ZODB versions are:
> >
> > Zope Server = ZODB 3.6+
> > ZEO Servers w/ and w/o ZEORAID = ZODB 3.9
> >
> > If you have those configurations and they don't work, then a specific
> > error report would help.
> >
> > Christian
> >
> > --
> > Christian Theune · c...@gocept.com 
> > gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) ·
> germany
> > http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> > Zope and Plone consulting and development
> >
> > ___
> > For more information about ZODB, see the ZODB Wiki:
> > http://www.zope.org/Wikis/ZODB/
> >
> > ZODB-Dev mailing list  -  ZODB-Dev@zope.org  ZODB-Dev@zope.org>
> > https://mail.zope.org/mailman/listinfo/zodb-dev
> >
> >
> > Oh... nice. thank you, but now I am a little confused...
> >
> > I have the next configuration right now (briefly):
> >
> > ZeoRaid:
> >
> > zeo1 address 8100
> > zeo2 address 8101
> > zeoraid address 8200 (and inside  server 8100; server 8101)
> >
> > Plone (it is a zeo install, not a stand alone):
> >
> > zeo-address 8100
>
> That must point to 8200, otherwise Plone will only talk to zeo1 and thus
> zeo1 and zeo2 will diverge causing ZEORaid to become inconsistent.
>
> Christian
>
> --
> Christian Theune · c...@gocept.com
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
> http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> Zope and Plone consulting and development
>
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>


I tested it too, but i got this error (for plone client):

2010-02-18 11:33:15 ERROR ZEO.zrpc (3334) CW: error in testConnection
(('127.0.0.1', 8200))
Traceback (most recent call last):
  File
"/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/zrpc/client.py",
line 454, in test_connection
self.preferred = self.client.testConnection(self.conn)
  File
"/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/ClientStorage.py",
line 442, in testConnection
stub.register(str(self._storage), self._is_read_only)
  File
"/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/ServerStub.py",
line 74, in register
self.rpc.call('register', storage_name, read_only)
  File
"/home/gdlk/Plone/Zope-2.10.7-final-py2.4/lib/python/ZEO/zrpc/connection.py",
line 650, in call
raise inst # error raised by server
ValueError: unknown storage: 1

Storage1 is define in zeo1 and zeo2...
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] zeoraid + plone 3.3.4

2010-02-18 Thread Christian Theune
On 02/18/2010 03:22 PM, Diego Acevedo wrote:
> On Wed, Feb 17, 2010 at 5:20 PM, Christian Theune  > wrote:
> 
> On 02/17/2010 06:15 PM, Diego Acevedo wrote:
> > Hello everybody. I have a problem with zeoraid + plone (I ask for the
> > problem in the general questions in Plone, and they say me that i
> could
> > ask here)...
> >
> > I can do work zeoraid and plone for separate, but if I try to
> connect my
> > zope client instance with the zeoraid, its dont work.
> >
> > I try different configurations:
> >
> >  zope client -> zeoraid -> zeoservers;
> >  zope client -> zeoserver <- zeoraid -> zeoservers
> >  etc
> >
> > I think that the problem is the ZODB, because zeoraid (gocept.zeoraid)
> > work with ZODB3 >= 3.9, whereas Plone 3.3.4 work with Zope 2.10, and
> > this with ZODB 3.7.1...
> >
> > so, the question is, Did someone get that zeoraid and plone work
> together??
> 
> The correct chain of configuration is:
> 
> Zope Server -> ZEOServer with a RAIDStorage -> other backends (typically
> the second row of ZEO servers)
> 
> The correct ZODB versions are:
> 
> Zope Server = ZODB 3.6+
> ZEO Servers w/ and w/o ZEORAID = ZODB 3.9
> 
> If you have those configurations and they don't work, then a specific
> error report would help.
> 
> Christian
> 
> --
> Christian Theune · c...@gocept.com 
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
> http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> Zope and Plone consulting and development
> 
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
> 
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org 
> https://mail.zope.org/mailman/listinfo/zodb-dev
> 
> 
> Oh... nice. thank you, but now I am a little confused...
> 
> I have the next configuration right now (briefly):
> 
> ZeoRaid:
> 
> zeo1 address 8100
> zeo2 address 8101
> zeoraid address 8200 (and inside  server 8100; server 8101)
> 
> Plone (it is a zeo install, not a stand alone):
> 
> zeo-address 8100

That must point to 8200, otherwise Plone will only talk to zeo1 and thus
zeo1 and zeo2 will diverge causing ZEORaid to become inconsistent.

Christian

-- 
Christian Theune · c...@gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] zeoraid + plone 3.3.4

2010-02-18 Thread Diego Acevedo
On Wed, Feb 17, 2010 at 5:20 PM, Christian Theune  wrote:

> On 02/17/2010 06:15 PM, Diego Acevedo wrote:
> > Hello everybody. I have a problem with zeoraid + plone (I ask for the
> > problem in the general questions in Plone, and they say me that i could
> > ask here)...
> >
> > I can do work zeoraid and plone for separate, but if I try to connect my
> > zope client instance with the zeoraid, its dont work.
> >
> > I try different configurations:
> >
> >  zope client -> zeoraid -> zeoservers;
> >  zope client -> zeoserver <- zeoraid -> zeoservers
> >  etc
> >
> > I think that the problem is the ZODB, because zeoraid (gocept.zeoraid)
> > work with ZODB3 >= 3.9, whereas Plone 3.3.4 work with Zope 2.10, and
> > this with ZODB 3.7.1...
> >
> > so, the question is, Did someone get that zeoraid and plone work
> together??
>
> The correct chain of configuration is:
>
> Zope Server -> ZEOServer with a RAIDStorage -> other backends (typically
> the second row of ZEO servers)
>
> The correct ZODB versions are:
>
> Zope Server = ZODB 3.6+
> ZEO Servers w/ and w/o ZEORAID = ZODB 3.9
>
> If you have those configurations and they don't work, then a specific
> error report would help.
>
> Christian
>
> --
> Christian Theune · c...@gocept.com
> gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
> http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
> Zope and Plone consulting and development
>
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>

Oh... nice. thank you, but now I am a little confused...

I have the next configuration right now (briefly):

ZeoRaid:

zeo1 address 8100
zeo2 address 8101
zeoraid address 8200 (and inside  server 8100; server 8101)

Plone (it is a zeo install, not a stand alone):

zeo-address 8100
client1 address 8080

I test starting the process in the follow orders: (for the plone client,
with /bin/client1 fg)

client1 (plone); zeo1; zeo2; zeoraid
client1(plone); zeo1; zeoraid; zeo2
zeo1; client1(plone); zeo2; zeoraid
zeo1; client1(plone); zeoraid; zeo2

Any of this is ok??, because i get the follow error when I try to modify
something in the site (zeoraid/zeo.log):

2010-02-18T11:06:35 ERROR ZEO.zrpc.Connection(S) (127.0.0.1:47827)
lastTransaction() raised exception: RAID is inconsistent and was closed.
Traceback (most recent call last):
  File
"/home/gdlk/Downloads/gocept.zeoraid-1.0b7/eggs/ZODB3-3.10.0a1-py2.5-linux-x86_64.egg/ZEO/zrpc/connection.py",
line 439, in handle_request
ret = meth(*args)
  File
"/home/gdlk/Downloads/gocept.zeoraid-1.0b7/src/gocept/zeoraid/storage.py",
line 230, in lastTransaction
return self._apply_all_storages('lastTransaction')
  File
"/home/gdlk/Downloads/gocept.zeoraid-1.0b7/src/gocept/zeoraid/storage.py",
line 48, in check_open
return method(self, *args, **kw)
  File
"/home/gdlk/Downloads/gocept.zeoraid-1.0b7/src/gocept/zeoraid/storage.py",
line 852, in _apply_all_storages
"RAID is inconsistent and was closed.")
RuntimeError: RAID is inconsistent and was closed.
--
2010-02-18T11:06:35 INFO ZEO.StorageServer (3083/127.0.0.1:47827)
disconnected


Thanks for the quickly answer of yesterday, and thanks for your time!!
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] zeoraid + plone 3.3.4

2010-02-17 Thread Christian Theune
On 02/17/2010 06:15 PM, Diego Acevedo wrote:
> Hello everybody. I have a problem with zeoraid + plone (I ask for the
> problem in the general questions in Plone, and they say me that i could
> ask here)...
> 
> I can do work zeoraid and plone for separate, but if I try to connect my
> zope client instance with the zeoraid, its dont work.
> 
> I try different configurations:
> 
>  zope client -> zeoraid -> zeoservers;
>  zope client -> zeoserver <- zeoraid -> zeoservers
>  etc
> 
> I think that the problem is the ZODB, because zeoraid (gocept.zeoraid)
> work with ZODB3 >= 3.9, whereas Plone 3.3.4 work with Zope 2.10, and
> this with ZODB 3.7.1...
> 
> so, the question is, Did someone get that zeoraid and plone work together??

The correct chain of configuration is:

Zope Server -> ZEOServer with a RAIDStorage -> other backends (typically
the second row of ZEO servers)

The correct ZODB versions are:

Zope Server = ZODB 3.6+
ZEO Servers w/ and w/o ZEORAID = ZODB 3.9

If you have those configurations and they don't work, then a specific
error report would help.

Christian

-- 
Christian Theune · c...@gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev