Date: Mon, 6 Jun 2005 16:17:59 +0200 From: Gerhard Schmidt <estartu@augusta.de> To: Geraint Edwards <gedge-lists@yadn.org>, freebsd-python@freebsd.org Subject: Re: new to python/zope - installation woes Message-ID: <20050606141759.GA1547@augusta.de> In-Reply-To: <20050603160153.GA56758@cymru.serf.org> References: <20050603160153.GA56758@cymru.serf.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 03, 2005 at 05:01:53PM +0100, Geraint Edwards wrote: > Hi, >=20 > I have a customer that wants to run their website on Plone, > They've delivered me a *.zexp file and a products.zip file. I > just want to throw it on my 4_RELENG server - and forget about > it. >=20 > I installed Plone (and hence Zope and python!) from ports (you > will soon deduce, if you haven't already, that I am new to all > three!). What follows is some feedback (meant as constructive > criticism) from a someone who has acquired a big headache. >=20 > Firstly, if you install the www/plone port, it installs > www/zope, and the "critical" instructions for > make instance [...] > are scrolled into the ether and their importance is missed, and > thus began my headache. Your install might not scroll them off, > but my ports database is full of bsdpan-* crud that fills my > screen up with junk, so I don't necessarily realise that zope is > installed (hey, plone is what I wanted, right?). >=20 > Anyway, I scrolled back and found the zope instructions and ran > make instance INSTANCENAME=3D"foo" > and make instance INSTANCENAME=3D"bar" > because I want to test this in 'bar' before making things > "production" in 'foo'. I made the zope.conf files, too, setup > rc.conf with: > zope_enable=3D"YES" > zope_instances=3D"/usr/local/www/Zope/foo /usr/local/www/Zope/bar" > and ran "zope.sh start" - so far so good. >=20 > However, 'bar' never gets any logs - it all seems to go to > .../foo/log/... > and the logs don't get anything interesting in them when things > go horribly wrong (see later). Did you set different ports for both zope servers default is=20 8080. If both zope servers are configured for 8080 bar gets=20 never started, because the port is allready used. =20 =20 > After *much* playing with Apache to get it to proxy for zope, > I was getting bitten by the annoying > <base href=3D"http://localhost:8080/ > I eventually found the *right* page to get it to work (there seem > to be so many wrong pages with similar but partial information): > http://www.zope.org/Members/4am/SiteAccess2/info > Phew. >=20 > I still don't understand how I seem to be able to access (and > hence "manage") the top-level of zope, logged in as the 'bar' > user (shouldn't 'bar's user only be able to manage *that > instance*?). Anyway... =20 > I popped the foo.zexp into the .../bar/import directory and > http://.../manage didn't find it, so I moved it into the main > .../import directory and it found it - I don't understand that at > all - why have an instance import directory that doesn't find the > files. Anyway... I got this error: All path settings are in zope.conf. Sounds like you have copied zope.conf from one instance to the other and lost the right path=20 information for one instance.=20 I'm running mor the 15 zope instances on one Host. All created with=20 make instance.=20 =20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Site Error >=20 > An error was encountered while publishing this resource. >=20 > Error Type: ImportError > Error Value: No module named CMFUserTrackTool.UserTrackTool >=20 > Troubleshooting Suggestions >=20 > * The URL may be incorrect. > * The parameters passed to this resource may be incorrect. > * A resource that this resource relies on may be encountering an erro= r. >=20 > For more detailed information about the error, please refer to the error = log. >=20 > If the error persists please contact the site maintainer. Thank you for y= our patience. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > So, either I'd missing this product, or something is broken - or > both. The hunt for the CMFUserTrackTool began, which I > eventually found (why are all the zope websites so poor at > conveying useful information? e.g. how to load product X, where > to find product X) and extracted into the Products directory - > restarted, and now my instance dies - with nothing in the logs. try the bin/runzope script in your instance home. It prints the=20 debug infomation to stdout. Is very usefull when debug startup problems. =20 > The readme.txt in that directory says I need UserTrack first, but > I cannot find it anywhere. Either I've lost the ability to > search the web, or there is some special zope-fu for getting the > stuff you need. It is apparent that I do not have zope-fu. Thats a problem of your products. Product dependency are quite a=20 pain in the ass. Ask your customer about this Products and install them in <instance_home>/Products.=20 =20 > More long-winded reading/searching, and I discover that FreeBSD > recommends setting the large stack size for Python, so I > reinstall (make config) python, but that doesn't fix anything - > that instance still dies - nothing in the logs. I up the logging > level to ALL, and still nothing more in the logs. >=20 > I think I'll go to bed for an hour, and let my head rest. >=20 > Am I alone in thinking that this is a lot harder than it should > be? That, or please (dear $deity!), tell me what I am missing? >=20 > Any help appreciated. Running Zope/Plone without inside knowlegde of Zope is not such=20 a good Idea. You should spend some time and learn about Zope.=20 Bye Estartu=20 ---------------------------------------------------------------------------- Gerhard Schmidt | Nick : estartu IRC : Estartu | Fischbachweg 3 | | PGP Public Key 86856 Hiltenfingen | Privat: estartu@augusta.de | auf Anfrage/ Germany | | on Request --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: C8RhX9EcGDEvUtB57pDR9xZsN8DeBEFK iQCVAwUBQqRbFwzx22nOTJQRAQGKYgQAnYlof/WU1+N3Z9LB4YHQmnUCoNy3IGcx BA7aulAQxFeCbE+YLMGHaaZOXmMO+PmPcGIdreXj2zyAK4mmeESvXxRoSWj57Xkv BpYC+VspU8Ra67UgMsZ5QP/Y928JsIZyPJhJcllCfzJ5t+rL0USpzW97gpd2E2fa M/sA6QevOe8= =+B5F -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050606141759.GA1547>