Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian/rpm package upgrades fail when Kibana is running #6262

Closed
seidler2547 opened this issue Feb 16, 2016 · 12 comments
Closed

Debian/rpm package upgrades fail when Kibana is running #6262

seidler2547 opened this issue Feb 16, 2016 · 12 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience PR sent

Comments

@seidler2547
Copy link

When installing Kibana via the Debian repository, the upgrade process fails because it wants to delete and re-create the user, which fails if Kibana is running. Hence the Kibana service should be stopped before the upgrade and restarted if it was running before. Most Debian package upgrades do this anyway to immediately make use of the new version.

@marcinkubica
Copy link

Same on Centos.

Sent from Gmail Mobile

@gebi
Copy link

gebi commented Feb 17, 2016

The debian package of kibana is completely broken regarding user creation.
Please take a look at how it is done in the elasticsearch package.

@jaddison
Copy link

After manually stopping the kibana service and doing the apt upgrade of kibana, it fails to start due to permissions problems as well.

@gebi
Copy link

gebi commented Feb 19, 2016

@jaddison yea here as well, that's because the debian package removes the system user on package upgrade and re-adds it shortly after.

If you have added any system user after first installing the kibana package all autogenerated files from kibana now have the wrong user and group.

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience P1 labels Feb 21, 2016
@haizaar
Copy link
Contributor

haizaar commented Feb 24, 2016

There is a workaround: #6310 (comment)

@LeeDr
Copy link
Contributor

LeeDr commented Feb 29, 2016

From a user on irc;


Preparing to unpack .../kibana_4.4.1_amd64.deb ...
Unpacking kibana (4.4.1) over (4.4.0) ...
userdel: user kibana is currently used by process 11323
dpkg: warning: subprocess old post-removal script returned error exit status 8
dpkg: trying script from the new package instead ...
userdel: user kibana is currently used by process 11323
dpkg: error processing archive /var/cache/apt/archives/kibana_4.4.1_amd64.deb (--unpack):
 subprocess new post-removal script returned error exit status 8
userdel: user kibana is currently used by process 11323
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 8
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/kibana_4.4.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
# 

@haizaar
Copy link
Contributor

haizaar commented Apr 3, 2016

I wonder why it was not fixed in 4.5. The fix trivial and causes such a mess.

@jbudz jbudz added the PR sent label Apr 20, 2016
@jbudz jbudz changed the title Debian package upgrade fails when Kibana is running Debian/rpm package upgrades fail when Kibana is running May 20, 2016
@stefws
Copy link

stefws commented May 21, 2016

Still not fixed in rpm 4.5.1 :/ ... Maybe jbudz has a fix, seems he wants to pull...

@jbudz
Copy link
Member

jbudz commented Jun 8, 2016

Fixed in #7308

@jbudz jbudz closed this as completed Jun 8, 2016
@thers
Copy link

thers commented Jul 24, 2016

Not fixed for ubuntu 16.04 and kibana 4.5.3.

Still needs to stop kibana first.

[UPD]: event if i disabled it first, it won't install using apt, only running dpkg -i manually did the trick.

@haizaar
Copy link
Contributor

haizaar commented Jul 24, 2016

Not fixed indeed. Had to manually stop kibana before upgrade.

On 24 Jul 2016 16:48, "Alexander Kuhta" notifications@github.com wrote:

Not fixed for ubuntu 16.04 and kibana 4.5.3


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6262 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADjWRgduC6VklZl38KEItrtI-FWOwXPks5qY21GgaJpZM4Ha76O
.

@splitice
Copy link

splitice commented Jul 26, 2016

Confirmed still not fixed and causing a large mess.

userdel: user kibana is currently used by process with 2.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience PR sent
Projects
None yet
Development

No branches or pull requests