Bug 40848 - Silent cache corruption - bad_cache
Silent cache corruption - bad_cache
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-x
Assigned To: Arvid Requate
:
Depends on: 27314
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-07 12:29 CET by Philipp Hahn
Modified: 2018-11-27 15:53 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.120
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016030721000163
Bug group (optional): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2016-03-07 12:29:07 CET
Something corrupted /var/lib/univention-directory-listener/cache.db
UDL detected that and created /var/lib/univention-directory-listener/bad_cache
The error message could not be found in /var/log/univention/listener.*
Since then UDL *silently* refuses to start; only DEBUG_INIT is logged!

$ git grep -n bad_cache
src/cache_lowlevel.c:274:                       if (asprintf(&f, "%s/bad_cache", cache_dir) < 0) abort();
src/main.c:520: if (asprintf(&f, "%s/bad_cache", cache_dir) < 0) abort();

1. We should print an very visible message in both cases before abort()ing UDL!

2. The file itself should contain the error message, which currently is logged
  univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR,

3. The Nagios check should check for that file and yell if it is found.

4. Same for the diagnostics module.
Comment 1 Philipp Hahn univentionstaff 2016-03-07 12:29:31 CET
Ticket #2016030721000163
Comment 2 Florian Best univentionstaff 2017-06-28 14:52:48 CEST
There is a Customer ID set so I set the flag "Enterprise Customer affected".
Comment 3 Arvid Requate univentionstaff 2018-11-27 15:53:56 CET
Obsoleted by Bug 23367 fixed in UCS 4.2-0.