Univention Bugzilla – Bug 44477
MemcachedError in Self-Service not handled
Last modified: 2017-11-15 17:27:13 CET
Version: 4.2-0 errata0 (Lesum) Execution of command 'passwordreset/get_contact' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/passwordreset/__init__.py", line 83, in _decorator return func(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/passwordreset/__init__.py", line 130, in _decorated total_limit_reached, total_max_wait = _check_limits(self.memcache, self.total_limits) File "%PY2.7%/univention/management/console/modules/passwordreset/__init__.py", line 112, in _check_limits count = memcache.incr(key) MemcachedError: 1 keys failed
Need to know on what server role this was installed on and have the installation/updater and the join log. Very likely this was from a pre-release test installation.
Role: domaincontroller_master (In reply to Daniel Tröder from comment #1) > Very likely this was from a pre-release test installation. No, it was reported yesterday.
The NotFound exception is catched. I had this error only in the situation where the self-service memcache instance wasn't running - it was actually a connection error. That was fixed by r78602 on 2017-04-03 in univention-self-service (2.0.16-2).
Same error here at two different setups. First setup: UCS: 4.2-0 errata15 App Center compatibility: 4 Installed: nagios=3.5 radius=4.0 self-service=2.0 ucsschool=4.2 v1 Second setup: UCS: 4.2-0 errata10 App Center compatibility: 4 Installed: mailserver=11 self-service=2.0 Both systems are fresh installed with UCS 4.2. No special configuration. Installed self-service in UMC app center. Access to both system for debug is available.
Thanks for the test system. The memcached service was indeed not running. r79360: fix memcached command line r79362: advisory Package: univention-self-service Version: 2.0.16-5A~4.2.0.201705161137 Branch: ucs_4.2-0 Scope: errata4.2-0
memcached should not run as root! Please use the memcached user instead. http://dustin.sallings.org/2010/08/08/memcached-security.html#please-please-do-not-run-as-root
r79363: start correct memcached instance, use self-service-umc user for memcache instance r79364: update advisory univention-self-service 2.0.16-6A~4.2.0.201705161209
OK: upgrading works very good! REOPEN: The exception catching is not working: >>> pylibmc.ConnectionError.mro() [<class '_pylibmc.ConnectionError'>, <class '_pylibmc.MemcachedError'>, <type 'exceptions.Exception'>, <type 'exceptions.BaseException'>, <type 'object'>] >>> pylibmc.Error.mro() [<class '_pylibmc.MemcachedError'>, <type 'exceptions.Exception'>, <type 'exceptions.BaseException'>, <type 'object'>] I still get the following traceback: Die Ausführung des Kommandos passwordreset/get_contact ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/passwordreset/__init__.py", line 83, in _decorator return func(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/passwordreset/__init__.py", line 133, in _decorated total_limit_reached, total_max_wait = _check_limits(self.memcache, self.total_limits) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/passwordreset/__init__.py", line 112, in _check_limits count = memcache.incr(key) ConnectionError: 1 keys failed
Ah you don't mask the error but only log something. The logging is not necessary as the traceback is logged which contains all the infos.
I was certain I once had coaxed more information from libmemcache, but I cannot reproduce it. I probably confused it with a postgres error. r79390: remove unnecessary logging r79391: update advisory -> 2.0.16-7A~4.2.0.201705171158
OK: error handling OK: YAML
<http://errata.software-univention.de/ucs/4.2/25.html>