From owner-freebsd-python@FreeBSD.ORG  Fri Jun  3 16:02:01 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 D49F216A41C
	for <freebsd-python@freebsd.org>; Fri,  3 Jun 2005 16:02:01 +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 64BBB43D54
	for <freebsd-python@freebsd.org>; Fri,  3 Jun 2005 16:01:54 +0000 (GMT)
	(envelope-from gedge-lists@yadn.org)
Received: from gedge by turner.cymru.serf.org with local (Exim 4.51 (FreeBSD))
	id 1DeEcL-000O80-Mv
	for freebsd-python@freebsd.org; Fri, 03 Jun 2005 17:01:53 +0100
Date: Fri, 3 Jun 2005 17:01:53 +0100
From: Geraint Edwards <gedge-lists@yadn.org>
To: FreeBSD python list <freebsd-python@freebsd.org>
Message-ID: <20050603160153.GA56758@cymru.serf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
Organisation: Caerdydd, Cymru / Cardiff, Wales
X-MotD: "Progress is that which has caused Usenet to go from smart people in
	front of dumb terminals,
	to dumb people in front of smart terminals" -- sig
Subject: 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: Fri, 03 Jun 2005 16:02:02 -0000

Hi,

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.

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.

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?).

Anyway, I scrolled back and found the zope instructions and ran
	make instance INSTANCENAME="foo"
and	make instance INSTANCENAME="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="YES"
	zope_instances="/usr/local/www/Zope/foo /usr/local/www/Zope/bar"
and ran "zope.sh start" - so far so good.

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

After *much* playing with Apache to get it to proxy for zope,
I was getting bitten by the annoying
	<base href="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.

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

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:

======================================================================
Site Error

An error was encountered while publishing this resource.

Error Type: ImportError
Error Value: No module named CMFUserTrackTool.UserTrackTool

Troubleshooting Suggestions

    * 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 error.

For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you for your patience.
======================================================================

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.

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.

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.

I think I'll go to bed for an hour, and let my head rest.

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?

Any help appreciated.

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

From owner-freebsd-python@FreeBSD.ORG  Fri Jun  3 17:25:33 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 31C9016A41C
	for <freebsd-python@freebsd.org>; Fri,  3 Jun 2005 17:25:33 +0000 (GMT)
	(envelope-from list@zettai.net)
Received: from a.mx.zettai.net (beta.zettai.net [205.234.172.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DD2D643D1F
	for <freebsd-python@freebsd.org>; Fri,  3 Jun 2005 17:25:32 +0000 (GMT)
	(envelope-from list@zettai.net)
Received: (qmail 21651 invoked by uid 89); 3 Jun 2005 17:25:32 -0000
Received: by simscan 1.1.0 ppid: 21595, pid: 21646, t: 0.2592s
	scanners: attach: 1.1.0 clamav: 0.83/m:31/d:852
Received: from unknown (HELO ?192.168.0.2?) (george@zettai.net@200.116.255.166)
	by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 3 Jun 2005 17:25:31 -0000
Message-ID: <42A09289.6010607@zettai.net>
Date: Fri, 03 Jun 2005 12:25:29 -0500
From: George Donnelly <list@zettai.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Geraint Edwards <gedge-lists@yadn.org>
References: <20050603160153.GA56758@cymru.serf.org>
In-Reply-To: <20050603160153.GA56758@cymru.serf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: FreeBSD python list <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
Reply-To: list@zettai.net
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: Fri, 03 Jun 2005 17:25:33 -0000

Geraint Edwards wrote:
hi

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

zope and plone are medium-level maintenance, so you might find them 
difficult to forget about. ;)

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

FreeBSD rocks, but Zope/Plone from ports is not optimal. You should 
install those from source for a production environment

> 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?).

at the end of the install process, if you give the command as "make 
install clean", it will show you all the affected ports.

Try setting your scrollback buffer higher in your terminal app.

> After *much* playing with Apache to get it to proxy for zope,
> I was getting bitten by the annoying
> 	<base href="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.

use rewrite rules.

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

hm, you might have something misconfigured there.

> Error Type: ImportError
> Error Value: No module named CMFUserTrackTool.UserTrackTool

The zexp includes an object that depends on the UserTrackTool, you can 
get CMFMessage from the Plone collective, download and install that into 
your Products directory to fix that.

> restarted, and now my instance dies - with nothing in the logs.

is the instance in debug mode? try turning that to off in 
instance_home/etc/zope.conf

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

UserTrack comes with CMFMessage and/or CMFUserTrack.

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

Zope/Plone has its complexities, but installing them from source should 
make things slightly easier.

good luck.


-- 
<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Complete Zope Hosting ~ Managed Servers ~ Plone Hosting Solutions
Y/AIM: zettainet ~ Jabber: info@zettai.net ~ Sales: (866) 408-5395

From owner-freebsd-python@FreeBSD.ORG  Sat Jun  4 15:19:54 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 236D916A41C
	for <freebsd-python@freebsd.org>; Sat,  4 Jun 2005 15:19:54 +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 B258643D53
	for <freebsd-python@freebsd.org>; Sat,  4 Jun 2005 15:19:50 +0000 (GMT)
	(envelope-from gedge-lists@yadn.org)
Received: from gedge by turner.cymru.serf.org with local (Exim 4.51 (FreeBSD))
	id 1DeaRA-000Njr-M4; Sat, 04 Jun 2005 16:19:48 +0100
Date: Sat, 4 Jun 2005 16:19:48 +0100
From: Geraint Edwards <gedge-lists@yadn.org>
To: George Donnelly <list@zettai.net>
Message-ID: <20050604151948.GD92755@cymru.serf.org>
References: <20050603160153.GA56758@cymru.serf.org>
	<42A09289.6010607@zettai.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <42A09289.6010607@zettai.net>
User-Agent: Mutt/1.4.2.1i
Organisation: Caerdydd, Cymru / Cardiff, Wales
X-MotD: Reality is just a convenient measure of complexity. -- Alvy Ray Smith
Cc: FreeBSD python list <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: Sat, 04 Jun 2005 15:19:54 -0000

George Donnelly <list@zettai.net> said
		(on Fri, Jun 03, 2005 at 12:25:29PM -0500):
> zope and plone are medium-level maintenance, so you might find them 
> difficult to forget about. ;)

Well, that's already the case!  Thanks for the heads-up, though.

> FreeBSD rocks, but Zope/Plone from ports is not optimal. You should 
> install those from source for a production environment

The port's source code changes are minimal, from what I can
tell, so I'm not convinced that this will make a big difference.
I've only been using ports on FreeBSD for the last few years,
to help keep so many things up-to-date (portupgrade), so I'll
stick with it for now.  Noted, however.

> so I don't necessarily realise that zope is
> >installed (hey, plone is what I wanted, right?).
> 
> at the end of the install process, if you give the command as "make 
> install clean", it will show you all the affected ports.

Thanks.  I tend to browse the Makefile, files/* and pkg* (um, all
port files!), just in case I've missed anything.  This was a
little gripe. :)

> > [apache]
> use rewrite rules.

I was - in proxying mode - and have them working a treat.  Ta.
 
> >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
> 
> hm, you might have something misconfigured there.

I did indeed - me.  I was confusing instances with virtual
hosting (d'oh!).  I suspect I had foo and bar on the same ports
(e.g. 8080) - that'd do it. ;-) So, I deleted bar and have my
"virtual hosts" in sub-dirs of foo.  Gee, such an obvious mistake.

This virtual hosting is odd.
 . o O ( Hmm-mm, you just works... but you sure is ugly! )

> >Error Value: No module named CMFUserTrackTool.UserTrackTool
> 
> The zexp includes an object that depends on the UserTrackTool, you can 
> get CMFMessage from the Plone collective, download and install that into 
> your Products directory to fix that.

I did.  It did.  Many, many thanks.  That site will be handy
(even though "the plone collective" sounds a little spooky).

> good luck.

Much appreciated.

I now have the front page of the imported site working, but
clicking on a link causes a "Site error" - "attribute error"
which ultimately cites

	AttributeError: i18nlayer_check4tab
	(Also, an error occurred while attempting to render the standard error message.)

So, I've sent that back to the web-developers to see if they
can offer any insight.

Thanks again - beginning to grok zope, now.

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

From owner-freebsd-python@FreeBSD.ORG  Sat Jun  4 16:31:57 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 50DA416A41C
	for <freebsd-python@freebsd.org>; Sat,  4 Jun 2005 16:31:57 +0000 (GMT)
	(envelope-from list@zettai.net)
Received: from a.mx.zettai.net (beta.zettai.net [205.234.172.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DA7B943D49
	for <freebsd-python@freebsd.org>; Sat,  4 Jun 2005 16:31:56 +0000 (GMT)
	(envelope-from list@zettai.net)
Received: (qmail 56244 invoked by uid 89); 4 Jun 2005 16:31:56 -0000
Received: by simscan 1.1.0 ppid: 56231, pid: 56240, t: 0.1325s
	scanners: attach: 1.1.0 clamav: 0.83/m:31/d:852
Received: from unknown (HELO ?192.168.0.2?) (george@zettai.net@200.116.255.166)
	by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Jun 2005 16:31:56 -0000
Message-ID: <42A1D77A.3000708@zettai.net>
Date: Sat, 04 Jun 2005 11:31:54 -0500
From: George Donnelly <list@zettai.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Geraint Edwards <gedge-lists@yadn.org>
References: <20050603160153.GA56758@cymru.serf.org>
	<42A09289.6010607@zettai.net>
	<20050604151948.GD92755@cymru.serf.org>
In-Reply-To: <20050604151948.GD92755@cymru.serf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: FreeBSD python list <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
Reply-To: list@zettai.net
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: Sat, 04 Jun 2005 16:31:57 -0000

Geraint Edwards wrote:


> I now have the front page of the imported site working, but
> clicking on a link causes a "Site error" - "attribute error"
> which ultimately cites
> 
> 	AttributeError: i18nlayer_check4tab
> 	(Also, an error occurred while attempting to render the standard error message.)

install i18nLayer

you might want to ask your client for a list of what products they have 
installed so you can install them all at once.

-- 
<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Complete Zope Hosting ~ Managed Servers ~ Plone Hosting Solutions
Y/AIM: zettainet ~ Jabber: info@zettai.net ~ Sales: (866) 408-5395