[Zope] XML-RPC problems after upgrade

Paulo Eduardo Neves usenet2@samba-choro.com.br
Tue, 17 Dec 2002 11:15:44 -0200


I've just upgrade from 2.4.3 to 2.6. In the process, I've also changed 
some things (e.g., changed from SiteRoot/SiteAccess to VHM). My problem 
now is that XML-RPC calls aren't working any more. I always get a /RPC2 
NotFound error.  Here is the output of calling a simple python script:

################################333
python
Python 2.1.3 (#4, May 23 2002, 15:13:21)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
Type "copyright", "credits" or "license" for more information.
Welcome to Lazy Python.  Type "help LazyPython" for help.
>>> import xmlrpclib
>>> s = xmlrpclib.Server('http://www.samba-choro.com.br')
>>> s.testXMLRPC()
------------------------------------------------------------
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 986, 
in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1239, 
in __request
    verbose=self.__verbose
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1037, 
in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 1138, 
in _parse_response
    return u.close()
  File "/usr/local/lib/python2.1/site-packages/xmlrpclib.py", line 703, 
in close
    raise apply(Fault, (), self._stack[0])
Fault: <Fault -2: 'Unexpected Zope error value: NotFound -  \n \n\n \n 
\n \n\n \n   Site Error \n   An error was encountered while publishing 
this resource.\n   \n    Resource not found  \n\n  Sorry, the requested 
resource does not exist. Check the URL and try again.   Resource:  
http://www.samba-choro.com.br/RPC2 \n   \n\n   Troubleshooting 
Suggestions \n\n   \n   The URL may be incorrect. \n   The parameters 
passed to this resource may be incorrect. \n   A resource that this 
resource relies on may be\n      encountering an error. \n   \n\n   For 
more detailed information about the error, please\n  refer to the HTML 
source for this page.\n   \n\n   If the error persists please contact 
the site maintainer.\n  Thank you for your patience.\n   \n  \n '>

###########################

If I try to call other sites with Zope 2.6.0 (e.g. Zope.org) I also get 
the same XMLRPC error (/RPC2 NotFound). Does anybody knows how can I 
fix it?

I'm running Zope behind Apache, using Virtual Host Monster.

regards,
-- 
Paulo Eduardo Neves
Agenda do Samba & Choro, o boteco virtual do samba e choro
http://www.samba-choro.com.br