Jenkins service unavailable error – 503 – running as different user

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?.

  • How can I tell git which vim to use?
  • Bitbucket - git push fails. Packet corrupt | Broken pipe
  • Does Git have plan to change their hash function?
  • What does GitHub for Windows/Mac “publish” do?
  • Decoding Git index file using C#
  • GraphLab Create Launcher installation error
  • How to synchronize two git repositories
  • Can I display compiler warnings in Sonar?
  • How to do a git diff on moved/renamed file?
  • git rebase: copy instead of moving
  • Git checkout and merge without touching working tree
  • Cygwin ssh key added, but Git permission denied (publickey)
  • One Solution collect form web for “Jenkins service unavailable error – 503 – running as different user”

    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.

    Git Baby is a git and github fan, let's start git clone.