[Zope] ZEO and Zope 2.4.0a1 help
Chris McDonough
chrism@digicool.com
Fri, 08 Jun 2001 11:15:35 -0400
Oops... damn, forgot to import os:
import ZEO.ClientStorage, os
Storage=ZEO.ClientStorage.ClientStorage(
os.path.join(INSTANCE_HOME, 'var', 'zeo.soc'),
name="ZEO Storage",
storage="1",
)
Chris McDonough wrote:
>
> Please try to keep this stuff on the list.. thanks.
>
> I think having the if..else in custom_zodb.py is a recipe for total
> confusion. Remove the FileStorage stuff so that the custom_zodb.py file
> just reads:
>
> import ZEO.ClientStorage
> Storage=ZEO.ClientStorage.ClientStorage(
> os.path.join(INSTANCE_HOME, 'var', 'zeo.soc'),
> name="ZEO Storage",
> storage="1",
> )
>
> That's it. Then start the ZEO server with the -U switch that points to
> the zeo.soc file as you did before, then start Zope via "start".
>
> - C
>
> Norman Khine wrote:
> >
> > Hello Chris,
> > This is what I have in my custom_zodb.py file
> >
> > import ZEO.ClientStorage
> > Storage=ZEO.ClientStorage.ClientStorage(
> > os.path.join(INSTANCE_HOME, 'var', 'zeo.soc'),
> > # If no name is given, then connection info will be shown:
> > name="ZEO Storage",
> > # You can specify the storage name, which defaults to "1":
> > storage="1",
> > )
> >
> > else:
> >
> > # Default FileStorage
> > import ZODB.FileStorage
> > Storage=ZODB.FileStorage.FileStorage(
> > os.path.join(INSTANCE_HOME, 'var', 'Data.fs'),
> > )
> >
> > I don't have an external storage database, I just want to try to understand
> > how it works before I try it out with external storage.
> >
> > Also I am using it all on the same machine -- both client and server.
> >
> > So, what will be the procedure of starting the ZEO client and Zope.
> >
> > Ta
> >
> > Norman
> >
> > -----Original Message-----
> > From: Chris McDonough [mailto:chrism@digicool.com]
> > Sent: Friday, June 08, 2001 3:39 PM
> > To: Norman Khine
> > Cc: Zope Mailing List
> > Subject: Re: [Zope] ZEO and Zope 2.4.0a1 help
> >
> > It appears that the Zope Book docs are wrong. The -E option to z2.py
> > doesn't exist. I think the -E option might serve as some sort of
> > stand-in for custom_zodb.py in some alternate reality, but not in this
> > one. This is broken documentation (I've submitted it to the docs guys).
> >
> > The answer is to not try to use the -E switch. Instead, modify the
> > Storage= line in custom_zodb.py file to be (untested):
> >
> > Storage=ZEO.ClientStorage.ClientStorage('/path/to/var/zeo.soc')
> >
> > - C
> >
> > Norman Khine wrote:
> > >
> > > Hello I am trying to run Zope and ZEO on the same server, but I am unsure
> > if
> > > it is working correctly.
> > >
> > > I have followed the http://www.zope.org/Members/michel/ZB/ZEO.html setup
> > > instructions
> > >
> > > but get an error when I type:
> > >
> > > $ python z2.py -D -E var/zeo.soc
> > >
> > > Error:
> > > getopt.GetoptError: option -E not recognized
> > >
> > > but if I type
> > >
> > > $ python z2.py -D -F var/zeo.soc
> > >
> > > then I get this as my output
> > >
> > > 2001-06-08T13:45:26 INFO(0) ZServer HTTP server started at Fri Jun 8
> > > 14:45:26 2001
> > > Hostname: localhost
> > > Port: 8080
> > > ------
> > > 2001-06-08T13:45:26 INFO(0) ZServer FTP server started at Fri Jun 8
> > > 14:45:26 2001
> > > Hostname: localhost
> > > Port: 8021
> > > ------
> > > 2001-06-08T13:45:26 INFO(0) ZServer FastCGI Server (V1.0) started at Fri
> > Jun
> > > 8 14:45:26 2001
> > > IP :
> > > Port : None
> > > Socket path : var/zeo.soc
> > >
> > > my confusion is that on the http://www.zope.org/Members/michel/ZB/ZEO.html
> > > the output should be
> > >
> > > ------
> > > 2000-10-04T20:43:11 INFO(0) client Trying to connect to server
> > > ------
> > > 2000-10-04T20:43:11 INFO(0) ClientStorage Connected to storage
> > > ------
> > > 2000-10-04T20:43:12 PROBLEM(100) ZServer Computing default pinky
> > > ------
> > > 2000-10-04T20:43:12 INFO(0) ZServer Medusa (V1.19) started at Wed
> > Oct
> > > 4 15:43:12 2000
> > > Hostname: pinky.zopezoo.org
> > > Port:8080
> > >
> > > ------
> > > 2000-10-04T20:43:12 INFO(0) ZServer FTP server started at Wed Oct 4
> > > 15:43:12 2000
> > > Authorizer:None
> > > Hostname: pinky
> > > Port: 8021
> > > ------
> > > 2000-10-04T20:43:12 INFO(0) ZServer Monitor Server (V1.9) started on
> > > port 8099
> > >
> > > Am I missing something, and how do I check if ZEO is working from the
> > > localhost.
> > >
> > > Also when I access the management folder I don't seem to have ZGadfly
> > > database from the Add products drop-down selection, althogh in the
> > Products
> > > folder is showing as an installed product.
> > >
> > > Thanks
> > >
> > > Norman
> > >
> > > =========================================
> > > "Eternity is Time
> > > Time, eternity
> > > To see the two as opposite
> > > Is Man's Perversity"
> > >
> > > The Book of Angelus Silesius
> > >
> > > _______________________________________________
> > > Zope maillist - Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )