How to Migrate Confluence to Google Cloud Compute
Asked by FreeSoftwareServers:

I have a Ubuntu 14 Installation running Confluence 5.10.7 which I would like to move into the Cloud.

I have moved many apache sites just fine, but I can't seem to get Confluence to work.

I have followed my steps to get it to install locally (but on Google Cloud) and couldn't get anywhere. Next I used deploy4me and go to the "install trial/production" screen.

I then moved /var/atlassian/\* and /opt/atlassian/\* and the confluence DB to the could instance. Restarted Confluence after importing the DB and all I get is the following.

com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted {#toc-hId-1817346075}
---------------------------------------------------------------------------------------------------------------

Which I read is about hostname not resolving, but I tried editing /etc/hostname and using "hostname" but I still get that error.

I'm lost and frustrated... I completely understand my home server setup, but everything seems wonky to me in "the cloud". I wish I could just import an OVA or RAW disk image, but even that seems require a Linux host w/ google CLI installation which means I'd have to learn that.

Can anybody give me an advice for setting up/migrating from local Confluence to Google Cloud Compute instance?

PS: The Google Cloud instance I am trying to use is Ubuntu 16. I have the instance still running and available for debugging.


Answers:
author: AnnWorley
body: Hi,

The second procedure you tried sounds closest to our recommendation: [Migrating Confluence Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html). You did not mention what database you are using but the process when migrating Linux to Linux (same OS, despite version) is basically to copy the home and install directories and the database from the old server to the new one, and start Confluence.

Adding an entry to the hostname file was a diagnostic step in the article I found [Confluence generates Confluence is vacant error on install](https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html)  
The resolution is to add the hostname to /etc/hosts so it resolves to an IP address:
> **Resolution**   
> This issue can be fixed by confirming that hostname can be resolved to an IP address.
>
> Either
>
> Edit /etc/hosts and add the hostname
>
> 127.0.0.1 localhost \<hostname\>
>
> or:  
> Add the hostname to the DNS
>
> To confirm the hostname resolves to an IP address, ping the hostname (here hostname is ubuntu).
>
> $ ping \`cat /etc/hostname\`  
> PING ubuntu (127.0.1.1) 56(84) bytes of data.  
> 64 bytes from somepc (127.0.1.1): icmp_seq=1 ttl=64 time=0.027 ms  
> 64 bytes from somepc (127.0.1.1): icmp_seq=2 ttl=64 time=0.041 ms

Please add the host entry to /etc/hosts and ping the hostname to eliminate name resolution as the issue.

Thanks,

Ann

comments: author: FreeSoftwareServers
body: I'm currently testing cloudendure to move my local instance to the cloud.

If this works I will report back as my recommended method.

The site was uploaded last night but I have yet to do a thorough test.


author: AnnWorley
body: Thanks for keeping us in the loop. I look forward to hearing your findings.


Tags: confluence-server

server