Hi,

2011/8/1 Jeremy McSpadden <[email protected]>:
> " timeout: timed out "
> iptables blocking a port? All services running ?

No, freebsd for the most part uses either pf or ipfw ... iptables are
what most linux uses. But its not a firewall issue. Everything are
open out into the world and local.

But its seems to communicate with the celery broker almost fine.
[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

When going back in the utils/mail/message.py line 289:
line 288:        sa_learn_cmd = ['/usr/local/bin/sa-learn', learn, self.path]
line 289:        pipe = Popen(sa_learn_cmd, stdout=PIPE, stderr=PIPE)

root [/usr/local/www/baruwa/utils/mail]# whereis sa-learn
sa-learn: /usr/local/bin/sa-learn /usr/local/man/man1/sa-learn.1.gz

So the path to sa-learn is right ... this makes me wonder even more
what might be the issue here.

> --
> Jeremy McSpadden
> Flux Labs, Inc
> http://www.fluxlabs.net
> Endless Solutions
> Office : 850-588-4626
> Cell : 850-890-2543
> Fax : 850-254-2955
>
> On Aug 1, 2011, at 4:03 PM, "Mikael Syska" <[email protected]> wrote:
>
> Hi,
>
> Not really sure where to start look.
>
> 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 ... :-)
>
> mvh
> _______________________________________________
> Baruwa mailing list
> [email protected]
> http://lists.baruwa.org/mailman/listinfo/baruwa
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>
>
> _______________________________________________
> Baruwa mailing list
> [email protected]
> http://lists.baruwa.org/mailman/listinfo/baruwa
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>
>

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

Reply via email to