systemd[1]: Starting Jenkins - open source automation server...
jenkins[3540]: Correct java version found
jenkins[3540]: * Starting Jenkins Automation Server jenkins
jenkins[3540]: chown: changing ownership of '/var/run/jenkins': Operation not permitted
su[3580]: PAM audit_log_acct_message() failed: Operation not permitted
su[3580]: pam_authenticate: System error
jenkins[3540]: su: System error
su[3580]: FAILED su for jenkins by root
su[3580]: - ??? root:jenkins
jenkins[3540]: ...fail!
ci systemd[1]: jenkins.service: Main process exited, code=exited, status=7/NOTRUNNING
systemd[1]: jenkins.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Jenkins - open source automation server.
I posted the question also on superuser
Can you help me?
Thanks
Gianpaolo
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5f886501-5849-45d5-873e-650c5102ce9b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5f886501-5849-45d5-873e-650c5102ce9b%40googlegroups.com.
jenkins[3540]: chown: changing ownership of '/var/run/jenkins': Operation not permittedsu[3580]: PAM audit_log_acct_message() failed: Operation not permittedsu[3580]: pam_authenticate: System errorjenkins[3540]: su: System errorsu[3580]: FAILED su for jenkins by rootsu[3580]: - ??? root:jenkinsjenkins[3540]: ...fail!
--
systemd
kills the user processes when starting jenkins
with systemctl
.KillExcludeUsers
in /etc/systemd/logind.conf
; https://gist.github.com/konstruktoid/1bc96c4f5030f37bd5f5142cc2718b35The issue seems to be thatsystemd
kills the user processes when startingjenkins
withsystemctl
.
I wrote a jenkins .service file and added the Jenkins user toKillExcludeUsers
in/etc/systemd/logind.conf
; https://gist.github.com/konstruktoid/1bc96c4f5030f37bd5f5142cc2718b35
Am Freitag, den 08.11.2019, 06:53 -0800 schrieb gianpaolo:
The issue seems to be thatsystemd
kills the user processes when startingjenkins
withsystemctl
.
I wrote a jenkins .service file and added the Jenkins user toKillExcludeUsers
in/etc/systemd/logind.conf
; https://gist.github.com/konstruktoid/1bc96c4f5030f37bd5f5142cc2718b35
Strange. I am running Jenkins on several Debian and Ubuntu machines and have never seen such behaviour.
BTW: You should not modify the service file provided by the package. It's better to create an overlay file (/etc/systemd/system/jenkins.service.d/local.conf) which contains your modifications to avoid having them removed when the package is updated.
Bye...