Re: [Zope] ftp server deadlocking zope with DeadlockDebugger

2006-05-06 Thread Michael Kaplan

Dieter Maurer wrote:


Michael Kaplan wrote at 2006-5-5 16:09 +0200:
 


...
File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 583, 
in getReferences
  return self._resolveBrains(brains)
File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 716, 
in _uidFor
  return uuid, obj
File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 634, 
in isReferenceable
  return (IReferenceable.isImplementedBy(object) or
File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/_InterfaceClass.py",
 line 111, in isImplementedBy
  return visitImplements(
File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
  return r
File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
  return r
File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
  return r
File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 81, in visitImplements
  elif implements_class == TupleType or type(implements) is TupleType:

Could anybody explain what's wrong here and how to repair it?
   



Stays the part above (maybe partially) accross several
"DeadlockDebugger" invocations (or changes the tail of your
traceback continously)?

In this case, there would seem to be some infinite loop caused
by the AT "ReferenceEngine" (I like it).

 


As you supposed the tail changes if I invoke DeadlockDebugger several times.
Here are 3 more examples besides the one I sent before:

Thread 10 (GET /dirname/manage_FTPlist):
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZServer/PubCore/ZServerPublisher.py", 
line 23, in __init__

   response=response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 386, in publish_module

   environ, debug, request, response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 187, in publish_module_standard

   response = publish(request, module_name, after_list, debug=debug)
 File 
"/home/www/Zope-2.8.5-0/Products/PlacelessTranslationService/PatchStringIO.py", 
line 51, in new_publish

   x = Publish.old_publish(request, module_name, after_list, debug)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 104, in publish

   object=request.traverse(path, validated_hook=validated_hook)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/BaseRequest.py", 
line 272, in traverse

   bpth(object, self)
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", 
line 421, in __before_publishing_traverse__

   stack.append('not_available_lang')
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", 
line 150, in getTranslationLanguages

   return self.getTranslations().keys()
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", 
line 176, in getTranslations

   return self.getCanonical().getTranslations()
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", 
line 196, in isCanonical

   return not bool(self.getReferenceImpl(config.RELATIONSHIP))
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/Referenceable.py", 
line 105, in getReferenceImpl

   return refs
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", 
line 577, in getReferences

   if targetObject:


Thread 10 (GET /dirname/manage_FTPlist):
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZServer/PubCore/ZServerPublisher.py", 
line 23, in __init__

   response=response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 386, in publish_module

   environ, debug, request, response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 187, in publish_module_standard

   response = publish(request, module_name, after_list, debug=debug)
 File 
"/home/www/Zope-2.8.5-0/Products/PlacelessTranslationService/PatchStringIO.py", 
line 51, in new_publish

   x = Publish.old_publish(request, module_name, after_list, debug)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", 
line 104, in publish

   object=request.traverse(path, validated_hook=validated_hook)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/BaseRequest.py", 
line 272, in traverse

   bpth(object, self)
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", 
line 421, in __before_publishing_traverse__

   stack.append('not_available_lang')
 File "/home/www/Zope-2.8.5-0/

[Zope] ftp server deadlocking zope with DeadlockDebugger

2006-05-05 Thread Michael Kaplan

Hello,

about 2 weeks ago I reported about my ftp-problem
(see attached listing).

In the meantime I installed DeadlockDebugger-1.0.tgz
from http://www.zope.org/Members/nuxeo/Products/DeadlockDebugger

Here is the output of this program for the thread that seems 
to be responsible for the deadlock. This happens when I open

a ftp connection to the server, cd to a directory and launch
the 'ls'-command: 


Thread 11 (GET /dirname/manage_FTPlist):
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZServer/PubCore/ZServerPublisher.py",
 line 23, in __init__
   response=response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", line 
386, in publish_module
   environ, debug, request, response)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", line 
187, in publish_module_standard
   response = publish(request, module_name, after_list, debug=debug)
 File 
"/home/www/Zope-2.8.5-0/Products/PlacelessTranslationService/PatchStringIO.py", 
line 51, in new_publish
   x = Publish.old_publish(request, module_name, after_list, debug)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/Publish.py", line 
104, in publish
   object=request.traverse(path, validated_hook=validated_hook)
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/ZPublisher/BaseRequest.py", 
line 272, in traverse
   bpth(object, self)
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", line 
421, in __before_publishing_traverse__
   stack.append('not_available_lang')
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", line 
140, in getTranslation
   return l and l[0] or l
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", line 
176, in getTranslations
   return self.getCanonical().getTranslations()
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", line 
232, in getCanonical
   return ret
 File "/home/www/Zope-2.8.5-0/Products/LinguaPlone/I18NBaseObject.py", line 
196, in isCanonical
   return not bool(self.getReferenceImpl(config.RELATIONSHIP))
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/Referenceable.py", line 105, 
in getReferenceImpl
   return refs
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 
583, in getReferences
   return self._resolveBrains(brains)
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 
716, in _uidFor
   return uuid, obj
 File "/home/www/Zope-2.8.5-0/Products/Archetypes/ReferenceEngine.py", line 
634, in isReferenceable
   return (IReferenceable.isImplementedBy(object) or
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/_InterfaceClass.py",
 line 111, in isImplementedBy
   return visitImplements(
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
   return r
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
   return r
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 86, in visitImplements
   return r
 File 
"/usr/local/mypackages/Zope-2.8.5-final/lib/python/Interface/Implements.py", 
line 81, in visitImplements
   elif implements_class == TupleType or type(implements) is TupleType:

Could anybody explain what's wrong here and how to repair it?

Thanks, Michael


I have a problem with the Medusa FTP server deadlocking Zope completely.

I'm using Zope 2.8.5-final, python 2.3.5, sunos5 with standard port
settings and port-base 1500, e.g.

ZServer.HTTPServer.zhttp_server (Port: 9580)
ZServer.FTPServer.FTPServer (Port: 9521)

I can connect to the ftp server



ftp localhost 9521
 


Connected to localhost.
220  FTP server (Medusa Async V24763 [experimental]) ready.
Name (localhost:root): ***
331 Password required.
Password: **
230 Login successful.
ftp> cd dir
250 CWD command successful.

The standard ftp commands *cd*, *lcd*, *put* and *get* work fine.
 
But if I try to use *ls*, *dir* or *mkdir* Zope seems to arrive in an

infinite loop blocks one cpu completely and has to be restarted.




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ftp server deadlocking zope

2006-04-23 Thread Michael Kaplan
Hello,

I have a problem with the Medusa FTP server deadlocking Zope completely.

I'm using Zope 2.8.5-final, python 2.3.5, sunos5 with standard port
settings and
port-base 1500, e.g.

ZServer.HTTPServer.zhttp_server (Port: 9580)
ZServer.FTPServer.FTPServer (Port: 9521)

I can connect to the ftp server

> ftp localhost 9521
Connected to localhost.
220  FTP server (Medusa Async V24763 [experimental]) ready.
Name (localhost:root): ***
331 Password required.
Password: **
230 Login successful.
ftp> cd dir
250 CWD command successful.

The standard ftp commands *cd*, *lcd*, *put* and *get* work fine.

But if I try to use *ls*, *dir* or *mkdir* Zope seems to arrive in an
infinite loop blocks one cpu completely and has to be restarted.

Thanks in advance,

Michael
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Plone update

2005-09-30 Thread Michael Kaplan

I'm running Plone 2.0.5 with Zope 2.7.7-final and tried to
upgrade to Plone 2.1. A dry-run of portal_migration stopped
with errors :

Products/ATContentTypes/migration/common.py", line 105, in unrestricted_rename
   action ='manage_main')
Copy Error:


Invalid Id





 
 
 !
 
 
 
 
 The id "de_MIGRATION_" is not allowed.
 
 


 
 
 
 
 
 
 




...
...
The upgrade path did NOT reach current version
Migration has failed


What's wrong here? Every hint is welcome.




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Corrupt Data.fs / ZODB

2005-05-16 Thread Michael Kaplan
Sorry, I already wrote nearly the same mail in April but nobody answered.
Since I cannot believe that there is no simple and well known
solution for this problem - which probably affects many zope users -
I try the same posting again. Any help is welcome but it should not be
an option to erase the last 3 months of work and to return to the state
before the mistake.
 original posting _
I just found out that my Data.fs is corrupt. Zope is still running,
and restarting but I'm getting POSKeyErrors if I want to see folder
contents and in many other situations.
I tried to follow the advice in http://www.zopelabs.com/cookbook/1095965033
(I use Zope-2.7.4) but end up with the 5th item there which says
!!
!! 5. Get at the Zope path for the container of the object that's throwing the 
POSKeyError:
!!
!! >>> obj=root.unrestrictedTraverse('/path/to/container')
When I try this I get
  >>> obj=root.unrestrictedTraverse('/folder')
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'root' is not defined
what's wrong here? I don't know what the author of this text means
with '/path/to/container' and what I have to put there for 'root'.
Therefore I used fsrefs.py and got information like
oid 0x030571 Products.CMFCore.ActionInformation.ActionInformation
last updated: 2005-03-14 08:20:34.643177, tid=0x35BE85493CF9666L
refers to invalid object:
  oid 0x0304fa object creation was undone:
  'Products.CMFCore.Expression.Expression'
For this oid I get
  > python
Python 2.4 (#1, Jan 14 2005, 00:24:33)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
  >>> from Zope.Startup.run import configure;configure('/etc/zope.conf')
  >>> from Zope import app
  >>> from ZODB.utils import p64
  >>> from ZODB import POSException
  >>> app = app()
  >>> obj = app._p_jar[p64(0x030571)]
  >>> print obj.getId()
view
  >>> print obj.bobobase_modification_time()
2005/03/14 09:20:34.643 GMT+1
  >>> print obj.meta_type
simple item
  >>> print obj.__ac_local_roles__
None
Could anybody tell me, how I can delete this object from Data.fs?
Will obj.manage_delObjects(id) do the job for me? What parameters
do I have to give to the programm?
Thanks a lot in advance
Michael


begin:vcard
fn:Michael Kaplan
n:Kaplan;Michael
org;quoted-printable:Technische Universit=C3=A4t M=C3=BCnchen;Zentrum Mathematik 
adr;quoted-printable:;;Boltzmannstr.  3;Garching bei M=C3=BCnchen;;85747;Germany 
email;internet:[EMAIL PROTECTED]
title:Dr.
tel;work:+49 89 289 17064
tel;fax:+49 89 289 17457
x-mozilla-html:FALSE
url:http://www.ma.tum.de/~kaplan/
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Corrupt Data.fs

2005-04-28 Thread Michael Kaplan
Hi,
I just found out that my Data.fs is corrupt. Zope is still running,
and restarting but I'm getting POSKeyErrors if a want to see folder
contents and so on.
I tried to follow the advice in http://www.zopelabs.com/cookbook/1095965033
(I use Zope-2.7.4) but end up with
>>> obj=root.unrestrictedTraverse('/folder')
Traceback (most recent call last):
  File "", line 1, in ?
NameError: name 'root' is not defined
what's wrong here?
Therefore I used fsrefs.py and got information like
oid 0x030571 Products.CMFCore.ActionInformation.ActionInformation
last updated: 2005-03-14 08:20:34.643177, tid=0x35BE85493CF9666L
refers to invalid object:
oid 0x0304fa object creation was undone:
'Products.CMFCore.Expression.Expression'
For this oid I get
> python
Python 2.4 (#1, Jan 14 2005, 00:24:33)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from Zope.Startup.run import configure;configure('/etc/zope.conf')
>>> from Zope import app
>>> from ZODB.utils import p64
>>> from ZODB import POSException
>>> app = app()
>>> obj = app._p_jar[p64(0x030571)]
>>> print obj.getId()
view
>>> print obj.bobobase_modification_time()
2005/03/14 09:20:34.643 GMT+1
>>> print obj.meta_type
simple item
>>> print obj.__ac_local_roles__
None
Could anybody tell me, how I can delete this object from Data.fs?
Will obj.manage_delObjects(id) do the job for me? What parameters
do I have to give to the programm?
Thanks a lot in advance
  Michael

begin:vcard
fn:Michael Kaplan
n:Kaplan;Michael
org;quoted-printable:Technische Universit=C3=A4t M=C3=BCnchen;Zentrum Mathematik 
adr;quoted-printable:;;Boltzmannstr. ;Garching bei M=C3=BCnchen;;85747;Germany 
email;internet:[EMAIL PROTECTED]
title:Dr.
tel;work:+49 89 289 17064
tel;fax:+49 89 289 17457
url:http://triton.ma.tum.de/~kaplan/
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )