[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Condor, Soap, and Python: "Incoming packet header unrecognized" error



We (finally) figured this out:

Our old central manager was built as a submit machine and central manager. Our new system was only built as a central manager. When we enabled soap, the central manager gave no indication that it would be unable to use the API. This is probably obvious to most users, but confused us quite a bit because we had never implemented a machine with a dedicated CM. We were also confused because condor_status -schedd -constraint "HasSOAPInterface=?=True" would return the name of our central manager. It might be a good idea to update the wiki with this information (I would, but don't have an account)

Thanks,
John 


On Thu, Dec 20, 2012 at 2:45 PM, Jordan Williamson <jordan.williamson@xxxxxxxxxxx> wrote:
Hi,

I'm trying to set up SOAP on Condor 7.8.6 for use with python, but I'm getting the following error (from SchedLog):

12/20/12 19:41:14 IO: Incoming packet header unrecognized
12/20/12 19:41:14 DaemonCore: Can' t receive command request from 127.0.0.1 (perhaps a timeout?)


whenever I run this python script:

#!/usr/bin/env python

from suds.client import Client
import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)

collector_url = 'file:/home/condor/condor/lib/webservice/'
#collector_url = raw_input("Collector url: ")

if __name__ == '__main__':
    url = "" % collector_url
    collector = Client(url, cache=None, location="http://localhost:1984")

    print collector.service.getPlatformString()

Here's part of my local config file:

ENABLE_SOAP = True
ENABLE_WEB_SERVER = TRUE
WEB_ROOT_DIR = $(RELEASE_DIR)/lib/webservice
ALLOW_SOAP = *
QUEUE_ALL_USERS_TRUSTED = True
SCHEDD_ARGS = -p 1984
HOSTALLOW_WRITE = *
HOSTALLOW_READ = *

Thanks,
Jordan

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/