Re: (SOLVED) Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
On Friday, November 8, 2019 at 4:01:28 PM UTC+1, Dirk Heinrichs wrote: > > Am Freitag, den 08.11.2019, 06:53 -0800 schrieb gianpaolo: > > The issue seems to be that systemd kills the user processes when starting > jenkins with systemctl. > I wrote a jenkins .service file and added the Jenkins

Re: (SOLVED) Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread Dirk Heinrichs
Am Freitag, den 08.11.2019, 06:53 -0800 schrieb gianpaolo: The issue seems to be that systemd kills the user processes when starting jenkins with systemctl. I wrote a jenkins .service file and added the Jenkins user to KillExcludeUsers in /etc/systemd/logind.conf;

(SOLVED) Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
YES! In case someone runs into the same issue, here the jenkins.service that solved my problem [Unit] Description=Jenkins - open source automation server [Service] ExecStart=/etc/init.d/jenkins start ExecStop=/etc/init.d/jenkins stop GuessMainPID=no IgnoreSIGPIPE=no KillMode=process

Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
Hi Dirk I re-installed everything. It seems a little bit better. Service comes up and comes down immediately. Related to pam session as you suggested? ov 08 15:32:35 ci systemd[1]: Started Jenkins - open source automation server. Nov 08 15:32:36 ci jenkins[2637]: Correct java version found Nov

Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread Dirk Heinrichs
Am Freitag, den 08.11.2019, 01:46 -0800 schrieb gianpaolo: 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

Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
ok the only thing that I miss now is why at every reboot I have to run sudo service jenkins start the service is enabled, why does it need to be manually run every time? On Friday, November 8, 2019 at 2:34:50 PM UTC+1, gianpaolo wrote: > > Hi > it's a nightmare. I've tried all the possible

Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
Hi it's a nightmare. I've tried all the possible solutions and reinstalled everything. Is there a complete ubuntu instruction? i have followed this: https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu Still, after the first reboot, I'm again not able to get it running. On

Re: Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread ravi krishna
Hello Gianaolo, Hope you logged in with root user or Jenkins user must have sudo permissions. On Fri, Nov 8, 2019 at 5:55 PM gianpaolo wrote: > Hello > I've installed and run Jenkins successfully, but at the first reboot I > coudnt get it up again. > I have the journal log: > > systemd[1]:

Problem running Jenkins as a system service on Ubuntu

2019-11-08 Thread gianpaolo
Hello I've installed and run Jenkins successfully, but at the first reboot I coudnt get it up again. I have the journal log: systemd[1]: Starting Jenkins - open source automation server... jenkins[3540]: Correct java version found jenkins[3540]: * Starting Jenkins Automation Server jenkins