3

For the continuous integration I am using Jenkins. I have installed a fresh Jenkins following Installing Jenkins on Ubuntu.

As:

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'

sudo apt-get update

sudo apt-get install jenkins

Restart the Jenkins server as $ sudo service jenkins restart.

And browse at localhost:8080.

I have signed up for administrator, and when I am going to log in the first time there is a error like this:

admin is missing the Overall/Read permission.

How do I fix it?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Greesh Kumar
  • 1,847
  • 3
  • 27
  • 44
  • Possible duplicate of [Jenkins Github Authentication error: user is missing the Overall/Read permission](http://stackoverflow.com/questions/22717773/jenkins-github-authentication-error-user-is-missing-the-overall-read-permission) – Xavjer Jan 18 '16 at 11:37
  • http://stackoverflow.com/questions/22717773/jenkins-github-authentication-error-user-is-missing-the-overall-read-permission . this not what that gives the answer for my problem – Greesh Kumar Jan 18 '16 at 12:08
  • i have a fresh installation of jenkins, and for the first time login it does cause the error. – Greesh Kumar Jan 18 '16 at 12:11
  • 1
    May be you installed jenkins on a server with garbadge from previous Jenkins installations, try: -Stop Jenkins, find config.xml file in $JENKINS_HOME, Look for the true element in this file, Replace true with false, Start Jenkins – Vano Jan 18 '16 at 15:26

1 Answers1

2

In the $JENKINS_HOME directory, /Users/Shared/Jenkins/Home/ in my case, there is the users/directory which stores some user info, and it had an admin directory. So far so good. The user seemed to be alive.

I went to $JENKINS_HOME/config.xml and it had permission tags like this: 1 2 3

<permission>hudson.model.Computer.Build:Admin</permission><permission>hudson.model.Computer.Configure:Admin</permission> <permission>hudson.model.Computer.Connect:Admin</permission>

Do you see any inconsistency?

Yes, the Admin user here starts with a capital letter for some reason. Could that be a problem? I changed all Admin to admin in the file and restarted Jenkins.

Manisha Bano
  • 1,853
  • 2
  • 22
  • 34