unable to start jenkins after changing user to jenkins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

unable to start jenkins after changing user to jenkins

tstreamz
Hi, Jenkins 2.167 running on centos 7. So for its running as root user. I changed to jenkins user at /etc/sysconfig/jenkins file. I changed the file ownership at /var/lib/jenkins folder to jenkins;root.
similarly /root/jenkins/build_scripts and /root/jenkins/workspace also changed the ownershipas jenkins:root.
When restart the jenkins, log says:
SEVERE: Failed Loading global config
java.io.IOException: jenkins.model.InvalidBuildsDir: /root/jenkins/Build_Jobs/${ITEM_FULL_NAME}/build/ does not exist and probably cannot be created
        at jenkins.model.Jenkins.loadConfig(Jenkins.java:3050)
        at jenkins.model.Jenkins.access$1300(Jenkins.java:309)

pls let know

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAC3KZS-oRZ4MJC0__LwMHuJ8FLDkpt6rFTEbFciP40%3D8zv7Q7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] - unable to start jenkins after changing user to jenkins

Dirk Heinrichs-3
Am Dienstag, den 19.03.2019, 17:40 +0530 schrieb Turaco mobile:

/root

This is root's $HOME where ordinary users don't have any permissions (and shouldn't have). You'll need to place this stuff elsewhere.

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/80373d13fa71357da1ba08f6e1c463a1bbf58847.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: unable to start jenkins after changing user to jenkins

Denis Mone
In reply to this post by tstreamz

How did you install Jenkins in the first place.

How do you start/stop it. Without this information it'd be difficult to help.

On 3/19/19 2:10 PM, Turaco mobile wrote:
Hi, Jenkins 2.167 running on centos 7. So for its running as root user. I changed to jenkins user at /etc/sysconfig/jenkins file. I changed the file ownership at /var/lib/jenkins folder to jenkins;root.
similarly /root/jenkins/build_scripts and /root/jenkins/workspace also changed the ownershipas jenkins:root.
When restart the jenkins, log says:
SEVERE: Failed Loading global config
java.io.IOException: jenkins.model.InvalidBuildsDir: /root/jenkins/Build_Jobs/${ITEM_FULL_NAME}/build/ does not exist and probably cannot be created
        at jenkins.model.Jenkins.loadConfig(Jenkins.java:3050)
        at jenkins.model.Jenkins.access$1300(Jenkins.java:309)

pls let know

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAC3KZS-oRZ4MJC0__LwMHuJ8FLDkpt6rFTEbFciP40%3D8zv7Q7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a6f3a3a9-8ecb-c463-8d4a-ada249df1ceb%40gmail.com.
For more options, visit https://groups.google.com/d/optout.