From owner-freebsd-python@FreeBSD.ORG  Mon Jun  6 14:18:07 2005
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
X-Original-To: freebsd-python@freebsd.org
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2CFC916A41C
	for <freebsd-python@freebsd.org>; Mon,  6 Jun 2005 14:18:07 +0000 (GMT)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.96])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7C2AD43D48
	for <freebsd-python@freebsd.org>; Mon,  6 Jun 2005 14:18:06 +0000 (GMT)
	(envelope-from estartu@etustar.ze.tum.de)
Received: from etustar.ze.tum.de (estartu@localhost.ze.tu-muenchen.de
	[127.0.0.1])
	by etustar.ze.tum.de (8.13.1/8.12.11) with ESMTP id j56EI4fZ001696;
	Mon, 6 Jun 2005 16:18:04 +0200 (CEST)
	(envelope-from estartu@etustar.ze.tum.de)
Received: (from estartu@localhost)
	by etustar.ze.tum.de (8.13.1/8.12.11/Submit) id j56EI0Eg001695;
	Mon, 6 Jun 2005 16:18:00 +0200 (CEST) (envelope-from estartu)
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
Message-ID: <20050606141759.GA1547@augusta.de>
References: <20050603160153.GA56758@cymru.serf.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH"
Content-Disposition: inline
In-Reply-To: <20050603160153.GA56758@cymru.serf.org>
User-Agent: Mutt/1.4.2.1i
Cc: 
Subject: Re: new to python/zope - installation woes
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Jun 2005 14:18:07 -0000


--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--

From owner-freebsd-python@FreeBSD.ORG  Mon Jun  6 20:34:28 2005
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
X-Original-To: freebsd-python@freebsd.org
Delivered-To: freebsd-python@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4B68516A41F
	for <freebsd-python@freebsd.org>; Mon,  6 Jun 2005 20:34:28 +0000 (GMT)
	(envelope-from gedge-lists@yadn.org)
Received: from turner.cymru.serf.org
	(cpc3-cdif5-5-0-cust135.cdif.cable.ntl.com [82.22.34.135])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EF3A143D49
	for <freebsd-python@freebsd.org>; Mon,  6 Jun 2005 20:34:22 +0000 (GMT)
	(envelope-from gedge-lists@yadn.org)
Received: from gedge by turner.cymru.serf.org with local (Exim 4.51 (FreeBSD))
	id 1DfOIf-0003tW-1a; Mon, 06 Jun 2005 21:34:21 +0100
Date: Mon, 6 Jun 2005 21:34:21 +0100
From: Geraint Edwards <gedge-lists@yadn.org>
To: Gerhard Schmidt <estartu@augusta.de>
Message-ID: <20050606203421.GA24268@cymru.serf.org>
References: <20050603160153.GA56758@cymru.serf.org>
	<20050606141759.GA1547@augusta.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050606141759.GA1547@augusta.de>
User-Agent: Mutt/1.4.2.1i
Organisation: Caerdydd, Cymru / Cardiff, Wales
X-MotD: Unix: unzip; strip; touch; finger; mount; fsck; more; yes; umount;
	sleep
Cc: freebsd-python@freebsd.org
Subject: Re: new to python/zope - installation woes
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Jun 2005 20:34:28 -0000

Gerhard Schmidt <estartu@augusta.de> said
		(on Mon, Jun 06, 2005 at 04:17:59PM +0200):
> On Fri, Jun 03, 2005 at 05:01:53PM +0100, Geraint Edwards wrote:
> > 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 
> 8080. If both zope servers are configured for 8080 bar gets 
> never started, because the port is allready used.   

Yup - that's exactly what I'd done wrongly.  Good spot.
 
> try the bin/runzope script in your instance home. It prints the 
> debug infomation to stdout. Is very usefull when debug startup problems.

That's a good tip - thanks.
 
> Thats a problem of your products. Product dependency are quite a 
> pain in the ass. Ask your customer about this Products and install
> them in <instance_home>/Products. 

That's what I've done - this is someone else's job to identify.
 
> Running Zope/Plone without inside knowlegde of Zope is not such 
> a good Idea. You should spend some time and learn about Zope. 

It seems to be running happily now.  I was being
over-optimistic/foolish/naive to rush in without more RTFM'ing.

Thanks again for all the advice.

-- 
Geraint A. Edwards (aka "Gedge")
gedge@yadn.org