[Zope] Using ZServer with Apache
Jim Cain
jec@mgmt-inc.com
Fri, 18 Jun 1999 01:15:23 -0400
--On Thu, Jun 17, 1999 14:18 -0400 Jim Cain <jec@mgmt-inc.com> wrote:
> --On Thursday, June 17, 1999, 9:33 AM -0700 Amos Latteier
> <amos@aracnet.com> wrote:
>
>> At 11:37 PM 6/16/99 -0400, Jim Cain wrote:
>>> I have a Zope.cgi with INSTANCE_NAME that points to where I keep my
>>> database, but when I run ZServer with the following:
>>>
>>> python z2.py -p /home/httpd/cgi-bin/at/Zope.cgi -2 -w ""
>>>
>>> it's still referring to the var directory at the Zope installation
>>> instead of the one at INSTANCE_NAME. How do I get this to work?
>>
>> I think you need to use INSTANCE_HOME not INSTANCE_NAME.
>>
>> -Amos
>>
>> P.S. your ZServer command line options look good.
>
> Yes, I mistyped that. It is indeed INSTANCE_HOME in the Zope.cgi, but it
> doesn't appear to have an effect. I added it to the command line and it
> worked fine, like this:
>
> python z2.py -p /home/httpd/cgi-bin/at/Zope.cgi -2 -w "" \
> INSTANCE_HOME=/home/httpd/zope/at
>
> Now I notice that the process dies now and then. Is the -Z managerial
> process supposed to help out with this?
>
> Jim
Now I'm having another problem. Web browsing works fine, and when I connect
with my ftp client, I see the object listing in the topmost object.
However, when I attempt to open one of the folders, I get the following
error from ZServer:
exception in trigger thunk: (exceptions.TypeError:illegal argument type for
built-in operation
[/usr/local/src/Zope/ZServer/medusa/select_trigger.py|handle_read|82]
[/usr/local/src/Zope/ZServer/FTPResponse.py|apply|127]
[/usr/local/src/Zope/ZServer/FTPServer.py|listdir_completion|237]
[/usr/local/src/Zope/ZServer/medusa/filesys.py|unix_longify|398])
and it fails to answer my ftp client's request for an ls. ZServer doesn't
quit, but it gets this same error for every request after this.
Jim