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

Kibana RPM "invalid group" from chown during install #7475

Closed
AndrewMcQuerry opened this issue Jun 15, 2016 · 3 comments
Closed

Kibana RPM "invalid group" from chown during install #7475

AndrewMcQuerry opened this issue Jun 15, 2016 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Pioneer Program PR sent

Comments

@AndrewMcQuerry
Copy link

Kibana version: 5.0.0_alpha3-1

OS version: openSUSE 42.1

Original install method (e.g. download page, yum, from source, etc.): RPM 64bit

Description of the problem including expected versus actual behavior: While installing RPM, it would seem that the group creation failed or did not occur, resulting in "chown" failing due to invalid group.
chown: invalid group: ‘kibana:kibana’
warning: %post(kibana-5.0.0_alpha3-1.x86_64) scriptlet failed, exit status 1

Steps to reproduce:

  1. clean install of openSUSE 42.1 (Leap)
  2. rpm -ivh kibana-5.0.0_alpha3-1.x86_64.rpm

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):
elastic-alpha3-01:~ # rpm -ivh kibana-5.0.0_alpha3-1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:kibana-5.0.0_alpha3-1 ################################# [100%]
chown: invalid group: ‘kibana:kibana’
warning: %post(kibana-5.0.0_alpha3-1.x86_64) scriptlet failed, exit status 1

@Bargs
Copy link
Contributor

Bargs commented Jun 16, 2016

@jbudz ?

@AndrewMcQuerry
Copy link
Author

Digging a bit deeper. In the postinstall scriptlet, I only see user_create method, not a group_create method.. Are you guys expecting the system to auto create a group of the same name?

It would seem that the image that I'm using has this set to "no" by default.

elastic-alpha3-01:~ # grep USERGROUPS_ENAB /etc/login.defs
USERGROUPS_ENAB no

Setting this to yes, and then reinstalling the RPM was successful, and chown did its expected thing..

elastic-alpha3-01:~ # grep USERGROUPS_ENAB /etc/login.defs
USERGROUPS_ENAB yes

elastic-alpha3-01:~ # rpm -iv kibana-5.0.0_alpha3-1.x86_64.rpm
Preparing packages...
kibana-5.0.0_alpha3-1.x86_64
elastic-alpha3-01:~ # ls -ltr /opt
total 4
drwxr-xr-x 10 root root 4096 Jun 16 10:47 kibana
elastic-alpha3-01:~ # ls -ltr /opt/kibana/
total 44
drwxrwxr-x  2 root   root   4096 May 26 13:43 installedPlugins
-rw-rw-r--  1 root   root   2445 May 26 13:43 README.txt
-rw-rw-r--  1 root   root    563 May 26 13:43 LICENSE.txt
-rw-rw-r--  1 root   root    708 May 26 13:43 package.json
drwxr-xr-x  3 kibana kibana 4096 Jun 16 10:32 optimize
drwxr-xr-x 88 root   root   4096 Jun 16 10:32 node_modules
drwxr-xr-x  9 root   root   4096 Jun 16 10:32 src
drwxr-xr-x  2 root   root   4096 Jun 16 10:47 config
drwxr-xr-x  2 root   root   4096 Jun 16 10:47 bin
drwxr-xr-x  6 root   root   4096 Jun 16 10:47 node
drwxr-xr-x  2 root   root   4096 Jun 16 10:47 webpackShims

@jbudz jbudz self-assigned this Jun 16, 2016
@jbudz jbudz added bug Fixes for quality problems that affect the customer experience P2 labels Jun 16, 2016
@AndrewMcQuerry
Copy link
Author

I believe you can just add the -U option when creating the kibana user to always add a group as well, regardless of the default setting.

       -U, --user-group
           Create a group with the same name as the user, and add the user to this group.

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 Pioneer Program PR sent
Projects
None yet
Development

No branches or pull requests

3 participants