Re: [SOGo] OCSManager goes 100% cpu

2015-10-13 Thread Gerald Brandt



On 2015-10-13 09:25 AM, Gerald Brandt wrote:

Hi,

A single OCSManager uses 100% CPU on a regular basis, resulting in 
Outlook eventually not getting emails.


The OCS Manager log file shows this:


2015-10-13 06:02:11,313 DEBUG [paste.httpserver.ThreadPool] 
[MainThread] Added task (0 tasks queued)
2015-10-13 06:02:11,315 INFO [openchange.web.auth.NTLMAuthHandler] 
[worker 1319] client did not pass auth cookie
2015-10-13 06:02:11,315 DEBUG [openchange.web.auth.NTLMAuthHandler] 
[worker 1319] ntlm_transaction (22548)


Exception happened during processing of request from ('127.0.0.1', 57924)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
1068, in process_request_in_thread

self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
442, in handle

BaseHTTPRequestHandler.handle(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
437, in handle_one_request

self.wsgi_execute()
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
287, in wsgi_execute

self.wsgi_start_response)
  File "/usr/lib/python2.7/dist-packages/paste/cascade.py", line 130, 
in __call__
  File "/usr/lib/python2.7/dist-packages/paste/registry.py", line 379, 
in __call__
  File 
"/usr/lib/python2.7/dist-packages/ocsmanager/config/middleware.py", 
line 77, in ntlm_env_setter
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 600, in __call__

= connection.ntlm_transaction(client_id, ntlm_payload)
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 455, in ntlm_transaction

self._send_to_server(payload)
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 476, in _send_to_server

self._make_connection()
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 518, in _make_connection

lockf = open(lock_filename, "r")
IOError: [Errno 24] Too many open files: 
'/var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock'


and over 158 'worker threads' for a single Outlook user, and Outlook 
stops getting emails.


Restarting ocsmanager brings everything back.

Gerald


I forgot to add, this is under Ubuntu 14.04 using the Inverse repo.

Gerald

--
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] OCSManager goes 100% cpu

2015-10-13 Thread Gerald Brandt

Hi,

A single OCSManager uses 100% CPU on a regular basis, resulting in 
Outlook eventually not getting emails.


The OCS Manager log file shows this:


2015-10-13 06:02:11,313 DEBUG [paste.httpserver.ThreadPool] [MainThread] 
Added task (0 tasks queued)
2015-10-13 06:02:11,315 INFO  [openchange.web.auth.NTLMAuthHandler] 
[worker 1319] client did not pass auth cookie
2015-10-13 06:02:11,315 DEBUG [openchange.web.auth.NTLMAuthHandler] 
[worker 1319] ntlm_transaction (22548)


Exception happened during processing of request from ('127.0.0.1', 57924)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
1068, in process_request_in_thread

self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
self.handle()
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
442, in handle

BaseHTTPRequestHandler.handle(self)
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
437, in handle_one_request

self.wsgi_execute()
  File "/usr/lib/python2.7/dist-packages/paste/httpserver.py", line 
287, in wsgi_execute

self.wsgi_start_response)
  File "/usr/lib/python2.7/dist-packages/paste/cascade.py", line 130, 
in __call__
  File "/usr/lib/python2.7/dist-packages/paste/registry.py", line 379, 
in __call__
  File 
"/usr/lib/python2.7/dist-packages/ocsmanager/config/middleware.py", line 
77, in ntlm_env_setter
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 600, in __call__

= connection.ntlm_transaction(client_id, ntlm_payload)
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 455, in ntlm_transaction

self._send_to_server(payload)
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 476, in _send_to_server

self._make_connection()
  File 
"/usr/lib/python2.7/dist-packages/openchange/web/auth/NTLMAuthHandler.py", 
line 518, in _make_connection

lockf = open(lock_filename, "r")
IOError: [Errno 24] Too many open files: 
'/var/cache/ntlmauthhandler/ntlm-127.0.0.1.lock'


and over 158 'worker threads' for a single Outlook user, and Outlook 
stops getting emails.


Restarting ocsmanager brings everything back.

Gerald

--
users@sogo.nu
https://inverse.ca/sogo/lists