package memcached 1.4.25-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1562450 reported by Pavlushka
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
memcached (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

package memcached 1.4.25-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1. After booting it crashes.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: memcached 1.4.25-2ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
AptOrdering:
 memcached: Install
 memcached: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Sat Mar 26 22:58:37 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-03-12 (14 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.7
SourcePackage: memcached
Title: package memcached 1.4.25-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-03-12 (38 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
Package: memcached 1.4.25-2ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.4.0-20.36-generic 4.4.6
Tags: xenial
Uname: Linux 4.4.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Pavlushka (pavelsayekat) wrote :
Revision history for this message
Ryan Harper (raharper) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

Changed in memcached (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Pavlushka (pavelsayekat) wrote :

Yes, if I purge memcahced and then install it again, it reproduces the bug but after first installation error if I run "sudo apt-get install -f" and "sudo apt-get install --reinstall memcached", it reports not error.

Revision history for this message
Pavlushka (pavelsayekat) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Pavlushka (pavelsayekat) wrote : JournalErrors.txt

apport information

Revision history for this message
Pavlushka (pavelsayekat) wrote : ProcEnviron.txt

apport information

Revision history for this message
Pavlushka (pavelsayekat) wrote :

In xubuntu xenial alpha, it suffers with adduser problem in the first install but in xubuntu xenial beta, it installs without any error, so may be the problem lies in somewhere else.

Revision history for this message
Ryan Harper (raharper) wrote :
Download full text (3.6 KiB)

On the current Xenial image, memcached installs fine:

% lxc launch ubuntu-daily:xenial x1
Creating x1
Starting x1
% lxc exec x1 /bin/bash
root@x1:~# apt-get update && apt-get install memcached
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1182 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [563 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7541 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4360 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [146 kB]
Fetched 14.0 MB in 8s (1596 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libcache-memcached-perl libmemcached libanyevent-perl libyaml-perl libterm-readkey-perl
The following NEW packages will be installed:
  memcached
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 89.0 kB of archives.
After this operation, 246 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 memcached amd64 1.4.25-2ubuntu1 [89.0 kB]
Fetched 89.0 kB in 0s (346 kB/s)
Selecting previously unselected package memcached.
(Reading database ... 25401 files and directories currently installed.)
Preparing to unpack .../memcached_1.4.25-2ubuntu1_amd64.deb ...
Unpacking memcached (1.4.25-2ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up memcached (1.4.25-2ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
root@x1:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

root@x1:~# systemctl status memcached
● memcached.service - memcached daemon
   Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

root@x1:/lib/systemd/system# grep memcache /etc/group
memcache:x:116:
root@x1:/lib/systemd/system# grep memcache /etc/passwd
memcache:x:112:116:Memcached,,,:/nonexistent:/bin/false

Now, memcached doesn't start cleanly, the following hangs (but starts memcached)

% systemctl start memcached

Fixing up the systemd service file fixes this (Adding Type=Forking)

# diff -u memcached.service.orig memcached.service
--- memcached.service.orig 2016-04-19 15:59:31.654599131 +0000
+++ memcached.service 2016-04-19 15:55:34.458022457 +0000
@@ -3,6 +3,7 @@
 After=network.target

 [Service]
+Type=Forking
 ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf

 [Install]

Then I can systemctl start it just fine

root@x1:~# systemctl start memcached
root@x1...

Read more...

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1562450] Re: package memcached 1.4.25-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Download full text (4.2 KiB)

That systemd conf change didn't seem to help. Looking deeper.

On Tue, Apr 19, 2016 at 11:00 AM, Ryan Harper <email address hidden>
wrote:

> On the current Xenial image, memcached installs fine:
>
> % lxc launch ubuntu-daily:xenial x1
> Creating x1
> Starting x1
> % lxc exec x1 /bin/bash
> root@x1:~# apt-get update && apt-get install memcached
> Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
> Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
> Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
> Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1182
> kB]
> Get:5 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [563 kB]
> Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
> [7541 kB]
> Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en
> [4360 kB]
> Get:8 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
> [146 kB]
> Fetched 14.0 MB in 8s (1596 kB/s)
> Reading package lists... Done
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Suggested packages:
> libcache-memcached-perl libmemcached libanyevent-perl libyaml-perl
> libterm-readkey-perl
> The following NEW packages will be installed:
> memcached
> 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
> Need to get 89.0 kB of archives.
> After this operation, 246 kB of additional disk space will be used.
> Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 memcached amd64
> 1.4.25-2ubuntu1 [89.0 kB]
> Fetched 89.0 kB in 0s (346 kB/s)
> Selecting previously unselected package memcached.
> (Reading database ... 25401 files and directories currently installed.)
> Preparing to unpack .../memcached_1.4.25-2ubuntu1_amd64.deb ...
> Unpacking memcached (1.4.25-2ubuntu1) ...
> Processing triggers for ureadahead (0.100.0-19) ...
> Processing triggers for systemd (229-4ubuntu4) ...
> Processing triggers for man-db (2.7.5-1) ...
> Setting up memcached (1.4.25-2ubuntu1) ...
> Processing triggers for ureadahead (0.100.0-19) ...
> Processing triggers for systemd (229-4ubuntu4) ...
> root@x1:~# apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
>
>
> root@x1:~# systemctl status memcached
> ● memcached.service - memcached daemon
> Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor
> preset: enabled)
> Active: inactive (dead)
>
> root@x1:/lib/systemd/system# grep memcache /etc/group
> memcache:x:116:
> root@x1:/lib/systemd/system# grep memcache /etc/passwd
> memcache:x:112:116:Memcached,,,:/nonexistent:/bin/false
>
> Now, memcached doesn't start cleanly, the following hangs (but starts
> memcached)
>
> % systemctl start memcached
>
> Fixing up the systemd service file fixes this (Adding Type=Forking)
>
> # diff -u memcached.service.orig memcached.service
> --- memcached.service.orig 2016-04-19 15:59:31.654599131 +0000
> +++ memcached.service 2016-04-19 15:55:34.458022457 +0000
> @@ -3,6 +3,7 @@
> After=network.target
>
> [Service]
> +Type=Forking...

Read more...

Revision history for this message
Ryan Harper (raharper) wrote :
Download full text (4.7 KiB)

I had a local configuration error.

The current version of memcached works and runs fine out of the box.

I think this issue has been fixed by the current version of memcached in
the archive.
Users installing memcached on current Xenial should not see this error.

On Tue, Apr 19, 2016 at 11:12 AM, Ryan Harper <email address hidden>
wrote:

> That systemd conf change didn't seem to help. Looking deeper.
>
> On Tue, Apr 19, 2016 at 11:00 AM, Ryan Harper <email address hidden>
> wrote:
>
>> On the current Xenial image, memcached installs fine:
>>
>> % lxc launch ubuntu-daily:xenial x1
>> Creating x1
>> Starting x1
>> % lxc exec x1 /bin/bash
>> root@x1:~# apt-get update && apt-get install memcached
>> Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
>> Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
>> Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
>> Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1182
>> kB]
>> Get:5 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [563
>> kB]
>> Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
>> [7541 kB]
>> Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en
>> [4360 kB]
>> Get:8 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
>> [146 kB]
>> Fetched 14.0 MB in 8s (1596 kB/s)
>> Reading package lists... Done
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> Suggested packages:
>> libcache-memcached-perl libmemcached libanyevent-perl libyaml-perl
>> libterm-readkey-perl
>> The following NEW packages will be installed:
>> memcached
>> 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
>> Need to get 89.0 kB of archives.
>> After this operation, 246 kB of additional disk space will be used.
>> Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 memcached amd64
>> 1.4.25-2ubuntu1 [89.0 kB]
>> Fetched 89.0 kB in 0s (346 kB/s)
>> Selecting previously unselected package memcached.
>> (Reading database ... 25401 files and directories currently installed.)
>> Preparing to unpack .../memcached_1.4.25-2ubuntu1_amd64.deb ...
>> Unpacking memcached (1.4.25-2ubuntu1) ...
>> Processing triggers for ureadahead (0.100.0-19) ...
>> Processing triggers for systemd (229-4ubuntu4) ...
>> Processing triggers for man-db (2.7.5-1) ...
>> Setting up memcached (1.4.25-2ubuntu1) ...
>> Processing triggers for ureadahead (0.100.0-19) ...
>> Processing triggers for systemd (229-4ubuntu4) ...
>> root@x1:~# apt-get -f install
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
>>
>>
>> root@x1:~# systemctl status memcached
>> ● memcached.service - memcached daemon
>> Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor
>> preset: enabled)
>> Active: inactive (dead)
>>
>> root@x1:/lib/systemd/system# grep memcache /etc/group
>> memcache:x:116:
>> root@x1:/lib/systemd/system# grep memcache /etc/passwd
>> memcache:x:112:116:Memcached,,,:/nonexistent:/bin/false
>>
>> Now, memcached doesn't s...

Read more...

Revision history for this message
Ryan Harper (raharper) wrote :

Please re-open if you have an issues with the current package in the archive.

Changed in memcached (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.