Jenkins Migration

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

Jenkins Migration

Cornelius Ele
Hello all,

I am trying to migrate a Jenkins instance from a windows machine installation to a  new .war file installation. 
I copy pasted all the files from C:\Program Files (x86)\Jenkins to the new systems C:\Users\corn\.jenkins directory. 
The SSH remote hosts section in localhost:8080/configure all fails its connection checks, how do I fix this? 

Also, I supposedly need to change ownership for new Jenkins file:  chown -R jenkins:jenkins $JENKINS_HOME  (https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another?rq=1)
But where and how do I make the ownership changes?

Thanks in advance.

--
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/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Migration

Pranav Kv
Hi,
Migrating one server to another is not only just copying entire home directory to the new one.. There will be lots configuration sections (hardcoded) on ur exiting instance, so u must configure this things according to ur new instance(config.xml file) and jobconfig before running ur new instance. Recently I had migrated around 1000 jobs from one server to another. (redhat machine, that doesn't have Internet)

Regards 
Pranav KV

On Thu, 22 Nov 2018, 1:11 am Cornelius Ele <[hidden email] wrote:
Hello all,

I am trying to migrate a Jenkins instance from a windows machine installation to a  new .war file installation. 
I copy pasted all the files from C:\Program Files (x86)\Jenkins to the new systems C:\Users\corn\.jenkins directory. 
The SSH remote hosts section in localhost:8080/configure all fails its connection checks, how do I fix this? 

Also, I supposedly need to change ownership for new Jenkins file:  chown -R jenkins:jenkins $JENKINS_HOME  (https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another?rq=1)
But where and how do I make the ownership changes?

Thanks in advance.

--
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/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.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/CAHwQEkJv%3DaERs%2BJmvYYW-eF52RL4A8TmqH6vb_53UiyenU6C8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Migration

Cornelius Ele
Thank you for the reply. Indeed there are lots of local references on the old Jenkins server.
For instance, the GRADLE_HOME is referencing a folder inside downloads folder.
Is there a strategy to change all this simultaneously (through the Web GUI) or otherwise? 
It seems like at this current moment, I'll have to go through 50 .xml files on my JENKINS_HOME directory and make sure none of them are referencing locally. 


Thanks in advance.


On Wednesday, November 21, 2018 at 2:59:38 PM UTC-5, Pranav Kv wrote:
Hi,
Migrating one server to another is not only just copying entire home directory to the new one.. There will be lots configuration sections (hardcoded) on ur exiting instance, so u must configure this things according to ur new instance(config.xml file) and jobconfig before running ur new instance. Recently I had migrated around 1000 jobs from one server to another. (redhat machine, that doesn't have Internet)

Regards 
Pranav KV

On Thu, 22 Nov 2018, 1:11 am Cornelius Ele <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="XyryfcTbAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">k6y...@... wrote:
Hello all,

I am trying to migrate a Jenkins instance from a windows machine installation to a  new .war file installation. 
I copy pasted all the files from C:\Program Files (x86)\Jenkins to the new systems C:\Users\corn\.jenkins directory. 
The SSH remote hosts section in localhost:8080/configure all fails its connection checks, how do I fix this? 

Also, I supposedly need to change ownership for new Jenkins file:  chown -R jenkins:jenkins $JENKINS_HOME  (<a href="https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another?rq=1" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F8724939%2Fhow-to-move-jenkins-from-one-pc-to-another%3Frq%3D1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcgEK7dOm7AYDRZ_KG1XmHS7Sqvg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F8724939%2Fhow-to-move-jenkins-from-one-pc-to-another%3Frq%3D1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGcgEK7dOm7AYDRZ_KG1XmHS7Sqvg&#39;;return true;">https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another?rq=1)
But where and how do I make the ownership changes?

Thanks in advance.

--
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 <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="XyryfcTbAgAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/ec72ed90-7696-4556-85b0-10a50c7d7d5f%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/f213cfe6-5990-48e1-b64f-dfffe26ed966%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.