How to start Hudson with the existing configuration?

I had Hudson running via:

cd /usr/lib/hudson
java -jar hudson.war

Unfortunately, I restarted that server and on accessing the Hudson Url, I found that all the configuration is missing.

However, I can see that all the configuration files were saved under ~/.hudson Has anyone run into this before? How can I restart Hudson and point it to the existing configuration?

Thanks

Answer

Figured it out. Apparently there was already an instance of Hudson booting automatically with the default configuration. I killed the existing instance, restarted the new service using java -jar hudson.war and the configuration was restored. I also set the environment variable HUDSON_HOME to /home/user_name/.hudson, but I don’t think that would’ve made a difference in this case.

Attribution
Source : Link , Question Author : Cuga , Answer Author : Cuga

Leave a Comment