[Zope-dev] Zope and Cygwin

Cesar Canassa cesar.canassa at gmail.com
Fri Mar 27 18:56:00 EDT 2009


One more question.

Does Zope requires that a "root" user should exist on system in order to run
properly? I am asking this because when I try to run Zope as a daemon I got
this:

$ ./plonectl start
instance: . . . . . . . . . . . . . . . . . . . Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
No handlers could be found for logger "root"
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
....

It continues spamming this until I kill the process, the server does not
start neither. I suspect that this is happening because of the lack of a
"root" user on my Cygwin installation.

If I use the runzope script it works ok thought.

Thanks,
Cesar

2009/3/27 Cesar Canassa <cesar.canassa at gmail.com>

> Thanks!
>
> I replaced the code with the one from this link and compiled it again,
> worked like a charm :-)
>
> http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py
>
>
> Regards,
> Cesar Canassa
>
> 2009/3/26 Ross Patterson <me at rpatterson.net>
>
> Cesar Canassa <cesar.canassa at gmail.com> writes:
>>
>> > I am trying to run Zope using cygwin and Windows XP. I started by
>> downloading the
>> > Python 2.4.6 sources and compiling it with:
>> >
>> > ./configure
>> > make && make install
>> >
>> > After that I downloaded the Zope-2.11.2-final sources and compiled it
>> with:
>> >
>> > ./configure --with-python=/usr/local/bin/python
>> > make && make install
>> >
>> > The compilation went smoothly so I created a instance and started the
>> server with
>> > the runzope script. The script returned this error:
>> >
>> > $ ./runzope
>> > Traceback (most recent call last):
>> >   File "/opt/Zope-2.11/lib/python/Zope2/Startup/run.py", line 56, in ?
>> >     run()
>> >   File "/opt/Zope-2.11/lib/python/Zope2/Startup/run.py", line 21, in run
>> >     starter.prepare()
>> >   File "/opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py", line 109,
>> in prepare
>> >     self.startZope()
>> >   File "/opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py", line 300,
>> in
>> > startZope
>> >     Zope2.startup()
>> >   File "/opt/Zope-2.11/lib/python/Zope2/__init__.py", line 47, in
>> startup
>> >     _startup()
>> >   File "/opt/Zope-2.11/lib/python/Zope2/App/startup.py", line 105, in
>> startup
>> >     Globals.VersionNameName)
>> >   File "/opt/Zope-2.11/lib/python/App/ZApplication.py", line 32, in
>> __init__
>> >     if not root.has_key(name):
>> >   File "/opt/Zope-2.11/lib/python/ZODB/Connection.py", line 811, in
>> setstate
>> >     self._setstate(obj)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/Connection.py", line 870, in
>> _setstate
>> >     self._reader.setGhostState(obj, p)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/serialize.py", line 604, in
>> setGhostState
>> >     state = self.getState(pickle)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/serialize.py", line 597, in
>> getState
>> >     return unpickler.load()
>> >   File "/opt/Zope-2.11/lib/python/ZODB/serialize.py", line 471, in
>> > _persistent_load
>> >     return self.load_oid(reference)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/serialize.py", line 537, in
>> load_oid
>> >     return self._conn.get(oid)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/Connection.py", line 245, in get
>> >     obj = self._reader.getGhost(p)
>> >   File "/opt/Zope-2.11/lib/python/ZODB/serialize.py", line 591, in
>> getGhost
>> >     return klass.__new__(klass, *args)
>> > TypeError: Acquirer.__new__(Application) is not safe, use
>> > Persistence.Persistent.__new__()
>> >
>> > Am I doing something wrong? Does anyone knows if it's possible to
>> compile Zope
>> > with Cygwin?
>>
>> Maybe the following can help:
>>
>> http://rpatterson.net/software/products.cygwinpatch
>> http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py
>> http://mail.zope.org/pipermail/zope/2005-December/163636.html
>>
>> Ross
>>
>> _______________________________________________
>> Zope-Dev maillist  -  Zope-Dev at zope.org
>> http://mail.zope.org/mailman/listinfo/zope-dev
>> **  No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope )
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-dev/attachments/20090327/b1c56862/attachment-0001.html 


More information about the Zope-Dev mailing list