[Koha-bugs] [Bug 22217] error "Connection to the memcached servers '__MEMCACHED_SERVERS__' failed" during install

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 27 01:28:08 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22217

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #4)
> What's happening?
> debian/scripts/koha-translate set KOHA_CONF (for non-dev installs) to
> /etc/koha/koha-conf-site.xml.in, ecause our LangInstaller module needs some
> paths from there (like intrahtdoc).
> The problem is that this koha-conf does not have a valid memcached config,
> and so we reach Koha::Cache without correct values and get the warning.
> 
> We definitively can ignore this warning, but it would be better to remove it
> of course. However I have no idea how to clean that.

I've thought of a few strategies. The easiest is probably to add an
environmental variable to koha-translate that can prevent L2 caching from being
initialized in Koha::Cache.

Alternatively:
1. Remove the dependency on C4::Context in LangInstaller, and instead pass
intranetdir, opacdir, intrahtdocs, and opachtdocs as arguments to the
LangInstaller constructor. 
2. Customize C4::Context and Koha::Caches to pass an argument to the
Koha::Cache constructor to prevent L2 (ie memcached) caching from initialising,
and use this argument in koha-translate

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list