Could not resolve the host nextcloud.com

Hello, I was trying to install Nextcloud on my Raspberry Pi 4 with Raspbian Os Lite. When I run the docker command (present on this page GitHub - nextcloud/all-in-one: Nextcloud AIO stands for Nextcloud All-in-One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.) it gives me an error saying ā€˜Could not resolve the host nextcloud.comā€™ and also, the container goes into bootloop. How can I fix? Thanks!

Hi, there should be some ideas shown what to do in that case.

Yes, in the error message there were links that gave you information to try to solve, I tried but it didnā€™t work

What did you try, what didnā€˜t work?
What happened?
Sorry, but I lost my crystal ballā€¦ :kissing_heart:

i tried this How to fix sudden dns resolution issues after the AIO update to v4.4.1 or higher. Ā· nextcloud/all-in-one Ā· Discussion #2065 Ā· GitHub but the container of nextcloud aio kept going into bootloop

There must be a different proposed solution. Did you try that as well?

yes, i tried it

What version of Raspbian OS Lite? Do you have any other containers running in your Docker environment?

Letā€™s check the basics:

  • Can you ping nextcloud.com successfully from the Raspberry Pi 4?

If ā€œyesā€ then letā€™s check connectivity from within your Docker environment:

  • Does doing a ping form inside a simple container work: docker run -it --rm alpine:latest ping nextcloud.com?

If not, you have something wrong with your Docker installation.

1 Like

The OS version is Debian 11, the Raspberry can ping the nextcloud.com but docker canā€™t, it says ping: bad address ā€˜nextcloud.comā€™

P.S. While Iā€™m at it I would like to ask another question: from Nextcloud AIO can I change the destination folder of the files? And as destination folder can I use a disk with already files without formatting it?

I found this for you.

You must not format the folder. But files in the folder is a bad idea. If you want re-import files i would install Nextcloud normal in empty folder, put the files in the user data-directory and then re-scan the files read this. For Docker you must modify the command.

Update: i tried to create an ubuntu container for do some tests and that container can ping nextcloud.com, so i have no idea why the Nextcloud AIO container canā€™t

Maybe because the aio container uses alpine as base which you verified is not able to ping nextcloud.com? Anyway, this is something that needs to be fixed in your infrastucture.

Yes, youā€™re right, and I think Iā€™ve found the problem. I tried to create the Nextcloud AIO container on my laptop using my phoneā€™s 4G connection and it worked, so itā€™s a problem with my DNS server (pi-hole) which I will now try to fix.

2 Likes

Alpine doesnā€™t play along with CoreDNS for me: