Migrating site from Personal vmware server to VPS

Dear Team,

i am hosted forum on own Windows Server machine with VMWARE so now i need to migrate my entire forum website on hosting provider with private VPS server so please guide me how to take data from current DB and what is the procedure ? please guide me asap.

Just follow Discourse official Standard Installation, make a backup, restore it on the new server.

nginx: [emerg] cannot load certificate ā€œ/shared/ssl/hacksleak.in.cerā€: PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)

we moved to digital ocean made droplet and installed discourse but ssl certificate installation failed using letsencrypt!

is there any way to move certificates from old hosting provider!

/var/discourse# ./launcher logs app
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/01-cleanup-web-pids
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/letsencrypt
[Sat 15 May 2021 10:36:13 PM UTC] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Sat 15 May 2021 10:36:13 PM UTC] Single domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:13 PM UTC] Getting domain auth token for each domain
[Sat 15 May 2021 10:36:17 PM UTC] Getting webroot for domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:17 PM UTC] Verifying: hacksleak.in
[Sat 15 May 2021 10:36:22 PM UTC] hacksleak.in:Verify error:Invalid response from https://hacksleak.in/.well-known/acme-challenge/BLSpTkHPZbCDDLAdbojYDdoSjQPLrGxzpTIIcA5SQsE [122.169.118.87]:
[Sat 15 May 2021 10:36:22 PM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
Error loading file ca.cer
[Sat 15 May 2021 10:36:25 PM UTC] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Sat 15 May 2021 10:36:25 PM UTC] Single domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:25 PM UTC] Getting domain auth token for each domain
[Sat 15 May 2021 10:36:29 PM UTC] Getting webroot for domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:29 PM UTC] Verifying: hacksleak.in
[Sat 15 May 2021 10:36:34 PM UTC] hacksleak.in:Verify error:Invalid response from https://hacksleak.in/.well-known/acme-challenge/hdrX104K9Zq4H3TnAG4aYIJauM7gWPPaR4XbSbePiKQ [122.169.118.87]:
[Sat 15 May 2021 10:36:34 PM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
[Sat 15 May 2021 10:36:35 PM UTC] Installing key to:/shared/ssl/hacksleak.in.key
[Sat 15 May 2021 10:36:35 PM UTC] Installing full chain to:/shared/ssl/hacksleak.in.cer
cat: /shared/letsencrypt/hacksleak.in/fullchain.cer: No such file or directory
[Sat 15 May 2021 10:36:37 PM UTC] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Sat 15 May 2021 10:36:37 PM UTC] Single domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:37 PM UTC] Getting domain auth token for each domain
[Sat 15 May 2021 10:36:41 PM UTC] Getting webroot for domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:41 PM UTC] Verifying: hacksleak.in
[Sat 15 May 2021 10:36:45 PM UTC] hacksleak.in:Verify error:Fetching https://hacksleak.in/.well-known/acme-challenge/wskydv8EjAqM5A0mLVl50KLyy5UBgqHLKQmYbEfcn9U: Connection refused
[Sat 15 May 2021 10:36:45 PM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
Error loading file ca.cer
[Sat 15 May 2021 10:36:48 PM UTC] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Sat 15 May 2021 10:36:48 PM UTC] Single domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:48 PM UTC] Getting domain auth token for each domain
[Sat 15 May 2021 10:36:52 PM UTC] Getting webroot for domain=ā€˜hacksleak.inā€™
[Sat 15 May 2021 10:36:53 PM UTC] Verifying: hacksleak.in

You have to point dns to the server before you rebuild on order for it to get the cert

You can rsync over the cert directories from the old server if itā€™s a standard install. There are topics about that.

We already pointed but still having issue !

what is error 429 from letsencrypt!

How to move certificates or any other way to solve??

I still see the old site on the url.

You can pull over the ssl and letā€™s encrypt directories. You can search for examples.

Please tell the ssl certificates location so i will pull.

429 means youā€™ve tried to renew the cert too many times in one week. Leave it a few days and the weekly rate limit will lapse.

1 Like

if i move /var/Discourse entire folder zip into new server and extract ā€¦ after that ./launcher rebuild app.yml

is it work ??

No. But you can add another domain as described at Setting up Letā€™s Encrypt with Multiple Domains. If the be request is for a different set of domains itā€™ll count as a new request. Or you can wait a few days.

1 Like