Migrating from nextcloud box to nextcloudpi

Hello,

So I moved on a bit, Here is a summary:

  1. Copy all data from the WD hard drive to my computer
  2. Remove SD card foom NCBox and plug it in you computer
  3. Copy the content of it in case it goes wrong (Actually I’m not sure if I did it correctly since there are different partitions in it and I just copy the content of what was available in Finder, I think only the boot partition).
  4. Download the NCP image and check md5sum
  5. unmount the SD card (do not eject it), and get its device BSD name (e.g. disk4s1) (see https://www.raspberrypi.org/documentation/installation/installing-images/mac.md)
  6. flash it with sudo dd bs=4m if=NextCloudPi_12-04-17.img of=/dev/disk4 (not bs=4M on mac)
  7. run the command sync
  8. unplug and replug the SDcard
  9. cd /Volumes/
  10. touch ssh
  11. eject the SD card
  12. insert it in the raspberrypi
  13. start
  14. go to nextcloudpi.local
  15. Remove the former ssh key from known host in .ssh/known_host in your home computer.
  16. ssh pi@<ip>
  17. password: raspberry (not raspbian)
  18. Type passwd to change the ssh password

So far so good, but I still have some issues:

I have a nextcloud instance working, but I’m not really sure how to recover my data, since there are still on the HD, and running the format USB drive from the ncp wizard, did not work (don’t recall the error). But then, since I still have the data on the drive, isn’t it easier to move them at the correct position ?

I still have a problem with let’s encrypt, as described here: No automatic renewing of Letsencrypt certificate on Nextcloud Box
The error message from the WebUI is:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for myserver.host.com
Using the webroot path /var/www/nextcloud for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. myserver.host.com http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://myserver.host.com/.well-known/acme-challenge/j735rSOInHBFicM4lG0eLOkHkKNEahUW0Hvu8rrNoSQ: Timeout
IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: myserver.host.com
   Type:   connection
   Detail: Fetching
   http://myserver.host.com/.well-known/acme-challenge/j735rSOInHBFicM4lG0eLOkHkKNEahUW0Hvu8rrNoSQ:
   Timeout

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

Would you have any insight ?
it might be related to this: https://community.letsencrypt.org/t/timeout-on-certification-creation-behind-ipv6-and-ipv4-adsl-box/38164
Where the conclusion is that I can’t get a let’s encrypt certificate anymore when using the DNS from my ISP provider (free, french ISP).

Then I thought, well, let’s go for freeDNS. So I register there, but then, I don’t know whether I should create a subdomain, a domain, or anything else, and where to click and so on… Any help would be appreciated !

Thanks