Bug 20820

Summary: koha fails to connect to memcached until restart after debian package upgrade 17.11.06-1 -> 18.05.00-1 on Ubuntu Xenial 16.04
Product: Koha Reporter: Ivan Masár <helix84>
Component: PackagingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: mirko
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Ivan Masár 2018-05-25 11:39:06 UTC
On Ubuntu Xenial 16.04, after upgrading koha from 17.11.06-1 to 18.05.00-1 from official koha debian package, the following error is shown in the dpkg log and accessing koha opac and koha intranet shows an unstyled interface.


...
Upgrade to 17.12.00.044 done (Bug 20624 - Disable OAuth2 client credentials grant by default)
Upgrade to 18.05.00.000 done (Koha 18.05)

Connection to the memcached servers '__MEMCACHED_SERVERS__' failed. Are the unix socket permissions set properly? Is the host reachable?
If you ignore this warning, you will face performance issues

Connection to the memcached servers '__MEMCACHED_SERVERS__' failed. Are the unix socket permissions set properly? Is the host reachable?
If you ignore this warning, you will face performance issues
Updated the cs-CZ translations.
Setting up libhijk-perl (0.26-1) ...
Setting up libtype-tiny-xs-perl (0.012-1build1) ...
Use of uninitialized value $fn in exists at /usr/share/perl5/NeedRestart/Utils.pm line 100.=========================================================================================================================                       ]
Use of uninitialized value $fn in stat at /usr/share/perl5/NeedRestart/Utils.pm line 102.
Use of uninitialized value in list assignment at /usr/share/perl5/NeedRestart/Interp/Perl.pm line 132.
Use of uninitialized value $fn in exists at /usr/share/perl5/NeedRestart/Utils.pm line 100.==================================================================================================================================              ]
Use of uninitialized value $fn in stat at /usr/share/perl5/NeedRestart/Utils.pm line 102.
Use of uninitialized value in list assignment at /usr/share/perl5/NeedRestart/Interp/Perl.pm line 132.
Scanning processes...                                                                                                                                                                                                                        
Scanning candidates...                                                                                                                                                                                                                       
Scanning linux images...                                                                                                                                                                                                                     
Restarting services using systemd...
No containers need to be restarted.



$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial

$ grep MEMCACHED_SERVERS /etc/koha/koha-sites.conf
# MEMCACHED_SERVERS: comma separated list of memcached servers (ip:port)
MEMCACHED_SERVERS="127.0.0.1:11211"

$ sudo systemctl status memcached.service 
● memcached.service - memcached daemon
   Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-05-25 13:01:18 CEST; 32min ago
 Main PID: 1016 (memcached)
    Tasks: 6
   Memory: 12.1M
      CPU: 110ms
   CGroup: /system.slice/memcached.service
           └─1016 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1

May 25 13:01:18 koha systemd[1]: Started memcached daemon.

$ sudo netstat -tulpn | grep 11211
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      1016/memcached  


The problem is not alleviated even after restarting the koha-common service and the memcached service. It is resolved by restarting the host.
Comment 1 Mirko Tietgen 2018-05-25 17:52:56 UTC

*** This bug has been marked as a duplicate of bug 18250 ***