Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins service unavailable error - 503 - running as different user

Tags:

git

jenkins

I am having a git repository which is restricted to my team and i want to set up jenkins in my system. Since jenkins runs as jenkins user, I am working on running jenkins as me. I followed the steps from http://blog.manula.org/2013/03/running-jenkins-under-different-user-in.html but after this when i start jenkins I am getting Service unavailable error 503. Its because i changed user in /etc/default/jenkins to my id from jenkins. When i change it back to jenkins it works. There is no log in /var/log/jenkins/..Has anyone faced this issue before?.

like image 648
user1373307 Avatar asked Sep 17 '14 03:09

user1373307


People also ask

Why does it show 503 Service Unavailable?

The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.

What is HTTP error 503 and how do you fix it?

What does HTTP error 503 mean? Essentially, the 503 error is your first warning that something is preventing the browser from accessing the website server. This is where said server is unable to deal with the information requested, though the exact cause won't be made clear at the time.

How do I fix error 503 in Chrome?

In most cases, Chrome Error 503 file problems are due to the Google Chrome-related file missing or being corrupted by malware or virus. The primary way to resolve these problems manually is to replace the Google Inc. file with a fresh copy.


1 Answers

I find out the directory owner of /var/cache/jenkins and /var/lib/jenkins somehow be changed back to jenkins, just redo

sudo chown YOUR_USER_NAME /var/lib/jenkins

sudo chown YOUR_USER_NAME /var/cache/jenkins

Restart jenkins, it should work.

Also check /var/log/jenkins if the same problem shows there.

like image 130
Emmet Hung Avatar answered Oct 04 '22 22:10

Emmet Hung