Hi,

That the output from:
baruwa-admin runserver ip:port

But that seems to be a celery error when trying to run the following
as also posted in the response to Jeremy McSpadden.

>From the /var/log/celery/celeryd.log file
[2011-08-01 23:04:29,586: INFO/MainProcess] Got task from broker:
process-quarantine[ecef2558-5877-41a6-8710-a1becf62f9bb]
[2011-08-01 23:04:29,587: INFO/PoolWorker-2]
process-quarantine[ecef2558-5877-41a6-8710-a1becf62f9bb]: Bulk
Processing 1 quarantined messages
[2011-08-01 23:04:29,656: ERROR/MainProcess] Task
process-quarantine[ecef2558-5877-41a6-8710-a1becf62f9bb] raised
exception: OSError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/celery/execute/trace.py",
line 34, in trace
    return cls(states.SUCCESS, retval=fun(*args, **kwargs))
  File "/usr/local/lib/python2.6/site-packages/celery/task/base.py",
line 241, in __call__
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/baruwa/messages/tasks.py",
line 192, in run
    result['learn'] = processor.learn(job['salearn_as'])
  File "/usr/local/lib/python2.6/site-packages/baruwa/utils/mail/message.py",
line 289, in learn
    pipe = Popen(sa_learn_cmd, stdout=PIPE, stderr=PIPE)
  File "/usr/local/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/local/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
None

So I'm in doubt about the above, since the sa-learn exist in the path
given in "utils/mail/message.py" line 288.


On Tue, Aug 2, 2011 at 12:03 AM, Andrew Colin Kissa
<[email protected]> wrote:
>
> On 01 Aug 2011, at 11:02 PM, Mikael Syska wrote:
>
>> I get the following exception when trying to use "sa-learn":
>> ----------------------------------------
>> Exception happened during processing of request from ('x.x.x.x', 57117)
>> Traceback (most recent call last):
>> File "/usr/local/lib/python2.6/SocketServer.py", line 283, in
>> _handle_request_noblock
>>  self.process_request(request, client_address)
>> File "/usr/local/lib/python2.6/SocketServer.py", line 309, in process_request
>>  self.finish_request(request, client_address)
>> File "/usr/local/lib/python2.6/SocketServer.py", line 322, in finish_request
>>  self.RequestHandlerClass(request, client_address, self)
>> File 
>> "/usr/local/lib/python2.6/site-packages/django/core/servers/basehttp.py",
>> line 570, in __init__
>>  BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
>> File "/usr/local/lib/python2.6/SocketServer.py", line 617, in __init__
>>  self.handle()
>> File 
>> "/usr/local/lib/python2.6/site-packages/django/core/servers/basehttp.py",
>> line 610, in handle
>>  self.raw_requestline = self.rfile.readline()
>> File "/usr/local/lib/python2.6/socket.py", line 444, in readline
>>  data = self._sock.recv(self._rbufsize)
>> timeout: timed out
>> ----------------------------------------
>> [01/Aug/2011 22:52:58] "POST /messages/view/B4D30194A98.ACF17/
>> HTTP/1.1" 500 79794
>>
>> It seems that its trying to do a lookup on a hostname maybe ... but
>> what hostname ?
>>
>> It got to be something simple I have missed somewhere ... :-)
>
> Is that the full traceback as that does not indicate what part of the code
> is triggering the error.
>
> --
> Baruwa - www.baruwa.org
>
> _______________________________________________
> Baruwa mailing list
> [email protected]
> http://lists.baruwa.org/mailman/listinfo/baruwa
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>

mvh
_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to