[Pulp-list] Mongodb crashes using regex filter

Buddy Ruddy buddy.ruddy at synarc.com
Fri Feb 21 01:29:17 UTC 2014


Regarding this issue, I installed pcre-7.8-6.el6.x86_64 and stop/started mongod and it started right up.
Rhel 6.3 as well
mongodb-2.4.6-1.el6.x86_64
pulp-server-2.3.1-1.el6.noarch

------
I have also experienced this issue. I believe it happened more often when my file system was nearly full, but it's been a few months since I tried to use it.

Sent from my iPhone

> On Nov 28, 2013, at 9:31 AM, Florian Sachs <florian sachs bmlvs gv at> wrote:
>
> Hi,
>
> Using "--match" when searching the contents of a repository crashes mongodb.
>
> In mongodb.log, the following line can be seen:
> /usr/bin/mongod: symbol lookup error: /usr/bin/mongod: undefined symbol: _ZN7pcrecpp2RE4InitEPKcPKNS_10RE_OptionsE
>
> When calling "service mongod stop ; service mongod start" it works again.
>
> Googling the error, I found some links telling me - at least for Ubuntu - , that it is connected to libpcre - which is installed on my RHEL Machine....
>
> The command used, was this one:
>
> #> pulp-admin rpm repo content rpm --repo-id=se2ve-test  --match "name=ssh.*"
> An internal error occurred on the Pulp server. More information can be found in the client log file ~/.pulp/admin.log.
>
> Environment:
> * RHEL 6.3, x86_64
> * mongodb-2.2.3-4.el6.x86_64 from epel
> * pulp-server-2.1.3-1.el6.noarch
>
> best regards,
> florian
>
>
> ==== server_calls.log ====
> 2013-11-28 15:16:44,715 - INFO - POST request to /pulp/api/v2/repositories/se2ve-test/search/units/ with parameters {"criteria": {"type_ids": ["rpm"], "filters": {"unit": {"name": {"$regex": "ssh.*"}}}}}
> 2013-11-28 15:16:44,715 - INFO - Response status : 500
>
> ==== pulp.log ====
> 2013-11-28 15:16:44,652 pulp.server.webservices.middleware.exception:ERROR: connection closed
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/exception.py", line 44, in __call__
>    return self.app(environ, start_response)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/postponed.py", line 39, in __call__
>    return self.app(environ, start_response)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 279, in wsgi
>    result = self.handle_with_processors()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in _handle_with_processors
>    return process(self.processors)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
>    return handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
>    result = handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 25, in process
>    return self.handle()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
>    return self._delegate(fn, self.fvars, args)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 422, in _delegate
>    return f()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 430, in <lambda>
>    f = lambda: self._delegate_sub_application(pat, what)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 455, in _delegate_sub_application
>    return app.handle_with_processors()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in _handle_with_processors
>    return process(self.processors)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
>    return handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
>    result = handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 25, in process
>    return self.handle()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
>    return self._delegate(fn, self.fvars, args)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
>    return handle_class(cls)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
>    return tocall(*args)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 231, in _auth_decorator
>    value = method(self, *args, **kwargs)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py", line 1029, in POST
>    units = manager.get_units_by_type(repo_id, type_id, criteria=criteria)
>  File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association_query.py", line 331, in get_units_by_type
>    units = list(cursor)
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 889, in _send_message_with_response
>    raise AutoReconnect(str(e))
> AutoReconnect: connection closed
> 2013-11-28 15:16:44,702 pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/exception.py", line 44, in __call__
>    return self.app(environ, start_response)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/middleware/postponed.py", line 39, in __call__
>    return self.app(environ, start_response)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 279, in wsgi
>    result = self.handle_with_processors()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in _handle_with_processors
>    return process(self.processors)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
>    return handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
>    result = handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 25, in process
>    return self.handle()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
>    return self._delegate(fn, self.fvars, args)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 422, in _delegate
>    return f()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 430, in <lambda>
>    f = lambda: self._delegate_sub_application(pat, what)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 455, in _delegate_sub_application
>    return app.handle_with_processors()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 26, in _handle_with_processors
>    return process(self.processors)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 566, in processor
>    return handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in process
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 581, in processor
>    result = handler()
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 23, in <lambda>
>    return p(lambda : process(processors))
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/application.py", line 25, in process
>    return self.handle()
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
>    return self._delegate(fn, self.fvars, args)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
>    return handle_class(cls)
>  File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
>    return tocall(*args)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 231, in _auth_decorator
>    value = method(self, *args, **kwargs)
>  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py", line 1029, in POST
>    units = manager.get_units_by_type(repo_id, type_id, criteria=criteria)
>  File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/unit_association_query.py", line 331, in get_units_by_type
>    units = list(cursor)
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 889, in _send_message_with_response
>    raise AutoReconnect(str(e))
> AutoReconnect: connection closed
> 2013-11-28 15:17:13,341 pulp.server.dispatch.scheduler:CRITICAL: Unhandled exception in scheduler dispatch: AutoReconnect('could not connect to localhost:27017: [Errno 111] Connection refused',)
> 2013-11-28 15:17:13,342 pulp.server.dispatch.scheduler:ERROR: could not connect to localhost:27017: [Errno 111] Connection refused
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 76, in __dispatch
>    self._run_scheduled_calls()
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 91, in _run_scheduled_calls
>    for call_group in self._get_scheduled_call_groups():
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 126, in _get_scheduled_call_groups
>    for scheduled_call in self.scheduled_call_collection.find(query):
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 880, in _send_message_with_response
>    sock = self.__socket()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 674, in __socket
>    host, port = self.__find_node()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 659, in __find_node
>    raise AutoReconnect(', '.join(errors))
> AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
> 2013-11-28 15:17:43,356 pulp.server.dispatch.scheduler:CRITICAL: Unhandled exception in scheduler dispatch: AutoReconnect('could not connect to localhost:27017: [Errno 111] Connection refused',)
> 2013-11-28 15:17:43,357 pulp.server.dispatch.scheduler:ERROR: could not connect to localhost:27017: [Errno 111] Connection refused
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 76, in __dispatch
>    self._run_scheduled_calls()
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 91, in _run_scheduled_calls
>    for call_group in self._get_scheduled_call_groups():
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 126, in _get_scheduled_call_groups
>    for scheduled_call in self.scheduled_call_collection.find(query):
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 880, in _send_message_with_response
>    sock = self.__socket()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 674, in __socket
>    host, port = self.__find_node()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 659, in __find_node
>    raise AutoReconnect(', '.join(errors))
> AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
> 2013-11-28 15:18:13,361 pulp.server.dispatch.scheduler:CRITICAL: Unhandled exception in scheduler dispatch: AutoReconnect('could not connect to localhost:27017: [Errno 111] Connection refused',)
> 2013-11-28 15:18:13,362 pulp.server.dispatch.scheduler:ERROR: could not connect to localhost:27017: [Errno 111] Connection refused
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 76, in __dispatch
>    self._run_scheduled_calls()
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 91, in _run_scheduled_calls
>    for call_group in self._get_scheduled_call_groups():
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 126, in _get_scheduled_call_groups
>    for scheduled_call in self.scheduled_call_collection.find(query):
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 880, in _send_message_with_response
>    sock = self.__socket()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 674, in __socket
>    host, port = self.__find_node()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 659, in __find_node
>    raise AutoReconnect(', '.join(errors))
> AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
> 2013-11-28 15:18:43,374 pulp.server.dispatch.scheduler:CRITICAL: Unhandled exception in scheduler dispatch: AutoReconnect('could not connect to localhost:27017: [Errno 111] Connection refused',)
> 2013-11-28 15:18:43,375 pulp.server.dispatch.scheduler:ERROR: could not connect to localhost:27017: [Errno 111] Connection refused
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 76, in __dispatch
>    self._run_scheduled_calls()
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 91, in _run_scheduled_calls
>    for call_group in self._get_scheduled_call_groups():
>  File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/scheduler.py", line 126, in _get_scheduled_call_groups
>    for scheduled_call in self.scheduled_call_collection.find(query):
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 703, in next
>    if len(self.__data) or self._refresh():
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 666, in _refresh
>    self.__uuid_subtype))
>  File "/usr/lib64/python2.6/site-packages/pymongo/cursor.py", line 616, in __send_message
>    **kwargs)
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 880, in _send_message_with_response
>    sock = self.__socket()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 674, in __socket
>    host, port = self.__find_node()
>  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 659, in __find_node
>    raise AutoReconnect(', '.join(errors))
> AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
>
> --
> Florian Sachs
> Bundesministerium für Landesverteidigung und Sport
> Führungsunterstützungszentrum / IKT-Te / HW&SysSW / SE2VE
> Stiftgasse 2a 1070, Wien
> Postadresse: Rossauer Lände 1, 1090 Wien
> Tel.: +43 50201 10 33466
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list redhat com
> https://www.redhat.com/mailman/listinfo/pulp-list



  ________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20140220/9af410ed/attachment.htm>


More information about the Pulp-list mailing list