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

chown: invalid group user:user #776

Closed
martinstuder opened this issue Apr 13, 2016 · 1 comment
Closed

chown: invalid group user:user #776

martinstuder opened this issue Apr 13, 2016 · 1 comment
Labels

Comments

@martinstuder
Copy link
Contributor

I'm using sbt-native-packager 1.1.0-RC3 with a Play Framework 2.3.8 application. Following some hints in #554 and playframework/playframework#4242 I got things as far as I can start and stop the application. When doing so, however, I encounter the following error:

[ZZZZZ /usr/share/app/conf]# service app start
chown: invalid group: `user:user'
Starting app:                                         [  OK  ]

Looking into the corresponding /etc/init.d/app script (on RHEL 6.4), I see

# create PIDDIR where PIDFILE will be kept
if [ -z "${PIDDIR:-}" ]; then
    PIDDIR=/var/run/app/
    mkdir -p $PIDDIR && chown $DAEMON_USER:$DAEMON_USER $PIDDIR
fi

Note the line chown $DAEMON_USER:$DAEMON_USER. Shouldn't it say chown $DAEMON_USER:$DAEMON_GROUP?

@muuki88
Copy link
Contributor

muuki88 commented Apr 13, 2016

Hi @martinstuder

Thanks for you report. Indeed this looks like a bug. I assume daemonUser and daemonGroup have different settings in your build.sbt? ( a small sample to reproduce is always nice :) )

Would like to make a PR. The rpm-start-template should be pretty simple to touch.

Another note: IIRC play-2.3.8 is based on a pre-autoplugin (< 1.x.x.) version of native-packager, which creates some bizarre effects, when using both together. Since play 2.4.x the native-packager autoplugins are being used.

@muuki88 muuki88 added the bug label Apr 13, 2016
muuki88 added a commit that referenced this issue Apr 14, 2016
Fix #776 using $DAEMON_GROUP to indicate group in Redhat startup temp…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants